From 216c726bfba119f98235ede2ded82b758adf177d Mon Sep 17 00:00:00 2001 From: Dominik Pinsel Date: Thu, 10 Aug 2023 12:13:28 +0200 Subject: [PATCH] feat(helm): generate authority wallet DID out of BPN and host Signed-off-by: Dominik Pinsel --- charts/managed-identity-wallet/templates/deployment.yaml | 2 +- charts/managed-identity-wallet/values.yaml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/charts/managed-identity-wallet/templates/deployment.yaml b/charts/managed-identity-wallet/templates/deployment.yaml index 623c539e8..b58f8e7c6 100644 --- a/charts/managed-identity-wallet/templates/deployment.yaml +++ b/charts/managed-identity-wallet/templates/deployment.yaml @@ -60,7 +60,7 @@ spec: - name: AUTHORITY_WALLET_BPN value: {{ tpl .Values.miw.authorityWallet.bpn . }} - name: AUTHORITY_WALLET_DID - value: {{ tpl .Values.miw.authorityWallet.did . }} + value: {{ printf "did:web:%s:%s" ( tpl .Values.miw.host . | replace ":" "%3A" | replace "/" ":") .Values.miw.authorityWallet.bpn }} - name: ENFORCE_HTTPS_IN_DID_RESOLUTION value: {{ .Values.miw.ssi.enforceHttpsInDidWebResolution | quote }} - name: APPLICATION_ENVIRONMENT diff --git a/charts/managed-identity-wallet/values.yaml b/charts/managed-identity-wallet/values.yaml index 795c0856a..944a02f5f 100644 --- a/charts/managed-identity-wallet/values.yaml +++ b/charts/managed-identity-wallet/values.yaml @@ -45,7 +45,6 @@ anchors: level: &miwLoggingLevel "" authorityWallet: bpn: &authorityWalletBpn "BPNL000000000000" - did: &authorityWalletDid "did:web:{{ .Release.Name }}-managed-identity-wallet%3A8080:BPNL000000000000" ssi: useHttpsInDidWebResolution: &useHttpsInDidWebResolution false # -- Verifiable Credential expiry date. Format 'dd-MM-yyyy'. Default: 31-12- @@ -94,7 +93,6 @@ miw: vcExpiryDate: *vcExpiryDate authorityWallet: bpn: *authorityWalletBpn - did: *authorityWalletDid database: useSSL: false port: *postgresPort @@ -168,6 +166,7 @@ affinity: { } # -- PodAnnotation configuration podAnnotations: { } +# -- Keycloak configuration keycloak: enabled: *setupDependencies postgresql: