diff --git a/postgres/config/authentik_auth.yaml b/postgres/config/authentik_auth.yaml new file mode 100644 index 0000000..b18a331 --- /dev/null +++ b/postgres/config/authentik_auth.yaml @@ -0,0 +1,25 @@ +apiVersion: external-secrets.io/v1 +kind: ExternalSecret +metadata: + name: authentik-auth +spec: + data: + - remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: cloudnativepg + metadataPolicy: None + property: authentik_pw + secretKey: password + refreshInterval: 1h + secretStoreRef: + kind: ClusterSecretStore + name: weyma-vault + target: + template: + data: + username: authentik + password: "{{ .password }}" + creationPolicy: Owner + deletionPolicy: Retain + name: authentik-auth diff --git a/postgres/config/clusters/main.yaml b/postgres/config/clusters/main.yaml index bd95c74..709a252 100644 --- a/postgres/config/clusters/main.yaml +++ b/postgres/config/clusters/main.yaml @@ -35,4 +35,10 @@ spec: login: true superuser: true passwordSecret: - name: williamp-auth \ No newline at end of file + name: williamp-auth + - name: authentik + ensure: present + comment: authentik + login: true + passwordSecret: + name: authentik-auth \ No newline at end of file