Reorganized authelia and split values into seperate file
This commit is contained in:
parent
ab389f65f4
commit
5d38d90552
|
@ -1,10 +0,0 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: authelia
|
||||
resources:
|
||||
- ./namespace.yaml
|
||||
- ./repository.yaml
|
||||
- ./release.yaml
|
||||
- ./lldap.yaml
|
||||
- ../../common/postgres
|
||||
- ../../common/dragonflydb
|
|
@ -1,90 +0,0 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: authelia
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: authelia
|
||||
reconcileStrategy: ChartVersion
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: authelia
|
||||
version: 0.9.9
|
||||
interval: 15m
|
||||
values:
|
||||
pod:
|
||||
replicas: 2
|
||||
ingress:
|
||||
enabled: true
|
||||
tls:
|
||||
enabled: true
|
||||
secret: ${domain//./-}-tls
|
||||
traefikCRD:
|
||||
enabled: true
|
||||
entryPoints:
|
||||
- websecure
|
||||
|
||||
secret:
|
||||
additionalSecrets:
|
||||
postgres-app:
|
||||
key: postgres-app
|
||||
authelia-lldap:
|
||||
key: authelia-lldap
|
||||
|
||||
configMap:
|
||||
authentication_backend:
|
||||
ldap:
|
||||
enabled: true
|
||||
implementation: custom
|
||||
address: ldap://lldap.lldap.svc.cluster.local:3890
|
||||
base_dn: dc=huizinga,dc=dev
|
||||
additional_users_dn: ou=people
|
||||
users_filter: "(&(|({username_attribute}={input})({mail_attribute}={input}))(objectClass=person))"
|
||||
additional_groups_dn: ou=groups
|
||||
groups_filter: "(member={dn})"
|
||||
attributes:
|
||||
display_name: displayName
|
||||
username: uid
|
||||
group_name: cn
|
||||
mail: mail
|
||||
user: uid=authelia,ou=people,dc=huizinga,dc=dev
|
||||
password:
|
||||
secret_name: authelia-lldap
|
||||
path: password
|
||||
|
||||
session:
|
||||
cookies:
|
||||
- subdomain: login${subdomain}
|
||||
domain: ${topdomain}
|
||||
redis:
|
||||
enabled: true
|
||||
host: dragonflydb.authelia
|
||||
|
||||
storage:
|
||||
postgres:
|
||||
enabled: true
|
||||
address: tcp://postgres-rw.authelia:5432
|
||||
database: app
|
||||
username: app
|
||||
password:
|
||||
secret_name: postgres-app
|
||||
path: password
|
||||
|
||||
notifier:
|
||||
filesystem:
|
||||
enabled: true
|
||||
|
||||
access_control:
|
||||
rules:
|
||||
- domain: traefik.${domain}
|
||||
policy: one_factor
|
||||
subject: "group:lldap_admin"
|
||||
- domain: ceph.${domain}
|
||||
policy: one_factor
|
||||
subject: "group:lldap_admin"
|
||||
- domain: grafana.${domain}
|
||||
policy: one_factor
|
||||
# Deny by default, mainly a placeholder to allow patching in other rules
|
||||
- domain: "*"
|
||||
policy: deny
|
|
@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
resources:
|
||||
- ./lldap
|
||||
- ./authelia
|
||||
- ./grafana
|
||||
|
||||
- ./whoami.yaml
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
resources:
|
||||
- ./bootstrap-job.yaml
|
||||
- ../../authelia/lldap.yaml
|
||||
- ../../../infra/authelia/secret-authelia-lldap.yaml
|
||||
- ../../grafana/lldap.yaml
|
||||
|
||||
configMapGenerator:
|
||||
|
|
26
clusters/titan.lan.huizinga.dev/infra/authelia.yaml
Normal file
26
clusters/titan.lan.huizinga.dev/infra/authelia.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: authelia
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 15m
|
||||
path: ./infra/authelia
|
||||
dependsOn:
|
||||
- name: cnpg
|
||||
- name: infra-controllers
|
||||
- name: apps
|
||||
prune: true
|
||||
timeout: 2m
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
wait: true
|
||||
postBuild:
|
||||
substituteFrom:
|
||||
- kind: ConfigMap
|
||||
name: domain-vars
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: sops-gpg
|
7
common/name-reference/helm-release.yaml
Normal file
7
common/name-reference/helm-release.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
# This makes sure the field in the HelmRelease is recognized as a ConfigMap
|
||||
nameReference:
|
||||
- kind: ConfigMap
|
||||
version: v1
|
||||
fieldSpecs:
|
||||
- path: spec/valuesFrom/name
|
||||
kind: HelmRelease
|
17
infra/authelia/helm-release.yaml
Normal file
17
infra/authelia/helm-release.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: authelia
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: authelia
|
||||
reconcileStrategy: ChartVersion
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: authelia
|
||||
version: 0.9.16
|
||||
interval: 15m
|
||||
valuesFrom:
|
||||
- kind: ConfigMap
|
||||
name: authelia-values
|
18
infra/authelia/kustomization.yaml
Normal file
18
infra/authelia/kustomization.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: authelia
|
||||
resources:
|
||||
- ./namespace.yaml
|
||||
- ./helm-repository.yaml
|
||||
- ./helm-release.yaml
|
||||
- ./secret-authelia-lldap.yaml
|
||||
- ../../common/postgres
|
||||
- ../../common/dragonflydb
|
||||
|
||||
configurations:
|
||||
- ../../common/name-reference/helm-release.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: authelia-values
|
||||
files:
|
||||
- ./values.yaml
|
76
infra/authelia/values.yaml
Normal file
76
infra/authelia/values.yaml
Normal file
|
@ -0,0 +1,76 @@
|
|||
pod:
|
||||
kind: Deployment
|
||||
replicas: 2
|
||||
ingress:
|
||||
enabled: true
|
||||
tls:
|
||||
enabled: true
|
||||
secret: ${domain//./-}-tls
|
||||
traefikCRD:
|
||||
enabled: true
|
||||
entryPoints:
|
||||
- websecure
|
||||
|
||||
secret:
|
||||
additionalSecrets:
|
||||
postgres-app:
|
||||
key: postgres-app
|
||||
authelia-lldap:
|
||||
key: authelia-lldap
|
||||
|
||||
configMap:
|
||||
authentication_backend:
|
||||
ldap:
|
||||
enabled: true
|
||||
implementation: lldap
|
||||
address: ldap://lldap.lldap.svc.cluster.local:3890
|
||||
base_dn: dc=huizinga,dc=dev
|
||||
additional_users_dn: ou=people
|
||||
users_filter: "(&(|({username_attribute}={input})({mail_attribute}={input}))(objectClass=person))"
|
||||
additional_groups_dn: ou=groups
|
||||
groups_filter: "(member={dn})"
|
||||
attributes:
|
||||
display_name: displayName
|
||||
username: uid
|
||||
group_name: cn
|
||||
mail: mail
|
||||
user: uid=authelia,ou=people,dc=huizinga,dc=dev
|
||||
password:
|
||||
secret_name: authelia-lldap
|
||||
path: password
|
||||
|
||||
session:
|
||||
cookies:
|
||||
- subdomain: login${subdomain}
|
||||
domain: ${topdomain}
|
||||
redis:
|
||||
enabled: true
|
||||
host: dragonflydb.authelia
|
||||
|
||||
storage:
|
||||
postgres:
|
||||
enabled: true
|
||||
address: tcp://postgres-rw.authelia:5432
|
||||
database: app
|
||||
username: app
|
||||
password:
|
||||
secret_name: postgres-app
|
||||
path: password
|
||||
|
||||
notifier:
|
||||
filesystem:
|
||||
enabled: true
|
||||
|
||||
access_control:
|
||||
rules:
|
||||
- domain: traefik.${domain}
|
||||
policy: one_factor
|
||||
subject: "group:lldap_admin"
|
||||
- domain: ceph.${domain}
|
||||
policy: one_factor
|
||||
subject: "group:lldap_admin"
|
||||
- domain: grafana.${domain}
|
||||
policy: one_factor
|
||||
# Deny by default, mainly a placeholder to allow patching in other rules
|
||||
- domain: "*"
|
||||
policy: deny
|
Loading…
Reference in New Issue
Block a user