Skip to content
Snippets Groups Projects
Verified Commit e15d44b6 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

fix: allow setting auth for oauth2-proxy

parent 1d2406e3
Branches
No related tags found
No related merge requests found
Pipeline #2790 passed
...@@ -47,9 +47,10 @@ spec: ...@@ -47,9 +47,10 @@ spec:
key: cookie-secret key: cookie-secret
name: {{ include "oauth2-proxy-helm.fullname" . }} name: {{ include "oauth2-proxy-helm.fullname" . }}
args: args:
{{ range .Values.roles }} {{ range .Values.auth.roles }}
- "--allowed-role={{ . }}" - "--allowed-role={{ . }}"
{{ end }} {{ end }}
- "--email-domain={{ .Values.auth.emailDomain }}"
- "--redirect-url=https://{{ .Values.ingress.host }}{{ .Values.ingress.path }}oauth2/callback" - "--redirect-url=https://{{ .Values.ingress.host }}{{ .Values.ingress.path }}oauth2/callback"
- "--oidc-issuer-url={{ .Values.oidc.discoveryUrl }}" - "--oidc-issuer-url={{ .Values.oidc.discoveryUrl }}"
- "--upstream=file:///dev/null" - "--upstream=file:///dev/null"
......
...@@ -14,6 +14,10 @@ oidc: ...@@ -14,6 +14,10 @@ oidc:
clientId: "" clientId: ""
clientSecret: "" clientSecret: ""
auth:
emailDomain: "*"
roles: [ ]
cookieSecret: "" cookieSecret: ""
service: service:
...@@ -22,7 +26,7 @@ service: ...@@ -22,7 +26,7 @@ service:
ingress: ingress:
host: "example.com" host: "example.com"
path: "/" path: "/"
annotations: {} annotations: { }
podAnnotations: { } podAnnotations: { }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment