From ded867d274f532b383a414e3f349230509f2a0ab Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 18 Nov 2024 13:02:54 +0100 Subject: [PATCH] feat(dj-interludes): Add a real secret --- machines/web03/django-apps/interludes.nix | 3 ++- machines/web03/secrets/secrets.nix | 1 + machines/web03/secrets/webhook-interludes_token | Bin 0 -> 1428 bytes 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 machines/web03/secrets/webhook-interludes_token diff --git a/machines/web03/django-apps/interludes.nix b/machines/web03/django-apps/interludes.nix index f7a52aa..c08d7bb 100644 --- a/machines/web03/django-apps/interludes.nix +++ b/machines/web03/django-apps/interludes.nix @@ -10,6 +10,7 @@ let in { + services.webhook.extraArgs = [ "-debug" ]; services.django-apps.sites.interludes = { source = "https://git.eleves.ens.fr/dlesbre/site-interludes"; branch = "master"; @@ -22,7 +23,7 @@ in serverAliases = [ "interludes.webapps.dgnum.eu" ]; }; - webHookSecret = builtins.toFile "insecure-secret" "T5hNeDraMivRZLUkrekv&QeM"; + webHookSecret = config.age.secrets."webhook-interludes_token".path; application = { type = "wsgi"; diff --git a/machines/web03/secrets/secrets.nix b/machines/web03/secrets/secrets.nix index b79c3b0..77b8726 100644 --- a/machines/web03/secrets/secrets.nix +++ b/machines/web03/secrets/secrets.nix @@ -2,4 +2,5 @@ # List of secrets for web03 "dj_interludes-email_host_password_file" "dj_interludes-secret_key_file" + "webhook-interludes_token" ] diff --git a/machines/web03/secrets/webhook-interludes_token b/machines/web03/secrets/webhook-interludes_token new file mode 100644 index 0000000000000000000000000000000000000000..571a9adf412cb60cfb932d287b5fb4f1d914ca52 GIT binary patch literal 1428 zcmZA0xvt}M7zJ=7I#0zL1W}>r;w5%$OAN^I9y_-G-jf1kJ6_{0UK1CHeyY(_6jLw- z6%{?@6m+}+5^umFfkeYlT#74w{ZHrUd_fvN#C6o&+aYi2Pns@;Clq@4Y}NPKLwv>v z0;N}l>?a1Zl5bH)E^&+X+nKGWfIw7w;gTg|)_B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