fix(nixos,authelia): grant homelab-operators read access to rendered env templates and fix Authelia env syntax
- Add group = "homelab-operators" and mode = "0440" to sops.templates."homeserver.env" and "traefik-deployments.env" so homelab-appctl.service can read rendered env files
- Remove unsupported second fallback argument from {{ env "LLDAP_LDAP_BASE_DN" }} in config/authelia/configuration.yml
This commit was merged in pull request #30.
This commit is contained in:
1 parent
de02b19861
commit
99bda8740f
3 files changed
+6
-2
No files matched your search
@@ -13,7 +13,7 @@ authentication_backend:
|
||||
address: 'ldap://lldap:3890'
|
||||
timeout: 5s
|
||||
start_tls: false
|
||||
base_dn: '{{ env "LLDAP_LDAP_BASE_DN" "dc=example,dc=test" }}'
|
||||
base_dn: '{{ env "LLDAP_LDAP_BASE_DN" }}'
|
||||
additional_users_dn: 'ou=people'
|
||||
users_filter: '(&({username_attribute}={input})(objectClass=person))'
|
||||
additional_groups_dn: 'ou=groups'
|
||||
@@ -24,7 +24,7 @@ authentication_backend:
|
||||
display_name: 'displayName'
|
||||
mail: 'mail'
|
||||
group_name: 'cn'
|
||||
user: 'uid=admin,ou=people,{{ env "LLDAP_LDAP_BASE_DN" "dc=example,dc=test" }}'
|
||||
user: 'uid=admin,ou=people,{{ env "LLDAP_LDAP_BASE_DN" }}'
|
||||
|
||||
access_control:
|
||||
default_policy: deny
|
||||
|
||||
@@ -63,6 +63,8 @@
|
||||
# Generate the unified environment file at runtime in /run/secrets/homeserver.env
|
||||
sops.templates."homeserver.env" = {
|
||||
owner = config.homelab.operatorUser;
|
||||
group = "homelab-operators";
|
||||
mode = "0440";
|
||||
content = lib.generators.toKeyValue {} {
|
||||
DOMAIN = config.homelab.domain;
|
||||
LLDAP_LDAP_BASE_DN = ldapBaseDn;
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
# Generate the unified environment file at runtime in /run/secrets/traefik-deployments.env
|
||||
sops.templates."traefik-deployments.env" = {
|
||||
owner = config.homelab.operatorUser;
|
||||
group = "homelab-operators";
|
||||
mode = "0440";
|
||||
content = lib.generators.toKeyValue {} {
|
||||
# --- Core / Infrastructure Settings ---
|
||||
PROXY_NETWORK = "proxy-net";
|
||||
|
||||
Reference in new issue
Block a user