feat(webhook): validate dashboard auth spec

- will check whether either OIDC issuer or oauth2 endpoints are set
- will check whether basic auth credentials are configured
This commit is contained in:
Peter 2025-02-05 21:07:22 +01:00
parent 3c13eb0d6b
commit 9d02a2d90b
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 60 additions and 2 deletions

View file

@ -204,6 +204,14 @@ func (s *DashboardEndpointSpec) OAuth2() *DashboardOAuth2Spec {
return s.Auth.OAuth2
}
func (s *DashboardEndpointSpec) Basic() *DashboardBasicAuthSpec {
if s == nil || s.Auth == nil {
return nil
}
return s.Auth.Basic
}
// APIGatewaySpec defines the desired state of APIGateway.
type APIGatewaySpec struct {
// Envoy - configure the envoy instance and most importantly the control-plane