3
0
Fork 0
forked from mirrors/nixpkgs

nixos/gitlab: Fix swap of secrets

Fix accidental swap of the otp and db secrets in the secrets.yml
file. Fixes #68613.
This commit is contained in:
talyz 2019-09-13 08:40:59 +02:00
parent c82b347947
commit 4b6ba5b27c

View file

@ -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'
)