-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstatus.yml
342 lines (308 loc) · 11 KB
/
status.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
components:
schemas:
AuthenticatorsResponse:
type: object
properties:
installed:
description: "The authenticators installed on the Conjur server"
type: array
items:
type: string
example: [ "authn" ]
configured:
description: "The authenticators configured on the Conjur server"
type: array
items:
type: string
example: [ "authn" ]
enabled:
description: "The authenticators enabled on the Conjur server"
type: array
items:
type: string
example: [ "authn" ]
AuthenticatorStatus:
type: object
properties:
status:
description: "The status of the endpoint, 'error' if there was an error"
type: string
example: 'error'
error:
description: "The error message if there was an error"
type: string
example: "#<Errors::Authentication::AuthenticatorNotFound: CONJ00001E Authenticator 'authn-oidc' is not implemented in Conjur>"
required:
- status
Info:
type: object
properties:
authenticators:
type: object
properties:
installed:
type: array
items:
type: string
configured:
type: array
items:
type: string
enabled:
type: array
items:
type: string
configuration:
type: object
role:
type: string
container:
type: string
release:
type: string
version:
type: string
services:
type: object
WhoAmI:
type: object
description: "Information about the client making a request"
properties:
client_ip:
description: "The request client IP address as determined by Conjur. This same IP address appears in application logs and audit logs."
type: string
example: "127.0.0.1"
user_agent:
description: "The incoming request HTTP user agent header."
type: string
example: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
account:
description: "The account attribute of the client provided access token."
type: string
example: "dev"
username:
description: "The username attribute of the provided access token."
type: string
example: "admin"
token_issued_at:
description: "The issued timestamp, that is, when the provided access token was created (iat field in the JWT)"
type: string
example: "2017-08-04T22:27:20+00:00"
responses:
AuthenticatorsIndex:
description: "Details about authenticators for this Conjur server"
content:
application/json:
schema:
$ref: '#/components/schemas/AuthenticatorsResponse'
WhoAmI:
description: "Details about the client making the request"
content:
application/json:
schema:
$ref: '#/components/schemas/WhoAmI'
AuthenticatorStatus:
description: The response contains info about the result
content:
application/json:
schema:
$ref: '#/components/schemas/AuthenticatorStatus'
paths:
WhoAmI:
parameters:
- $ref: 'openapi.yml#/components/parameters/RequestID'
get:
tags:
- "status"
summary: "Provides information about the client making an API request."
description: |
WhoAmI provides information about the client making an API request.
It can be used to help troubleshoot configuration by verifying authentication
and the client IP address for audit and network access restrictions.
For more information, see Host Attributes.
operationId: "whoAmI"
responses:
"200":
$ref: '#/components/responses/WhoAmI'
"401":
$ref: 'openapi.yml#/components/responses/UnauthorizedError'
security:
- conjurAuth: []
ServiceAuthenticatorStatus:
parameters:
- $ref: 'openapi.yml#/components/parameters/RequestID'
get:
tags:
- 'status'
operationId: "getServiceAuthenticatorStatus"
summary: "Details whether an authentication service has been configured properly"
description: |
Once the status webservice has been properly configured and the relevant user
groups have been given permissions to access the status webservice, the
users in those groups can check the status of the authenticator.
Supported Authenticators:
- Azure
- OIDC
Not Supported:
- AWS IAM
- Kubernetes
- LDAP
See [Conjur Documentation](https://docs.conjur.org/Latest/en/Content/Integrations/Authn-status.htm)
for details on setting up the authenticator status webservice.
parameters:
- name: authenticator
in: path
schema:
type: string
required: true
description: "The type of authenticator"
example: "authn-oidc"
- $ref: 'openapi.yml#/components/parameters/ServiceID'
- name: account
in: path
schema:
type: string
required: true
description: "The organization account name"
example: "dev"
responses:
'200':
$ref: '#/components/responses/AuthenticatorStatus'
"400":
$ref: 'openapi.yml#/components/responses/BadRequest'
"401":
$ref: 'openapi.yml#/components/responses/UnauthorizedError'
"403":
$ref: 'openapi.yml#/components/responses/InadequatePrivileges'
"404":
description: "The service was not found"
"500":
$ref: '#/components/responses/AuthenticatorStatus'
'501':
$ref: '#/components/responses/AuthenticatorStatus'
security:
- conjurAuth: []
AuthenticatorStatus:
parameters:
- $ref: 'openapi.yml#/components/parameters/RequestID'
get:
tags:
- 'status'
operationId: "getGCPAuthenticatorStatus"
summary: "Details whether an authentication service has been configured properly"
description: |
Once the status webservice has been properly configured and the relevant user
groups have been given permissions to access the status webservice, the
users in those groups can check the status of the authenticator.
This operation only supports the GCP authenticator
See [Conjur Documentation](https://docs.conjur.org/Latest/en/Content/Integrations/Authn-status.htm)
for details on setting up the authenticator status webservice.
parameters:
- name: account
in: path
schema:
type: string
required: true
description: "The organization account name"
example: "dev"
responses:
'200':
$ref: '#/components/responses/AuthenticatorStatus'
"400":
$ref: 'openapi.yml#/components/responses/BadRequest'
"403":
$ref: 'openapi.yml#/components/responses/InadequatePrivileges'
"404":
description: "The service was not found"
"500":
$ref: '#/components/responses/AuthenticatorStatus'
'501':
$ref: '#/components/responses/AuthenticatorStatus'
security:
- conjurAuth: []
AuthenticatorsIndex:
parameters:
- $ref: 'openapi.yml#/components/parameters/RequestID'
get:
tags:
- "status"
summary: "Details about which authenticators are on the Conjur Server"
description: |
Response contains three members: installed, configured, and enabled.
installed: The authenticator is implemented in Conjur and is available for configuration
configured: The authenticator has a webservice in the DB that was loaded by policy
enabled: The authenticator is enabled (in the DB or in the ENV) and is ready for authentication
operationId: "getAuthenticators"
responses:
"200":
$ref: '#/components/responses/AuthenticatorsIndex'
Health:
get:
x-conjur-settings:
enterprise-only: true
tags:
- "status"
summary: "Health info about conjur"
description: |
You can request health checks against any cluster node using the Conjur API.
These routes do not require authentication.
The health check attempts an internal HTTP or TCP connection to
each Conjur Enterprise service. It also attempts a simple transaction against all internal databases.
operationId: "health"
responses:
"200":
description: The tests were successful
content:
application/json:
schema:
type: object
"502":
description: The tests failed
RemoteHealth:
get:
x-conjur-settings:
enterprise-only: true
tags:
- "status"
summary: "Health info about a given Conjur Enterprise server"
description: |
Use the remote_health route to check the health of any Conjur Enterprise Server from any other Conjur Enterprise Server.
With this route, you can check master health relative to a follower, or follower health relative
to a standby, and so on.
operationId: "remoteHealth"
parameters:
- name: remote
in: path
schema:
type: string
required: true
description: "The hostname of the remote to check"
example: "conjur.myorg.com"
responses:
"200":
description: The tests were successful
content:
application/json:
schema:
type: object
"502":
description: The tests failed
Info:
get:
x-conjur-settings:
enterprise-only: true
tags:
- "status"
summary: "Basic information about the Conjur Enterprise server"
description: |
Information about the Conjur Enterprise node which was queried against.
Includes authenticator info, release/version info, configuration details,
internal services, and role information.
operationId: "info"
responses:
"200":
description: "info"
content:
application/json:
schema:
$ref: '#/components/schemas/Info'