mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
Add custom user schema in LLDAP which maps to a custom attribute in Authelia which we then again map to a custom claim which we include in a custom scope which audiobookshelf requests Signed-off-by: Vegard Hagen <[email protected]>
80 lines
2.3 KiB
YAML
80 lines
2.3 KiB
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: lldap-bootstrap
|
|
namespace: lldap
|
|
annotations:
|
|
argocd.argoproj.io/hook: PostSync
|
|
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 1001
|
|
runAsGroup: 1001
|
|
fsGroup: 1001
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: lldap-bootstrap
|
|
image: ghcr.io/lldap/lldap:v0.6.1-alpine-rootless # renovate: docker=ghcr.io/lldap/lldap
|
|
command: [ /app/bootstrap.sh ]
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities:
|
|
drop: [ ALL ]
|
|
envFrom:
|
|
- configMapRef:
|
|
name: common-env
|
|
- configMapRef:
|
|
name: bootstrap-env
|
|
env:
|
|
- name: LLDAP_ADMIN_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: lldap-credentials
|
|
key: LLDAP_LDAP_USER_PASS
|
|
volumeMounts:
|
|
- name: tmp
|
|
mountPath: /tmp
|
|
- name: groups
|
|
mountPath: /bootstrap/group-configs
|
|
readOnly: true
|
|
- name: user-schemas
|
|
mountPath: /bootstrap/user-schemas
|
|
readOnly: true
|
|
- name: users
|
|
mountPath: /bootstrap/user-configs
|
|
readOnly: true
|
|
volumes:
|
|
- name: tmp
|
|
emptyDir: { }
|
|
- name: groups
|
|
projected:
|
|
sources:
|
|
- secret:
|
|
name: lldap-config
|
|
items:
|
|
- key: groups.json
|
|
path: groups.json
|
|
- name: user-schemas
|
|
projected:
|
|
sources:
|
|
- secret:
|
|
name: lldap-config
|
|
items:
|
|
- key: user-schemas.json
|
|
path: user-schemas.json
|
|
- name: users
|
|
projected:
|
|
sources:
|
|
- secret:
|
|
name: lldap-config
|
|
items:
|
|
- key: users.json
|
|
path: users.json
|