gitlab-org--gitlab-foss/changelogs/unreleased/sh-fix-secrets-not-working.yml
Stan Hu 61df812ac6 Fix attr_encryption key settings
attr_encrypted does different things with `key` depending on what mode you are using:

1. In `:per_attribute_iv_and_salt` mode, it generates a hash with the salt:
c3a62c4a9e/lib/encryptor.rb (L77).
There is no need to truncate the key to 32 bytes here.

2. In `:per_attribute_iv` mode, it sets the key directly to the password, so
truncation to 32 bytes is necessary.

Closes #47166
2018-06-02 05:24:59 -07:00

5 lines
79 B
YAML

---
title: Fix attr_encryption key settings
merge_request:
author:
type: fixed