Skip to content

Commit

Permalink
feat: add new auth params (#762)
Browse files Browse the repository at this point in the history
Signed-off-by: Kranium Gikos Mendoza <[email protected]>
  • Loading branch information
womfoo authored Oct 20, 2023
1 parent 3e7534f commit b8bfb86
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
18 changes: 16 additions & 2 deletions infrastructure/charts/agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ spec:
- containerPort: 8085
- containerPort: 8090
env:
- name: ADMIN_TOKEN
valueFrom:
secretKeyRef:
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 Expand Up @@ -164,13 +176,15 @@ spec:
- name: DEV_MODE
value: "true"
{{- else }}
- name: WALLET_SEED
- name: DEFAULT_WALLET_SEED
valueFrom:
secretKeyRef:
name: prism-agent-server-wallet
name: agent-wallet-seed
key: seed
optional: false
{{- end }}
- name: API_KEY_AUTHENTICATE_AS_DEFAULT_USER
value: "true"
{{- if .Values.server.useVault }}
- name: VAULT_ADDR
value: "http://{{ .Release.Namespace }}-vault.{{ .Release.Namespace }}:8200"
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-admin-token"
namespace: {{ .Release.Namespace }}
spec:
forceRegenerate: false
fields:
- fieldName: "token"
encoding: "base64"
length: "32"
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"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "secretgenerator.mittwald.de/v1alpha1"
kind: StringSecret
metadata:
name: "prism-agent-server-wallet"
name: "agent-wallet-seed"
namespace: {{ .Release.Namespace }}
spec:
forceRegenerate: false
Expand Down

0 comments on commit b8bfb86

Please sign in to comment.