Skip to content

Commit

Permalink
feat(bdrs): add custom bpndidresolver token address
Browse files Browse the repository at this point in the history
  • Loading branch information
tfjanjua committed Nov 5, 2024
1 parent 15417ab commit c0bce17
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/localdev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ portal:
bpnDidResolver:
# -- ApiKey for management endpoint of the bpnDidResolver. Secret-key 'bpndidresolver-api-key'.
apiKey: ""
# -- Auth settings of the bpnDidResolver
grantType: "client_credentials"
clientId: ""
clientSecret: ""
scope: "openid"
onboardingServiceProvider:
encryptionConfigs:
index0:
Expand Down
17 changes: 17 additions & 0 deletions charts/portal/templates/cronjob-backend-processes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,23 @@ spec:
secretKeyRef:
name: "{{ .Values.backend.interfaces.secret }}"
key: "bpndidresolver-api-key"
- name: "BPNDIDRESOLVER__USERNAME"
value: "{{ .Values.backend.placeholder }}"
- name: "BPNDIDRESOLVER__PASSWORD"
value: "{{ .Values.backend.placeholder }}"
- name: "BPNDIDRESOLVER__GRANTTYPE"
value: "{{ .Values.backend.processesworker.bpnDidResolver.grantType }}"
- name: "BPNDIDRESOLVER__CLIENTID"
value: "{{ .Values.backend.processesworker.bpnDidResolver.clientId }}"
- name: "BPNDIDRESOLVER__CLIENTSECRET"
valueFrom:
secretKeyRef:
name: "{{ .Values.backend.interfaces.secret }}"
key: "bpndidresolver-client-secret"
- name: "BPNDIDRESOLVER__SCOPE"
value: "{{ .Values.backend.processesworker.bpnDidResolver.scope }}"
- name: "BPNDIDRESOLVER__TOKENADDRESS"
value: "{{ .Values.centralidp.address }}{{ .Values.backend.keycloak.central.tokenPath }}"
- name: "KEYCLOAK__CENTRAL__AUTHREALM"
value: "{{ .Values.centralidp.realm }}"
- name: "KEYCLOAK__CENTRAL__CLIENTID"
Expand Down
2 changes: 2 additions & 0 deletions charts/portal/templates/secret-backend-interfaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ data:
issuercomponent-client-secret: {{ coalesce ( .Values.backend.processesworker.issuerComponent.clientSecret | b64enc ) ( index $secret.data "issuercomponent-client-secret" ) | default ( randAlphaNum 32 ) | quote }}
dim-encryption-key0: {{ coalesce ( .Values.backend.processesworker.dim.encryptionConfigs.index0.encryptionKey | b64enc ) ( index $secret.data "dim-encryption-key0" ) | default ( randAlphaNum 32 ) | quote }}
bpndidresolver-api-key: {{ coalesce ( .Values.backend.processesworker.bpnDidResolver.apiKey | b64enc ) ( index $secret.data "bpndidresolver-api-key" ) | default ( randAlphaNum 32 ) | quote }}
bpndidresolver-client-secret: {{ coalesce ( .Values.backend.processesworker.bpnDidResolver.clientSecret | b64enc ) ( index $secret.data "bpndidresolver-client-secret" ) | default ( randAlphaNum 32 ) | quote }}
serviceaccount-encryption-key0: {{ coalesce ( .Values.backend.administration.serviceAccount.encryptionConfigs.index0.encryptionKey | b64enc ) ( index $secret.data "serviceaccount-encryption-key0" ) | default ( randAlphaNum 32 ) | quote }}
{{ else -}}
stringData:
Expand All @@ -62,5 +63,6 @@ stringData:
issuercomponent-client-secret: {{ .Values.backend.processesworker.issuerComponent.clientSecret | default ( randAlphaNum 32 ) | quote }}
dim-encryption-key0: {{ .Values.backend.processesworker.dim.encryptionConfigs.index0.encryptionKey | default ( randAlphaNum 32 ) | quote }}
bpndidresolver-api-key: {{ .Values.backend.processesworker.bpnDidResolver.apiKey | default ( randAlphaNum 32 ) | quote }}
bpndidresolver-client-secret: {{ .Values.backend.processesworker.bpnDidResolver.clientSecret | default ( randAlphaNum 32 ) | quote }}
serviceaccount-encryption-key0: {{ .Values.backend.administration.serviceAccount.encryptionConfigs.index0.encryptionKey | default ( randAlphaNum 32 ) | quote }}
{{ end }}
5 changes: 5 additions & 0 deletions charts/portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,11 @@ backend:
bpnDidResolver:
# -- ApiKey for management endpoint of the bpnDidResolver. Secret-key 'bpndidresolver-api-key'.
apiKey: ""
# -- Auth settings of the bpnDidResolver
grantType: "client_credentials"
clientId: ""
clientSecret: ""
scope: "openid"
invitation:
invitedUserInitialRoles:
role0: "Company Admin"
Expand Down
2 changes: 2 additions & 0 deletions environments/helm-values/values-int.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ backend:
clientSecret: "<path:portal/data/int/iam/centralidp-client-secrets#portal-issuer-sa>"
bpnDidResolver:
apiKey: "<path:portal/data/bdrs-mgmt-api-key#content>"
clientId: "<path:portal/data/bdrs-mgmt-client-id#bdrsClientId>"
clientSecret: "<path:portal/data/bdrs-mgmt-client-secret#bdrsClientSecret>"
invitation:
encryptionConfigs:
index0:
Expand Down
2 changes: 2 additions & 0 deletions environments/helm-values/values-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ backend:
clientSecret: "<path:portal/data/stable/iam/centralidp-client-secrets#portal-issuer-sa>"
bpnDidResolver:
apiKey: "<path:portal/data/bdrs-mgmt-api-key#content>"
clientId: "<path:portal/data/bdrs-mgmt-client-id#bdrsClientId>"
clientSecret: "<path:portal/data/bdrs-mgmt-client-secret#bdrsClientSecret>"
invitation:
encryptionConfigs:
index0:
Expand Down

0 comments on commit c0bce17

Please sign in to comment.