Skip to content

Commit

Permalink
feat: add ability to set user groups for access (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkborland authored Nov 19, 2024
1 parent e9e7305 commit a33379b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions charts/config/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ spec:
- "{{ . }}"
{{- end }}
{{- end }}
groups:
anyOf:
{{- if .Values.sso.requiredGroups }}
{{- range .Values.sso.requiredGroups }}
- "{{ . }}"
{{- end }}
{{- end }}
secretName: {{ .Values.sso.secretName }}
secretTemplate:
# GitLab expects a providers JSON file that is documented more here: https://gitlab-org.gitlab.io/technical-writing-group/gitlab-docs-hugo/administration/auth/oidc/
Expand Down Expand Up @@ -70,6 +77,13 @@ spec:
- "mapper-saml-lastname-last_name"
- "mapper-saml-grouplist-groups"
{{- end }}
groups:
anyOf:
{{- if .Values.sso.requiredGroups }}
{{- range .Values.sso.requiredGroups }}
- "{{ . }}"
{{- end }}
{{- end }}
attributes:
saml.client.signature: "false"

Expand Down

0 comments on commit a33379b

Please sign in to comment.