Patch #33929

Encrypt / decrypt TOTP secret keys with `rake db:encrypt` / `rake db:decrypt`

Added by Go MAEDA over 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Accounts / authentication
Target version:-

Description

Secret keys for two-factor authentication stored in User#twofa_totp_key are encrypted if database_cipher_key is set in config/configuration.yml. So, rake db:encrypt and rake db:decrypt should also support User#twofa_totp_key.

encrypt-totp-secret-key-with-rake-task.patch Magnifier (1.66 KB) Go MAEDA, 2020-08-30 15:59


Related issues

Related to Redmine - Feature #1237: Add support for two-factor authentication Closed 2008-05-14

Associated revisions

Revision 20005
Added by Go MAEDA about 1 year ago

Rake tasks db:encrypt and db:decrypt now supports TOTP secret keys (#1237, #33929).

Revision 20006
Added by Go MAEDA about 1 year ago

Remove mistakenly added database_cipher_key from config/configuration.yml.example (#1237, #33929).

History

#1 Updated by Go MAEDA over 1 year ago

  • Related to Feature #1237: Add support for two-factor authentication added

#2 Updated by Go MAEDA about 1 year ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch in r20005 as a part of #1237.

Also available in: Atom PDF