about summary refs log tree commit diff
path: root/bundles/cal/files/secret.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/cal/files/secret.yaml')
-rw-r--r--bundles/cal/files/secret.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/cal/files/secret.yaml b/bundles/cal/files/secret.yaml
new file mode 100644
index 0000000..ddf91fe
--- /dev/null
+++ b/bundles/cal/files/secret.yaml
@@ -0,0 +1,9 @@
+apiVersion: v1
+kind: Secret
+metadata:
+  name: cal
+data:
+  NEXTAUTH_SECRET: ${repo.vault.password_for("cal_fluidcalendar_secret").b64encode().value}
+  POSTGRES_USER:  ${repo.libs.util.base64("cal")}
+  POSTGRES_PASSWORD: ${repo.vault.password_for("cal_db_pw").b64encode().value}
+  DATABASE_URL: ${repo.libs.util.base64(f"postgresql://cal:{repo.vault.password_for("cal_db_pw")}@localhost/fluid_calendar")}