Skip to content

Commit

Permalink
fix: add Trusted Issuers to helm template
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Apr 26, 2024
1 parent 0df14e9 commit c4ffc6c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
12 changes: 10 additions & 2 deletions charts/bdrs-server-memory/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ spec:
#######
# API #
#######
- name: "EDC_API_AUTH_KEY"
value: {{ .Values.server.endpoints.management.authKey | required ".Values.runtime.endpoints.management.authKey is required" | quote }}
- name: "EDC_API_AUTH_KEY_ALIAS"
value: {{ .Values.server.endpoints.management.authKeyAlias | required ".Values.runtime.endpoints.management.authKeyAlias is required" | quote }}
- name: "WEB_HTTP_PORT"
value: {{ .Values.server.endpoints.default.port | quote }}
- name: "WEB_HTTP_PATH"
Expand All @@ -160,6 +160,14 @@ spec:
- name: "WEB_HTTP_DIRECTORY_PATH"
value: {{ .Values.server.endpoints.directory.path | quote }}

#############################
## TRUSTED ISSUER CONFIG
#############################
{{- range $index, $issuer := .Values.server.trustedIssuers }}
- name: "EDC_IAM_TRUSTED-ISSUER_{{$index}}-ISSUER_ID"
value: {{ $issuer | quote }}
{{- end }}

######################################
## Additional environment variables ##
######################################
Expand Down
5 changes: 4 additions & 1 deletion charts/bdrs-server-memory/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ server:
# -- path for incoming api calls
path: /api/management
# -- authentication key, must be attached to each 'X-Api-Key' request header
authKey: "password"
authKeyAlias: "mgmt-api-key"
# -- directory API
directory:
# -- port for incoming api calls
Expand All @@ -93,6 +93,9 @@ server:
path: /api/directory
# -- dsp api, used for inter connector communication and must be internet facing

# -- Configures the trusted issuers for this runtime
trustedIssuers: []

service:
# -- [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service.
type: ClusterIP
Expand Down
8 changes: 8 additions & 0 deletions charts/bdrs-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ spec:
value: {{ .Values.vault.hashicorp.paths.health | quote }}


#############################
## TRUSTED ISSUER CONFIG
#############################
{{- range $index, $issuer := .Values.server.trustedIssuers }}
- name: "EDC_IAM_TRUSTED-ISSUER_{{$index}}-ISSUER_ID"
value: {{ $issuer | quote }}
{{- end }}

######################################
## Additional environment variables ##
######################################
Expand Down
3 changes: 3 additions & 0 deletions charts/bdrs-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ server:
path: /api/directory
# -- dsp api, used for inter connector communication and must be internet facing

# -- Configures the trusted issuers for this runtime
trustedIssuers: []

service:
# -- [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service.
type: ClusterIP
Expand Down
5 changes: 5 additions & 0 deletions system-tests/helm/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
install:
vault: false
server:
trustedIssuers:
# these must be the DIDs of the dataspace credential issuer
- "did:web:tractusx-issuer1"
- "did:web:tractusx-issuer2"

ingresses:
- enabled: true
hostname: "localhost"
Expand Down

0 comments on commit c4ffc6c

Please sign in to comment.