From af2dd19fa43ea958fe4724e41031fc65913ff251 Mon Sep 17 00:00:00 2001 From: Michael Borland Date: Tue, 19 Nov 2024 22:28:32 +0000 Subject: [PATCH] feat: add ability to set user groups for access --- chart/templates/uds-package.yaml | 7 +++++++ chart/values.yaml | 1 + 2 files changed, 8 insertions(+) diff --git a/chart/templates/uds-package.yaml b/chart/templates/uds-package.yaml index 33fff11d..27149464 100644 --- a/chart/templates/uds-package.yaml +++ b/chart/templates/uds-package.yaml @@ -30,6 +30,13 @@ spec: - "email" {{ end }} {{- end }} + groups: + anyOf: + {{- if .Values.sso.requiredGroups }} + {{- range .Values.sso.requiredGroups }} + - "{{ . }}" + {{- end }} + {{- end }} secretName: {{ .Values.sso.secretName }} secretTemplate: diff --git a/chart/values.yaml b/chart/values.yaml index 8daf03ad..c5b8032b 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -38,6 +38,7 @@ sso: # This will replace the current list of default client scopes. defaultClientScopes: [] + requiredGroups: [] # These should typically be disabled if SSO is enabled enable_sign_up_with_email: false