Skip to content

Commit

Permalink
Allow mapping of OIDC attributes in helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Nov 28, 2023
1 parent fa206f6 commit acf0e41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions charts/openproject/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ stringData:
{{ $oidc_prefix }}_USERINFO__ENDPOINT: {{ .Values.openproject.oidc.userinfoEndpoint | quote }}
{{ $oidc_prefix }}_END__SESSION__ENDPOINT: {{ .Values.openproject.oidc.endSessionEndpoint | quote }}
{{ $oidc_prefix }}_SCOPE: {{ .Values.openproject.oidc.scope | quote }}
# Until https://community.openproject.org/wp/42390 is fixed (probably 12.5) we need the following setting
OPENPROJECT_SELF__REGISTRATION: "3"
{{- range $key, $value := .Values.openproject.oidc.attribute_map }}
{{ $mapping_key := printf "%s_ATTRIBUTE_MAP_%s" $oidc_prefix (upper $key) }}
{{ $mapping_key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.s3.enabled }}
OPENPROJECT_ATTACHMENTS__STORAGE: fog
Expand Down
2 changes: 2 additions & 0 deletions charts/openproject/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ openproject:
userinfoEndpoint: ""
endSessionEndpoint: ""
scope: "[openid]"
# Optional attribute mappings from the id token
attribute_map: {}

## Modify PostgreSQL statement timout.
## Increase in case you get errors such as "ERROR: canceling statement due to statement timeout".
Expand Down

0 comments on commit acf0e41

Please sign in to comment.