From 666ad2521c4ad28472f83fd6ec81873d5c3c059c Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Sat, 9 Mar 2024 09:52:02 +0000 Subject: [PATCH] fix: added mariadb grant/user/db for authelia --- .../misc/authelia/chart/templates/db.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 argo/cluster/misc/authelia/chart/templates/db.yaml diff --git a/argo/cluster/misc/authelia/chart/templates/db.yaml b/argo/cluster/misc/authelia/chart/templates/db.yaml new file mode 100644 index 000000000..4ba3ec426 --- /dev/null +++ b/argo/cluster/misc/authelia/chart/templates/db.yaml @@ -0,0 +1,38 @@ +apiVerison: k8s.mariadb.com/v1alpha1 +kind: Database +metadata: + name: authelia-db +spec: + mariaDbRef: + name: mariadb + namespace: databases +--- +apiVersion: k8s.mariadb.com +kind: User +metadata: + name: authelia +spec: + name: authelia + host: '%' + + passwordSecretKeyRef: + name: mariadb-authelia-password + key: password + + mariaDbRef: + name: mariadb + namespace: databases +--- +apiVersion: k8s.mariadb.com +kind: Grant +metadata: + name: authlia-grant +spec: + database: authelia + table: "*" + privileges: [ALL] + username: authelia + + mariaDbRef: + name: mariadb + namespace: databases