Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не сохраняется ключ если записать пароль #66

Closed
iamalexgrey opened this issue Jun 1, 2020 · 2 comments
Assignees

Comments

@iamalexgrey
Copy link

Добрый день!
Редмайн 4.1.1, после установки плагина vault (с закоментированной 14ой строкой, таже проблема что в обращении #65 ) я ввел ключ шифрования
Screenshot from 2020-06-02 00-04-59
После чего заполняю ключ в хранилище
Screenshot from 2020-06-02 00-03-33
и сервер выдает такую ошибку
Screenshot from 2020-06-02 00-04-03
В логах при этом появляется:

Current user: admin (id=1)
WARNING: Can't mass-assign protected attributes for Vault::Password: tags
plugins/vault/app/controllers/keys_controller.rb:112:in block in update' plugins/vault/app/controllers/keys_controller.rb:108:in update'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'
Completed 500 Internal Server Error in 17ms (ActiveRecord: 8.0ms)

ArgumentError (key must be 16 bytes):

plugins/vault/lib/vault_cipher.rb:9:in key=' plugins/vault/lib/vault_cipher.rb:9:in encrypt_text'
plugins/vault/lib/encryptor.rb:6:in encrypt' plugins/vault/app/models/vault/password.rb:8:in encrypt!'
plugins/vault/app/controllers/keys_controller.rb:112:in block in update' plugins/vault/app/controllers/keys_controller.rb:108:in update'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'

@noshutdown-ru-user
Copy link
Member

noshutdown-ru-user commented Jun 2, 2020

попробуйте ключ шифрования длинной именно 16 символов
ArgumentError (key must be 16 bytes): it means try key exact 16 symbols

@iamalexgrey
Copy link
Author

Отлично все работает, спасибо большое!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants