forked from bitnami-labs/sealed-secrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yml
118 lines (118 loc) · 3.24 KB
/
swagger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
openapi: 3.0.3
info:
title: Sealed Secrets Controller
description: Sealed Secrets are "one-way" encrypted K8s Secrets that can be created by anyone, but can only be decrypted by the controller running in the target cluster, recovering the original Secret object.
version: 0.17.3
servers:
- url: http://sealed-secrets-controller/v1
description: Sealed Secrets Controller API
paths:
/cert.pem:
get:
summary: Get public key certificate to use to sign Sealed Secrets
responses:
200:
description: Certificate
content:
application/x-pem-file:
schema:
type: string
format: binary
500:
description: Internal Server Error
default:
description: Unexpected error
/verify:
post:
summary: Validate Sealed Secrets object
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SealedSecret'
responses:
200:
description: Validation OK
400:
description: Bad Request
409:
description: Conflict
500:
description: Internal Server Error
/rotate:
post:
summary: Re-encrypt Sealed Secrets object
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SealedSecret'
responses:
200:
description: Sealed Secrets re-encrypted
content:
application/json:
schema:
$ref: '#/components/schemas/SealedSecret'
400:
description: Bad Request
409:
description: Conflict
500:
description: Internal Server Error
components:
schemas:
SealedSecret:
type: object
properties:
apiVersion:
type: string
description: Sealed Secrets API version
example: bitnami.com/v1alpha1
kind:
type: string
description: Sealed Secrets Object Type
example: SealedSecret
metadata:
$ref: "#/components/schemas/Metadata"
spec:
$ref: "#/components/schemas/Spec"
required:
- apiVersion
- kind
Metadata:
type: object
description: Sealed Secrets Object metadata
properties:
name:
type: string
description: Sealed Secrets Object name
example: secret-name
namespace:
type: string
description: Sealed Secrets Object namespace
example: default
creationTimestamp:
type: string
description: Sealed Secrets Object creation stamp
required:
- name
- namespace
Spec:
type: object
description: Sealed Secrets spec
properties:
encryptedData:
type: object
description: Sealed Secrets encrypted data
template:
type: object
description: Sealed Secrets template
properties:
metadata:
$ref: "#/components/schemas/Metadata"
data:
type: string
description: Sealed Secrets data