From 4b6ba5b27c7ce81140d188d976fe1a08c3e5d3ee Mon Sep 17 00:00:00 2001 From: talyz Date: Fri, 13 Sep 2019 08:40:59 +0200 Subject: nixos/gitlab: Fix swap of secrets Fix accidental swap of the otp and db secrets in the secrets.yml file. Fixes #68613. --- nixos/modules/services/misc/gitlab.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nixos/modules') diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index caef4ad4ea80..bcf0603c6f39 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -806,8 +806,8 @@ in { export otp="$(<'${cfg.secrets.otpFile}')" export jws="$(<'${cfg.secrets.jwsFile}')" ${pkgs.jq}/bin/jq -n '{production: {secret_key_base: $ENV.secret, - otp_key_base: $ENV.db, - db_key_base: $ENV.otp, + otp_key_base: $ENV.otp, + db_key_base: $ENV.db, openid_connect_signing_key: $ENV.jws}}' \ > '${cfg.statePath}/config/secrets.yml' ) -- cgit 1.4.1