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
As a platform operator, I wantOIDCConfigRef and AuthzConfigRef to reject invalid combinations at admission time, so that misconfigurations are caught immediately by the API server instead of surfacing as confusing controller errors.
Size: S Dependencies: None Labels: operator, api
Context
OIDCConfigRef uses a type discriminator field (kubernetes, configMap, inline) but has no CEL validation rules — nothing prevents setting both configMap and inline simultaneously. AuthzConfigRef has the same gap. Validation only happens at controller reconciliation time, producing confusing error conditions instead of immediate API rejection.
Compare with MCPExternalAuthConfig which already has CEL rules (mcpexternalauthconfig_types.go:44-51).
Acceptance Criteria
OIDCConfigRef has CEL rules enforcing that the populated field matches the type discriminator (kubernetes, configMap, inline)
AuthzConfigRef has CEL rules enforcing that the populated field matches the type discriminator (configMap, inline)
Applying a manifest with a type/field mismatch (e.g., type: kubernetes but configMap set) is rejected by the API server
Applying a manifest with neither set is rejected by the API server
Existing valid manifests continue to work unchanged
Activity
Add CEL validation to OIDCConfigRef and AuthzConfigRef union types