move ldap config to secret

This commit is contained in:
j 2025-07-26 18:21:25 +10:00
parent 642a10b289
commit cd22f78e16

View file

@ -39,14 +39,6 @@ data:
ssl = yes ssl = yes
} }
} }
ldap.conf: |
hosts = ldap://auth.hxme.net
auth_bind = yes
base = dc=ldap,dc=goauthentik,dc=io
dn = cn=binduser,ou=service-accounts,dc=ldap,dc=goauthentik,dc=io
dnpass = FtaJpthRpKyhEEy69H5qxPymtSeSeuCT9SQCdXmWDeAe7cgTCnk6HXpSzTNS
user_attrs = =home=/data/%u
user_filter = (&(objectClass=person)(uid=%u))
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
@ -73,6 +65,10 @@ spec:
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /config/ mountPath: /config/
- name: ldap-config
mountPath: /config/ldap.conf
subPath: ldap.conf
readOnly: true
- name: certs - name: certs
mountPath: /etc/ssl/hxme mountPath: /etc/ssl/hxme
readOnly: true readOnly: true
@ -81,8 +77,8 @@ spec:
configMap: configMap:
name: dovecot-config name: dovecot-config
- name: ldap - name: ldap
configMap: secret:
name: dovecot-ldap secretName: dovecot-ldap
- name: tls - name: tls
secret: secret:
secretName: wildcard-hxme-net secretName: wildcard-hxme-net