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:
parent
c82b347947
commit
4b6ba5b27c
|
@ -806,8 +806,8 @@ in {
|
||||||
export otp="$(<'${cfg.secrets.otpFile}')"
|
export otp="$(<'${cfg.secrets.otpFile}')"
|
||||||
export jws="$(<'${cfg.secrets.jwsFile}')"
|
export jws="$(<'${cfg.secrets.jwsFile}')"
|
||||||
${pkgs.jq}/bin/jq -n '{production: {secret_key_base: $ENV.secret,
|
${pkgs.jq}/bin/jq -n '{production: {secret_key_base: $ENV.secret,
|
||||||
otp_key_base: $ENV.db,
|
otp_key_base: $ENV.otp,
|
||||||
db_key_base: $ENV.otp,
|
db_key_base: $ENV.db,
|
||||||
openid_connect_signing_key: $ENV.jws}}' \
|
openid_connect_signing_key: $ENV.jws}}' \
|
||||||
> '${cfg.statePath}/config/secrets.yml'
|
> '${cfg.statePath}/config/secrets.yml'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue