add missing attribute to attr_encrypted so it is fully backwards-compatible
This commit is contained in:
parent
c9a4626333
commit
31c95aa031
3 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,7 @@ module Ci
|
||||||
|
|
||||||
attr_encrypted :value,
|
attr_encrypted :value,
|
||||||
mode: :per_attribute_iv_and_salt,
|
mode: :per_attribute_iv_and_salt,
|
||||||
|
insecure_mode: true,
|
||||||
key: Gitlab::Application.secrets.db_key_base,
|
key: Gitlab::Application.secrets.db_key_base,
|
||||||
algorithm: 'aes-256-cbc'
|
algorithm: 'aes-256-cbc'
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,6 +7,7 @@ class ProjectImportData < ActiveRecord::Base
|
||||||
marshal: true,
|
marshal: true,
|
||||||
encode: true,
|
encode: true,
|
||||||
mode: :per_attribute_iv_and_salt,
|
mode: :per_attribute_iv_and_salt,
|
||||||
|
insecure_mode: true,
|
||||||
algorithm: 'aes-256-cbc'
|
algorithm: 'aes-256-cbc'
|
||||||
|
|
||||||
serialize :data, JSON
|
serialize :data, JSON
|
||||||
|
|
|
@ -25,6 +25,7 @@ class User < ActiveRecord::Base
|
||||||
attr_encrypted :otp_secret,
|
attr_encrypted :otp_secret,
|
||||||
key: Gitlab::Application.config.secret_key_base,
|
key: Gitlab::Application.config.secret_key_base,
|
||||||
mode: :per_attribute_iv_and_salt,
|
mode: :per_attribute_iv_and_salt,
|
||||||
|
insecure_mode: true,
|
||||||
algorithm: 'aes-256-cbc'
|
algorithm: 'aes-256-cbc'
|
||||||
|
|
||||||
devise :two_factor_authenticatable,
|
devise :two_factor_authenticatable,
|
||||||
|
|
Loading…
Reference in a new issue