[incubator/buzzfeed-sso] Add ability to add whitelisted emails (#13648)

* Rebase to latest master

Signed-off-by: StiviiK <stefan.kuerzeder@gmail.com>

* Bumped chart version

Signed-off-by: StiviiK <stefan.kuerzeder@gmail.com>
This commit is contained in:
Stefan Kürzeder
2019-06-14 05:46:21 -07:00
committed by Kubernetes Prow Robot
parent 2e0540dbe3
commit 923e2d4992
5 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Single sign-on for your Kubernetes services using Google OAuth
name: buzzfeed-sso
version: 0.0.5
version: 0.0.6
appVersion: 1.2.0
home: https://github.com/buzzfeed/sso
sources:
+1
View File
@@ -53,6 +53,7 @@ Parameter | Description | Default
`namespace` | namespace to use | `default`
`emailDomain` | the sso email domain for authentication | REQUIRED
`rootDomain` | the parent domain used for protecting your backends | REQUIRED
`whitelistedEmails` | comma-seperated list of emails which should be whitelisted | OPTIONAL
`cluster` | the cluster name for SSO | `dev`
`auth.annotations` | extra annotations for auth pods | `{}`
`auth.domain` | the auth domain used for OAuth callbacks | REQUIRED
@@ -57,6 +57,10 @@ spec:
value: {{ .Values.emailDomain | quote }}
- name: HOST
value: {{ $authDomain }}
{{- if .Values.whitelistedEmails }}
- name: SSO_EMAIL_ADDRESSES
value: {{ .Values.whitelistedEmails }}
{{- end }}
- name: REDIRECT_URL
value: https://{{ $authDomain }}
- name: PROXY_ROOT_DOMAIN
@@ -63,6 +63,10 @@ spec:
key: proxy-cookie-secret
- name: EMAIL_DOMAIN
value: {{ .Values.emailDomain | quote }}
{{- if .Values.whitelistedEmails }}
- name: EMAIL_ADDRESSES
value: {{ .Values.whitelistedEmails }}
{{- end }}
- name: UPSTREAM_CONFIGS
value: /sso/upstream_configs.yml
- name: PROVIDER_URL
+1
View File
@@ -2,6 +2,7 @@
emailDomain: "<your_email_domain>" # Required. e.g "email.mydomain.foo"
rootDomain: "<your_root_domain>" # Required. e.g "mydomain.foo"
# whitelistedEmails: "<whitelisted_addresses>" # Optional. e.g. "userA.nameA@mydomain.foo,userB.nameB@mydomain.foo"
cluster: dev
auth: