From 4b56781ba42f3168b49c513e5a77c684a9f94ce6 Mon Sep 17 00:00:00 2001 From: Daniel Dietzler Date: Sat, 1 Feb 2025 00:50:42 +0100 Subject: [PATCH] feat: fourthwall slug --- .../modules/1password/account/k8s-secrets.tf | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tf/deployment/modules/1password/account/k8s-secrets.tf b/tf/deployment/modules/1password/account/k8s-secrets.tf index 81a92431..b7ef9488 100644 --- a/tf/deployment/modules/1password/account/k8s-secrets.tf +++ b/tf/deployment/modules/1password/account/k8s-secrets.tf @@ -220,6 +220,27 @@ resource "onepassword_item" "bot_github_webhook_slug" { } } +resource "random_password" "bot_fourthwall_webhook_slug" { + length = 40 + special = false +} + +resource "onepassword_item" "bot_fourthwall_webhook_slug" { + vault = data.onepassword_vault.kubernetes.uuid + title = "bot-fourthwall-webhook-slug" + category = "secure_note" + + section { + label = "Fourthwall webhook slug for the bot" + + field { + label = "FOURTHWALL_SLUG" + type = "CONCEALED" + value = random_password.bot_fourthwall_webhook_slug.result + } + } +} + resource "random_password" "hedgedoc_oauth_secret" { length = 40 special = false