Skip to content

Commit

Permalink
Merge pull request #2 from OpSecId/edit-chart-secrets
Browse files Browse the repository at this point in the history
Change reference to the traction id/key to a secret
  • Loading branch information
esune authored Nov 26, 2024
2 parents a721751 + 664a647 commit de9eb4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions charts/orgbook-publisher/templates/backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ spec:
- name: TRACTION_API_URL
value: {{ .Values.backend.traction_api_url }}
- name: TRACTION_API_KEY
value: {{ .Values.backend.traction_api_key }}
valueFrom:
secretKeyRef:
name: {{ .Values.backend.fullname }}
key: traction_api_key
- name: TRACTION_TENANT_ID
value: {{ .Values.backend.traction_tenant_id }}
valueFrom:
secretKeyRef:
name: {{ .Values.backend.fullname }}
key: traction_tenant_id

# DID WEB SERVER
- name: DID_WEB_SERVER_URL
Expand Down
3 changes: 2 additions & 1 deletion charts/orgbook-publisher/templates/backend/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ metadata:
namespace: {{ .Release.Namespace }}
type: Opaque
data:
secret-key: {{ include "getOrGeneratePass" (dict "Namespace" .Release.Namespace "Kind" "Secret" "Name" (include "backend.fullname" .) "Key" "secret-key" "Length" 32) }}
traction_tenant_id: ''
traction_api_key: ''

0 comments on commit de9eb4b

Please sign in to comment.