Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new auth params #762

Merged
merged 5 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading