Skip to content

Commit

Permalink
Commit triggered by a change on the main branch of helm-charts-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rconway committed Apr 3, 2024
1 parent 1b7d17e commit 4630cc8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/identity-gatekeeper/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.11
version: 1.0.12

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/identity-gatekeeper/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ Ingress server-snippets - merged from constituent parts
{{- define "identity-gatekeeper.ingressServerSnippet" -}}
{{ .Values.ingress.serverSnippets.custom }}
{{ .Values.ingress.serverSnippets.gatekeeper }}
{{ .Values.ingress.serverSnippets.auth }}
{{ tpl .Values.ingress.serverSnippets.auth $ }}
{{- end }}
13 changes: 11 additions & 2 deletions charts/identity-gatekeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,13 @@ ingress:
add_header Access-Control-Allow-Headers "Authorization, Origin, Content-Type";
nginx.ingress.kubernetes.io/server-snippet: |-
{{ include "identity-gatekeeper.ingressServerSnippet" . }}
# openUri specifies a set of $request_uri regex to match for open access - i.e. avoiding the auth check
openUri: []

# Server snippets separated into different values, to allow them to be more easily overridden,
# and to more easily introduce addition custom locations.
serverSnippets:
# Server snippets separated into different values, to allow them to be more easily overridden,
# and to more easily introduce addition custom locations.
custom: |-
#----------
# Custom server snippets
Expand All @@ -128,6 +132,11 @@ ingress:
# Endpoint for the nginx 'auth_request' - which directs to gatekeeper
location ^~ /auth {
internal;
{{- range .Values.ingress.openUri }}
if ($request_uri ~ {{ . }}) {
return 200;
}
{{- end }}
proxy_pass {{ include "identity-gatekeeper.proxyServiceUrl" . }}$request_uri;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
Expand Down

0 comments on commit 4630cc8

Please sign in to comment.