Skip to content

Commit

Permalink
feat(helm): generate authority wallet DID out of BPN and host
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Pinsel <[email protected]>
  • Loading branch information
DominikPinsel committed Aug 10, 2023
1 parent b2910de commit 216c726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/managed-identity-wallet/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions charts/managed-identity-wallet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-<current year>
Expand Down Expand Up @@ -94,7 +93,6 @@ miw:
vcExpiryDate: *vcExpiryDate
authorityWallet:
bpn: *authorityWalletBpn
did: *authorityWalletDid
database:
useSSL: false
port: *postgresPort
Expand Down Expand Up @@ -168,6 +166,7 @@ affinity: { }
# -- PodAnnotation configuration
podAnnotations: { }

# -- Keycloak configuration
keycloak:
enabled: *setupDependencies
postgresql:
Expand Down

0 comments on commit 216c726

Please sign in to comment.