Feat: Dynamic superusers configuration (#104)
Adds dynamic superusers configuration ### Motivation Allow dynamic superusers management. Adding new superuser entry to `.Values.auth.superUsers` will results in adding concatenated list to config ### Modifications Change static list to dynamic one
This commit is contained in:
parent
67818a48cb
commit
c059ea25d8
@ -110,7 +110,7 @@ data:
|
||||
authenticationEnabled: "true"
|
||||
{{- if .Values.auth.authorization.enabled }}
|
||||
authorizationEnabled: "true"
|
||||
superUserRoles: {{ .Values.auth.superUsers.broker }},{{ .Values.auth.superUsers.proxy }},{{ .Values.auth.superUsers.client }}
|
||||
superUserRoles: {{ .Values.auth.superUsers | values | join "," }}
|
||||
{{- end }}
|
||||
{{- if eq .Values.auth.authentication.provider "jwt" }}
|
||||
# token authentication configuration
|
||||
|
||||
@ -65,7 +65,7 @@ data:
|
||||
# disable authorization on proxy and forward authorization credentials to broker
|
||||
authorizationEnabled: "false"
|
||||
forwardAuthorizationCredentials: "true"
|
||||
superUserRoles: {{ .Values.auth.superUsers.broker }},{{ .Values.auth.superUsers.proxy }},{{ .Values.auth.superUsers.client }}
|
||||
superUserRoles: {{ .Values.auth.superUsers | values | join "," }}
|
||||
{{- end }}
|
||||
{{- if eq .Values.auth.authentication.provider "jwt" }}
|
||||
# token authentication configuration
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user