prevent algorithm and key length issue for upgrades from an older GilLab version - 8.6 or earlier
This commit is contained in:
parent
ef2edcc100
commit
457adb942c
|
@ -7,7 +7,13 @@ class RemoveWrongImportUrlFromProjects < ActiveRecord::Migration
|
|||
class ProjectImportDataFake
|
||||
extend AttrEncrypted
|
||||
attr_accessor :credentials
|
||||
attr_encrypted :credentials, key: Gitlab::Application.secrets.db_key_base, marshal: true, encode: true, :mode => :per_attribute_iv_and_salt
|
||||
attr_encrypted :credentials,
|
||||
key: Gitlab::Application.secrets.db_key_base,
|
||||
marshal: true,
|
||||
encode: true,
|
||||
:mode => :per_attribute_iv_and_salt,
|
||||
insecure_mode: true,
|
||||
algorithm: 'aes-256-cbc'
|
||||
end
|
||||
|
||||
def up
|
||||
|
|
Loading…
Reference in New Issue