-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnais.io_azureadapplications.yaml
344 lines (344 loc) · 15.8 KB
/
nais.io_azureadapplications.yaml
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
343
344
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
name: azureadapplications.nais.io
spec:
group: nais.io
names:
kind: AzureAdApplication
listKind: AzureAdApplicationList
plural: azureadapplications
shortNames:
- azureapp
singular: azureadapplication
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.clientId
name: Client ID
type: string
- jsonPath: .status.synchronizationTenantName
name: Tenant
type: string
- jsonPath: .status.synchronizationTenant
name: Tenant ID
priority: 1
type: string
- jsonPath: .spec.secretName
name: Secret Ref
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Created
type: date
- jsonPath: .status.synchronizationTime
name: Synchronized
type: date
- description: Number of assigned pre-authorized apps
jsonPath: .status.preAuthorizedApps.assignedCount
name: Assigned
type: integer
- description: Number of unassigned pre-authorized apps
jsonPath: .status.preAuthorizedApps.unassignedCount
name: Unassigned
type: integer
name: v1
schema:
openAPIV3Schema:
description: AzureAdApplication is the Schema for the AzureAdApplications
API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: AzureAdApplicationSpec defines the desired state of AzureAdApplication
properties:
allowAllUsers:
description: AllowAllUsers denotes whether all users within the tenant
should be allowed to access this AzureAdApplication. Defaults to
false.
type: boolean
claims:
description: Claims defines additional configuration of the emitted
claims in tokens returned to the Azure AD application.
properties:
extra:
description: Deprecated, do not use.
items:
enum:
- NAVident
- azp_name
type: string
type: array
groups:
description: |-
Groups is a list of Azure AD group IDs to be emitted in the `groups` claim in tokens issued by Azure AD.
This also assigns groups to the application for access control. Only direct members of the groups are granted access.
items:
properties:
id:
description: ID is the actual `object ID` associated with
the given group in Azure AD.
type: string
type: object
type: array
type: object
logoutUrl:
description: |-
LogoutUrl is the URL where Azure AD sends a request to have the application clear the user's session data.
This is required if single sign-out should work correctly. Must start with 'https'
type: string
preAuthorizedApplications:
items:
properties:
application:
description: The application's name.
type: string
cluster:
description: The application's cluster. May be omitted if it
should be in the same cluster as your application.
type: string
namespace:
description: The application's namespace. May be omitted if
it should be in the same namespace as your application.
type: string
permissions:
description: |-
Permissions contains a set of permissions that are granted to the given application.
Currently only applicable for Azure AD clients.
properties:
roles:
description: Roles is a set of custom permission roles that
are granted to a given application.
items:
pattern: ^[a-z0-9-_./]+$
type: string
type: array
scopes:
description: Scopes is a set of custom permission scopes
that are granted to a given application.
items:
pattern: ^[a-z0-9-_./]+$
type: string
type: array
type: object
required:
- application
type: object
type: array
replyUrls:
items:
description: AzureAdReplyUrl defines the valid reply URLs for callbacks
after OIDC flows for this application
properties:
url:
pattern: ^https?:\/\/.+$
type: string
type: object
type: array
secretKeyPrefix:
description: SecretKeyPrefix is an optional user-defined prefix applied
to the keys in the secret output, replacing the default prefix.
type: string
secretName:
description: SecretName is the name of the resulting Secret resource
to be created
type: string
secretProtected:
description: SecretProtected protects the secret's credentials from
being revoked by the janitor even when not in use.
type: boolean
singlePageApplication:
description: SinglePageApplication denotes whether or not this Azure
AD application should be registered as a single-page-application
for usage in client-side applications without access to secrets.
type: boolean
tenant:
description: |-
Tenant is an optional alias for targeting a tenant matching an instance of Azurerator that targets said tenant.
Can be omitted if only running a single instance or targeting the default tenant.
Immutable once set.
type: string
x-kubernetes-validations:
- message: tenant is immutable once set; delete and recreate AzureAdApplication
to change tenant
rule: self == oldSelf
required:
- secretName
type: object
x-kubernetes-validations:
- message: tenant can only be set on creation; delete and recreate AzureAdApplication
to set tenant
rule: (has(oldSelf.tenant) && has(self.tenant)) || (!has(oldSelf.tenant)
&& !has(self.tenant))
status:
description: AzureAdApplicationStatus defines the observed state of AzureAdApplication
properties:
certificateKeyIds:
description: CertificateKeyIds is the list of key IDs for the latest
valid certificate credentials in use
items:
type: string
type: array
clientId:
description: ClientId is the Azure application client ID
type: string
correlationId:
description: CorrelationId is the ID referencing the processing transaction
last performed on this resource
type: string
objectId:
description: ObjectId is the Azure AD Application object ID
type: string
passwordKeyIds:
description: PasswordKeyIds is the list of key IDs for the latest
valid password credentials in use
items:
type: string
type: array
preAuthorizedApps:
description: PreAuthorizedApps contains the list of desired pre-authorized
apps defined in the spec, separated by their actual status in Azure
AD.
properties:
assigned:
description: Assigned is the list of desired pre-authorized apps
that have been pre-authorized to access this application.
items:
properties:
accessPolicyRule:
description: AccessPolicyRule is the desired nais_io_v1.AccessPolicyRule
matching the definition in AzureAdApplicationSpec.PreAuthorizedApplications.
properties:
application:
description: The application's name.
type: string
cluster:
description: The application's cluster. May be omitted
if it should be in the same cluster as your application.
type: string
namespace:
description: The application's namespace. May be omitted
if it should be in the same namespace as your application.
type: string
required:
- application
type: object
clientId:
description: Client ID is the actual client ID of the application
found in Azure AD, if it exists.
type: string
reason:
description: Reason is a human-readable message that provides
detailed information about the application and its status.
type: string
servicePrincipalObjectId:
description: Object ID is the actual object ID of the service
principal belonging to the application found in Azure
AD, if it exists.
type: string
type: object
type: array
assignedCount:
description: AssignedCount is the size of the list in Assigned.
type: integer
unassigned:
description: Unassigned is the list of desired pre-authorized
apps that have _not_ been pre-authorized to access this application.
items:
properties:
accessPolicyRule:
description: AccessPolicyRule is the desired nais_io_v1.AccessPolicyRule
matching the definition in AzureAdApplicationSpec.PreAuthorizedApplications.
properties:
application:
description: The application's name.
type: string
cluster:
description: The application's cluster. May be omitted
if it should be in the same cluster as your application.
type: string
namespace:
description: The application's namespace. May be omitted
if it should be in the same namespace as your application.
type: string
required:
- application
type: object
clientId:
description: Client ID is the actual client ID of the application
found in Azure AD, if it exists.
type: string
reason:
description: Reason is a human-readable message that provides
detailed information about the application and its status.
type: string
servicePrincipalObjectId:
description: Object ID is the actual object ID of the service
principal belonging to the application found in Azure
AD, if it exists.
type: string
type: object
type: array
unassignedCount:
description: UnassignedCount is the size of the list in Unassigned.
type: integer
type: object
servicePrincipalId:
description: ServicePrincipalId is the Azure applications service
principal object ID
type: string
synchronizationHash:
description: SynchronizationHash is the hash of the AzureAdApplication
object
type: string
synchronizationSecretName:
description: SynchronizationSecretName is the SecretName set in the
last successful synchronization
type: string
synchronizationSecretRotationTime:
description: SynchronizationSecretRotationTime is the last time the
AzureAdApplication had its keys rotated.
format: date-time
type: string
synchronizationState:
description: SynchronizationState denotes whether the provisioning
of the AzureAdApplication has been successfully completed or not
type: string
synchronizationTenant:
description: SynchronizationTenant is the ID of the tenant that the
AzureAdApplication was synchronized to.
type: string
synchronizationTenantName:
description: SynchronizationTenantName is the an alias that identifies
the tenant that the AzureAdApplication was synchronized to.
type: string
synchronizationTime:
description: SynchronizationTime is the last time the Status subresource
was updated
format: date-time
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}