Replies: 2 comments
-
Hey @ssyounger! I ran into this same thing when incorporating the helm chart. When I tried the Advanced values examples from the helm chart README, the containers were getting literal "file:///authentik-creds/password" instead of the password even though the secrets volume was mounted correctly and readable. What ended working for me is creating a kubernetes secret called password: ""
postgres-password: ""
replication-password: ""
secret_key: "" I chose the field names to match the default values.yaml from the bitnami chart because the chart passes postgresql.auth through. Then I referenced the same secret in environmental variables for server and worker using the variable names from the authentik docs. postgresql:
enabled: true
auth:
existingSecret: authentik-creds
redis:
enabled: true
server:
env:
- name: AUTHENTIK_POSTGRESQL__PASSWORD
valueFrom:
secretKeyRef:
name: authentik-creds
key: password
- name: AUTHENTIK_SECRET_KEY
valueFrom:
secretKeyRef:
name: authentik-creds
key: secret_key
ingress:
enabled: true
hosts:
- authentik.domain.tld
worker:
env:
- name: AUTHENTIK_POSTGRESQL__PASSWORD
valueFrom:
secretKeyRef:
name: authentik-creds
key: password
- name: AUTHENTIK_SECRET_KEY
valueFrom:
secretKeyRef:
name: authentik-creds
key: secret_key Kind of a silly workaround, but the authentik object in the helm chart does not have direct secrets support. I like to avoid forking helm charts wherever possible so this works for me. Hope this works for your scenario! |
Beta Was this translation helpful? Give feedback.
-
there are about a million issues with the same question. for instance goauthentik/helm#337 |
Beta Was this translation helpful? Give feedback.
-
I am trying to deploy Authentik via a helm chart but I can't find any documentation on how to replace password string fields within the values file and use an existing secret such as a sealed-secret. This is a security product, I can't imagine this is not possible today. Can anyone please point me in the right direction or show me an example?
Here is a values example section:
Within the global section I can see a place to put a secret but I don't know how to fill out the password section for example on the SMTP email to use that secret.
Beta Was this translation helpful? Give feedback.
All reactions