Configure Authentik auth to Immich
Fix secret substituion for Authentik
This commit is contained in:
parent
63d30455a9
commit
ce635e415c
2 changed files with 27 additions and 11 deletions
|
@ -16,28 +16,42 @@
|
|||
|
||||
values = {
|
||||
authentik = {
|
||||
secret_key = "ref+sops://secrets.yml#/authentik/secret_key";
|
||||
postgresql.password = "ref+sops://secrets.yml#/authentik/postgresql_password";
|
||||
email = {
|
||||
host = "mail.smtp2go.com";
|
||||
port = 2525;
|
||||
from = "Authentik authentik@kun.is";
|
||||
};
|
||||
};
|
||||
|
||||
postgresql = {
|
||||
enabled = true;
|
||||
auth.password = "ref+sops://secrets.yml#/authentik/postgresql_password";
|
||||
primary.persistence.existingClaim = "db";
|
||||
primary.extraEnvVarsSecret = "postgresql-env";
|
||||
};
|
||||
|
||||
redis = {
|
||||
enabled = true;
|
||||
master.persistence.existingClaim = "redis";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
email = {
|
||||
host = "mail.smtp2go.com";
|
||||
port = 2525;
|
||||
username = "ref+sops://secrets.yml#/smtp2go/username";
|
||||
password = "ref+sops://secrets.yml#/smtp2go/password";
|
||||
from = "Authentik <authentik@kun.is>";
|
||||
};
|
||||
resources = let
|
||||
env = {
|
||||
AUTHENTIK_POSTGRESQL__PASSWORD.value = "ref+sops://secrets.yml#/authentik/postgresql_password";
|
||||
AUTHENTIK_SECRET_KEY.value = "ref+sops://secrets.yml#/authentik/secret_key";
|
||||
AUTHENTIK_EMAIL__USERNAME.value = "ref+sops://secrets.yml#/smtp2go/username";
|
||||
AUTHENTIK_EMAIL__PASSWORD.value = "ref+sops://secrets.yml#/smtp2go/password";
|
||||
};
|
||||
in {
|
||||
secrets.postgresql-env.stringData = {
|
||||
POSTGRES_PASSWORD = "ref+sops://secrets.yml#/authentik/postgresql_password";
|
||||
};
|
||||
|
||||
deployments = {
|
||||
authentik-server.spec.template.spec.containers.server.env = env;
|
||||
authentik-worker.spec.template.spec.containers.worker.env = env;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue