Skip to content

Commit

Permalink
feat(agent): new API_KEY_SALT env
Browse files Browse the repository at this point in the history
Signed-off-by: Kranium Gikos Mendoza <kraniumgikos.mendoza@iohk.io>
  • Loading branch information
womfoo committed Oct 19, 2023
1 parent c49b711 commit 7aa3997
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions infrastructure/charts/agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ spec:
name: agent-admin-token
key: token
optional: false
- name: API_KEY_SALT
valueFrom:
secretKeyRef:
name: agent-api-key-salt
key: salt
optional: false
- name: CASTOR_DB_HOST
value: "{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.{{.Release.Namespace}}"
- name: CASTOR_DB_PORT
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: "secretgenerator.mittwald.de/v1alpha1"
kind: StringSecret
metadata:
name: "agent-api-key-salt"
namespace: {{ .Release.Namespace }}
spec:
forceRegenerate: false
fields:
- fieldName: "salt"
encoding: "base64"
length: "16"

0 comments on commit 7aa3997

Please sign in to comment.