@@ -205,7 +205,7 @@ kind: AuthenticationConfiguration
205
205
jwt :
206
206
- issuer :
207
207
url : https://example.com
208
- clientIDs :
208
+ audiences :
209
209
- my-app
210
210
claimValidationRules :
211
211
- claim : hd
@@ -364,11 +364,11 @@ type JWTAuthenticator struct {
364
364
// +optional
365
365
CertificateAuthority string ` json:"certificateAuthority,omitempty"`
366
366
367
- // clientIDs is the set of acceptable audiences the JWT must be issued to.
367
+ // audiences is the set of acceptable audiences the JWT must be issued to.
368
368
// At least one of the entries must match the "aud" claim in presented JWTs.
369
369
// Same value as the --oidc-client-id flag (though this field supports an array).
370
370
// Required to be non-empty.
371
- ClientIDs []string ` json:"clientIDs ,omitempty"`
371
+ Audiences []string ` json:"audiences ,omitempty"`
372
372
}
373
373
```
374
374
@@ -433,6 +433,7 @@ type JWTAuthenticator struct {
433
433
// (2) if userName.prefix = "" and userName.claim != "email", prefix will be "<issuer.url>#"
434
434
// (3) if userName.expression is set instead, result of expression is used as-is without any implicit prefix
435
435
// (1) and (2) ensure backward compatibility with the --oidc-username-claim and --oidc-username-prefix flags
436
+ // +required
436
437
Username PrefixedClaimOrExpression ` json:" username" `
437
438
// groups represents an option for the groups attribute.
438
439
// Claim must be a string or string array claim.
@@ -733,8 +734,6 @@ providers such as Okta, Azure AD, etc:
733
734
#### Deprecation
734
735
735
736
kube-apiserver ` --oidc-*` flags require deprecation warnings on the stable release of the feature.
736
- It is possible to react only to the ` --oidc-issuer-url` flag because other flags cannot be enabled separately from this one.
737
-
738
737
739
738
### Upgrade / Downgrade Strategy
740
739
0 commit comments