fix(univention-management-stack): Use global secrets to fill initialPasswordAdministrator

This commit is contained in:
Johannes Bornhold
2023-09-04 14:54:35 +02:00
parent 90019e3ef6
commit a4bab4068d
2 changed files with 3 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ stackDataUms:
loadDevData: true loadDevData: true
stackDataContext: stackDataContext:
initialPasswordAdministrator: "univention" initialPasswordAdministrator: "{{ .Values.secrets.univentionManagementStack.defaultAccounts.administratorPassword }}"
# The SWP configuration brings its own UMC policies. # The SWP configuration brings its own UMC policies.
installUmcPolicies: false installUmcPolicies: false

View File

@@ -26,6 +26,8 @@ secrets:
univentionManagementStack: univentionManagementStack:
# TODO: Use "derivePassword" # TODO: Use "derivePassword"
ldapSecret: "univention" ldapSecret: "univention"
defaultAccounts:
administratorPassword: {{ (derivePassword 1 "long" (env "MASTER_PASSWORD" | default "sovereign-workplace") "Administrator" "ums" | sha1sum) }}
storeDavUsers: storeDavUsers:
portalServer: {{ (derivePassword 1 "long" (env "MASTER_PASSWORD" | default "sovereign-workplace") "portal-server" "store-dav" | sha1sum) }} portalServer: {{ (derivePassword 1 "long" (env "MASTER_PASSWORD" | default "sovereign-workplace") "portal-server" "store-dav" | sha1sum) }}
portalListener: {{ (derivePassword 1 "long" (env "MASTER_PASSWORD" | default "sovereign-workplace") "portal-listener" "store-dav" | sha1sum) }} portalListener: {{ (derivePassword 1 "long" (env "MASTER_PASSWORD" | default "sovereign-workplace") "portal-listener" "store-dav" | sha1sum) }}