Skip to content

Commit fae1619

Browse files
committed
Check that stac-auth-proxy only makes sens with stac enabled.
1 parent 8b319ab commit fae1619

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

charts/eoapi/templates/_helpers/validation.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@ so we use this helper function to check autoscaling rules
3030
{{/*
3131
Validate stac-auth-proxy configuration
3232
Ensures OIDC_DISCOVERY_URL is set when stac-auth-proxy is enabled
33+
Ensures stac-auth-proxy cannot be enabled when stac is disabled
3334
*/}}
3435
{{- define "eoapi.validateStacAuthProxy" -}}
3536
{{- if index .Values "stac-auth-proxy" "enabled" }}
37+
{{- if not .Values.stac.enabled }}
38+
{{- fail "stac-auth-proxy cannot be enabled when stac.enabled is false. Enable stac first or disable stac-auth-proxy." }}
39+
{{- end }}
3640
{{- if not (index .Values "stac-auth-proxy" "env" "OIDC_DISCOVERY_URL") }}
3741
{{- fail "stac-auth-proxy.env.OIDC_DISCOVERY_URL is required when stac-auth-proxy is enabled. Set it to your OpenID Connect discovery URL (e.g., https://your-auth-server/.well-known/openid-configuration)" }}
3842
{{- end }}

0 commit comments

Comments
 (0)