You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_authentications-Default.crd.yaml
+139-4Lines changed: 139 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,19 @@ spec:
195
195
claim is required when the ExternalOIDCWithUpstreamParity feature gate is not enabled.
196
196
maxLength: 256
197
197
type: string
198
+
expression:
199
+
description: |-
200
+
expression is an optional CEL expression used to derive
201
+
group values from JWT claims.
202
+
203
+
CEL expressions have access to the token claims through a CEL variable, 'claims'.
204
+
205
+
expression must be at least 1 character and must not exceed 1024 characters in length .
206
+
207
+
When specified, claim must not be set or be explicitly set to the empty string (`""`).
208
+
maxLength: 1024
209
+
minLength: 1
210
+
type: string
198
211
prefix:
199
212
description: |-
200
213
prefix is an optional field that configures the prefix that will be applied to the cluster identity attribute during the process of mapping JWT claims to cluster identity attributes.
@@ -206,8 +219,15 @@ spec:
206
219
type: string
207
220
type: object
208
221
x-kubernetes-validations:
209
-
- message: claim is required
210
-
rule: has(self.claim)
222
+
- message: prefix must not be set to a non-empty value when
discoveryURL is an optional field that, if specified, overrides the default discovery endpoint used to retrieve OIDC configuration metadata.
471
+
By default, the discovery URL is derived from `issuerURL` as "{issuerURL}/.well-known/openid-configuration".
472
+
473
+
The discoveryURL must be a valid absolute HTTPS URL.
474
+
It must not contain query parameters, user information, or fragments.
475
+
Additionally, it must differ from the value of `issuerURL` (ignoring trailing slashes).
476
+
The discoveryURL value must be at least 1 character long and no longer than 2048 characters.
477
+
maxLength: 2048
478
+
minLength: 1
479
+
type: string
480
+
x-kubernetes-validations:
481
+
- message: discoveryURL must be a valid URL
482
+
rule: isURL(self)
483
+
- message: discoveryURL must be a valid https URL
484
+
rule: url(self).getScheme() == 'https'
485
+
- message: discoveryURL must not contain query parameters
486
+
rule: url(self).getQuery().size() == 0
487
+
- message: discoveryURL must not contain fragments
488
+
rule: self.matches('^[^#]*$')
489
+
- message: discoveryURL must not contain user info
490
+
rule: '!self.matches(''^https://.+:.+@.+/.*$'')'
400
491
issuerCertificateAuthority:
401
492
description: |-
402
493
issuerCertificateAuthority is an optional field that configures the certificate authority, used by the Kubernetes API server, to validate the connection to the identity provider when fetching discovery information.
@@ -437,6 +528,11 @@ spec:
437
528
- audiences
438
529
- issuerURL
439
530
type: object
531
+
x-kubernetes-validations:
532
+
- message: discoveryURL must be different from issuerURL
name is a required field that configures the unique human-readable identifier associated with the identity provider.
@@ -521,6 +617,45 @@ spec:
521
617
- componentNamespace
522
618
- componentName
523
619
x-kubernetes-list-type: map
620
+
userValidationRules:
621
+
description: |-
622
+
userValidationRules is an optional field that configures the set of rules used to validate the cluster user identity that was constructed via mapping token claims to user identity attributes.
623
+
Rules are CEL expressions that must evaluate to 'true' for authentication to succeed.
624
+
If any rule in the chain of rules evaluates to 'false', authentication will fail.
625
+
When specified, at least one rule must be specified and no more than 64 rules may be specified.
626
+
items:
627
+
description: |-
628
+
TokenUserValidationRule provides a CEL-based rule used to validate a token subject.
629
+
Each rule contains a CEL expression that is evaluated against the token’s claims.
630
+
properties:
631
+
expression:
632
+
description: |-
633
+
expression is a required CEL expression that performs a validation on cluster user identity attributes like username, groups, etc.
634
+
635
+
The expression must evaluate to a boolean value.
636
+
When the expression evaluates to 'true', the cluster user identity is considered valid.
637
+
When the expression evaluates to 'false', the cluster user identity is not considered valid.
638
+
expression must be at least 1 character in length and must not exceed 1024 characters.
639
+
maxLength: 1024
640
+
minLength: 1
641
+
type: string
642
+
message:
643
+
description: |-
644
+
message is a required human-readable message to be logged by the Kubernetes API server if the CEL expression defined in 'expression' fails.
645
+
message must be at least 1 character in length and must not exceed 256 characters.
0 commit comments