Skip to content

Commit 2f143e9

Browse files
committed
Add additional defaults and CEL validations
1 parent 1b8bac2 commit 2f143e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/proposals/authentication-filter.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ type JWTAuth struct {
200200
//
201201
// +optional
202202
// +kubebuilder:validation:Enum=signed;encrypted;nested
203+
// +kubebuilder:default=signed
203204
Type *JWTTokenType `json:"type,omitempty"`
204205

205206
// KeyCache is the cache duration for keys (auth_jwt_key_cache).
@@ -240,6 +241,7 @@ const (
240241
)
241242

242243
// JWTFileKeySource specifies local JWKS key configuration.
244+
// +kubebuilder:validation:XValidation:message="exactly one of configMapRef or secretRef must be set",rule="(self.configMapRef == null) != (self.secretRef == null)"
243245
type JWTFileKeySource struct {
244246
// ConfigMapRef references a ConfigMap containing the JWKS.
245247
// Exactly one of ConfigMapRef or SecretRef must be set.

0 commit comments

Comments
 (0)