Giter VIP home page Giter VIP logo

noshutdown-ru / vault Goto Github PK

View Code? Open in Web Editor NEW
46.0 12.0 29.0 612 KB

Is a plugin for project management system Redmine. Allows you to store various passwords/keys in one place for the project.

Home Page: https://noshutdown.ru/en/redmine-plugins-vault

Ruby 66.89% HTML 29.96% CSS 1.89% JavaScript 1.26%
redmine noshutdown vault keychain password-manager encryption-key redmine-encryption ruby redmine-plugin

vault's Introduction

Vault

Is a plugin for project management system Redmine. Allows you to store various passwords/keys in one place for the project.

About

https://noshutdown.ru/en/redmine-plugins-vault/#about

Installation

# cd redmine/plugins 
# git clone https://github.com/noshutdown-ru/vault
# cd ../
# bundle install --without development test
# rake redmine:plugins:migrate RAILS_ENV=production
  • For Redmine older version 4.2 Rails.application.config.assets.precompile += %w( zeroclipboard.js ) to config/initializers/assets.rb and restart your server.

  • After installing a plugin, open the settings ( http://*/settings/plugin/vault ) and enter encryption key in the Encryption key field.

  • Or use encryption Redmine Encryption, to do this, add the encryption key to a file ( config/configuration.yml ), for example ( database_cipher_key: HediddAwkAbCunnoashtAlEcBuobdids ) and check the box on the Use Redmine Encryption.

Read more: https://noshutdown.ru/en/redmine-plugins-vault/#install

Screenshots

https://noshutdown.ru/en/redmine-plugins-vault/#screens

Releases

https://noshutdown.ru/en/redmine-plugins-vault/#releases

vault's People

Contributors

adrianobr avatar boris-burgos avatar daiben avatar dktcoding avatar joethefox avatar noshutdown-ru-user avatar verfriemelt-dot-org avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vault's Issues

Save keys 500 error

image

Other fields can be saved

i cant save key fields

Started POST "/projects/test/keys" for 111.199.175.11 at 2018-05-24 20:28:36 +0800
Processing by KeysController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"9963/JYHnuhiM6+kIlLqXLmYaZ85UU1B+tauCtTOravRJHCkdXSN5BPjeYNhfqWe0e3qZCKrPxuoNXec+3CadQ==", "vault_key"=>{"name"=>"1", "login"=>"2", "url"=>"3", "type"=>"Vault::Password", "body"=>"1234567890", "tags"=>"", "comment"=>""}, "commit"=>"保存", "project_id"=>"test"}
  Current user: admin (id=1)
WARNING: Can't mass-assign protected attributes for Vault::Password: tags
	plugins/vault/app/controllers/keys_controller.rb:80:in `create'
	lib/redmine/sudo_mode.rb:63:in `sudo_mode'
	plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware.rb:62:in `call'
Completed 500 Internal Server Error in 49ms (ActiveRecord: 18.0ms)

OpenSSL::Cipher::CipherError (key length too short):
  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:88:in `block in create'
  plugins/vault/app/controllers/keys_controller.rb:87:in `create'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
  plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware.rb:62:in `call'
Environment:
  Redmine version                3.4.3.stable
  Ruby version                   2.3.3-p222 (2016-11-21) [i386-mingw32]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               Mysql2

Can not remove users from Access list

Hi, we have the following installation:
Ubuntu 18.04/Apache2/Passenger/Ruby 2.3.7/Redmine 3.4.6/Vault 0.3.9

If I want to remove a user from the access list I can save the result but if I go to edit the key again the old user list is shown in the access list.
In the logfile I can see:

Started PATCH "/projects/proj/keys/4" for 10.1.1.116 at 2018-09-28 14:19:22 +0200
Processing by KeysController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"***", "vault_key"=>{"name"=>"testkey", "login"=>"login", "url"=>"https://", "type"=>"Vault::Password", "body"=>"foo", "tags"=>"bar", "comment"=>""}, "commit"=>"Save", "project_id"=>"proj", "id"=>"4"}
Current user: user (id=4)
WARNING: Can't mass-assign protected attributes for Vault::Password: tags
plugins/vault/app/controllers/keys_controller.rb:102:in block in update' plugins/vault/app/controllers/keys_controller.rb:98:in update'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

asset_host (NoMethodError) (Redmine 4.1.1)

I am getting this in apache error log, application can't start.

App 6703 output: Error: The application encountered the following error: undefined method assets' for #<Rails::Application::Configuration:0x000055c4772c41d8><br/> App 6703 output: Did you mean? asset_host (NoMethodError)<br/> App 6703 output: /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4.2/lib/rails/railtie/configuration.rb:97:in method_missing’

Problem occrus after the config is done in config/initializers/assets.rb

Rails.application.config.assets.precompile += %w( zeroclipboard.js )

Зря удалили иконки копирования

Раньше была иконка копирования рядом с колонкой Url теперь урл можно скопировать через меню, что на пару кликов длинней.
Я использую поле урл не только для хранения урлов но и для хранения вот такой строки:

ssh [email protected] -p 2244

удобно копировать было, а не набирать.

iconv fail

I have been trying to install this plugin so long, but always stopped at gem iconv.
Im using bitnami with ruby 2.3.0. hope there is an advice for me.

have_func: checking for rb_enc_get() in ruby/encoding.h... -------------------- yes

"gcc -o conftest.exe -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/i386-mingw32 -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/backward -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0 -I. -IC:\Program/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Bitnami/redmine-3.4.2-4/ruby/lib -LC:\Program/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/defines.h:168:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:36,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:296:43: warning: 'struct timespec' declared inside parameter list
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:1992:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:923:29: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:926:41: warning: 'struct timespec' declared inside parameter list
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char *argv)
6: {
7: return 0;
8: }
/
end */

"gcc -o conftest.exe -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/i386-mingw32 -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/backward -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0 -I. -IC:\Program/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Bitnami/redmine-3.4.2-4/ruby/lib -LC:\Program/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/defines.h:168:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:36,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:296:43: warning: 'struct timespec' declared inside parameter list
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:1992:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:923:29: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:926:41: warning: 'struct timespec' declared inside parameter list
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <ruby/encoding.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: int t(void) { void ((volatile p)()); p = (void (()()))rb_enc_get; return !p; }
/
end */


have_func: checking for rb_sys_fail_str() in ruby.h... -------------------- yes

"gcc -o conftest.exe -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/i386-mingw32 -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/backward -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0 -I. -IC:\Program/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Bitnami/redmine-3.4.2-4/ruby/lib -LC:\Program/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/defines.h:168:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:36,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:296:43: warning: 'struct timespec' declared inside parameter list
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:1992:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:923:29: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:926:41: warning: 'struct timespec' declared inside parameter list
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <ruby.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: int t(void) { void ((volatile p)()); p = (void (()()))rb_sys_fail_str; return !p; }
/
end */


have_func: checking for iconv() in iconv.h... -------------------- no

"gcc -o conftest.exe -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/i386-mingw32 -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/backward -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0 -I. -IC:\Program/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Bitnami/redmine-3.4.2-4/ruby/lib -LC:\Program/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/defines.h:168:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:36,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:296:43: warning: 'struct timespec' declared inside parameter list
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:1992:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:923:29: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:926:41: warning: 'struct timespec' declared inside parameter list
conftest.c:5:19: fatal error: iconv.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <iconv.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: int t(void) { void ((volatile p)()); p = (void (()()))iconv; return !p; }
/
end */

"gcc -o conftest.exe -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/i386-mingw32 -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/backward -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0 -I. -IC:\Program/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Bitnami/redmine-3.4.2-4/ruby/lib -LC:\Program/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/defines.h:168:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:36,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:296:43: warning: 'struct timespec' declared inside parameter list
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:1992:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:923:29: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:926:41: warning: 'struct timespec' declared inside parameter list
conftest.c:5:19: fatal error: iconv.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <iconv.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: extern void iconv();
18: int t(void) { iconv(); return 0; }
/
end */


have_library: checking for iconv() in -liconv... -------------------- no

"gcc -o conftest.exe -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/i386-mingw32 -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/backward -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0 -I. -IC:\Program/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Bitnami/redmine-3.4.2-4/ruby/lib -LC:\Program/lib -L. -lmsvcrt-ruby230 -liconv -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/defines.h:168:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:36,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:296:43: warning: 'struct timespec' declared inside parameter list
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:1992:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:923:29: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:926:41: warning: 'struct timespec' declared inside parameter list
conftest.c:5:19: fatal error: iconv.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <iconv.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: int t(void) { void ((volatile p)()); p = (void (()()))iconv; return !p; }
/
end */

"gcc -o conftest.exe -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/i386-mingw32 -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/backward -IC:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0 -I. -IC:\Program/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Bitnami/redmine-3.4.2-4/ruby/lib -LC:\Program/lib -L. -lmsvcrt-ruby230 -liconv -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/defines.h:168:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:36,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:295:44: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/win32.h:296:43: warning: 'struct timespec' declared inside parameter list
In file included from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/ruby.h:1992:0,
from C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby.h:33,
from conftest.c:1:
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:923:29: warning: 'struct timespec' declared inside parameter list
C:/Bitnami/redmine-3.4.2-4/ruby/include/ruby-2.3.0/ruby/intern.h:926:41: warning: 'struct timespec' declared inside parameter list
conftest.c:5:19: fatal error: iconv.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <iconv.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: extern void iconv();
18: int t(void) { iconv(); return 0; }
/
end */


Search not working

Hello

I've just installed plugin on my instance :

Environment:
  Redmine version                3.3.1.stable
  Ruby version                   2.3.3-p222 (2016-11-21) [i386-linux-gnu]
  Rails version                  4.2.10
  Environment                    production
  Database adapter               SQLite
SCM:
  Subversion                     1.9.5
  Git                            2.11.0
  Filesystem                     
  GitRemote                      2.11.0
Redmine plugins:
  redmine_default_custom_query   1.1.2
  redmine_git_remote             0.0.1
  redmine_spent_time             3.1.2
  redmine_tweaks                 1.0.0
  redmine_wktime                 2.7
  vault                          0.3.6

In role management I've enabled all options related to this plugin.
I can add without problem a key, from vault admin page I can export data and see all key added.

But from vault project tab, I get a 500 error ( projects/projects1/keys?utf8=✓&query=mat&commit=Mettre+à+jour )

Started GET "/projects/projects1/keys?utf8=%E2%9C%93&query=mat&commit=Mettre+%C3%A0+jour" for 88.190.92.83 at 2018-02-19 17:14:56 +0100
Processing by KeysController#index as HTML
  Parameters: {"utf8"=>"�", "query"=>"mat", "commit"=>"Mettre à jour", "project_id"=>"projects1"}
  Current user: admin (id=3)
Completed 500 Internal Server Error in 143ms (ActiveRecord: 97.9ms)

NoMethodError (private method `select' called for nil:NilClass):
  plugins/vault/app/controllers/keys_controller.rb:51:in `index'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Tag as a new column to show

Hello,
would it be possible to have Tags as a new column? So it will be visible what tags are assigned to a key and allow sorting? Or some possibility of sorted list of tags, not only not-sorted popular tags on side?
Thanks

Bulk assess grant/decline

When have large number of keys, grant access to new team member took very long time. Ability of bulk grant access very useful in this scenario.

HTTP ERROR 500 when add file in add key

Когда добавляешь файл в поле "файл ключа" и нажимаешь "сохранить" попадаешь на страницу HTTP ERROR 500
image
Сама ошибка:
image
Не знаете в чем может быть проблема?

Vault 0.3.11: ArgumentError (key must be 16 bytes)

Today I noticed that the vault plugin 0.3.11 is not running anymore. I don't know when/why it started to give a server error. The error log says:

Started GET "/projects//keys" for 10.1.1.116 at 2019-04-11 12:45:02 +0200
Processing by KeysController#index as HTML
Parameters: {"project_id"=>"
"}
Current user: ***** (id=24)
Completed 500 Internal Server Error in 37ms (ActiveRecord: 5.9ms)

ArgumentError (key must be 16 bytes):
plugins/vault/lib/vault_cipher.rb:22:in key=' plugins/vault/lib/vault_cipher.rb:22:in decrypt_text'
plugins/vault/lib/encryptor.rb:11:in decrypt' plugins/vault/app/models/vault/password.rb:14:in decrypt!'
plugins/vault/app/controllers/keys_controller.rb:66:in map' plugins/vault/app/controllers/keys_controller.rb:66:in index'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

The current setup is:
Environment:
Redmine version 3.4.8.stable
Ruby version 2.4.6-p354 (2019-04-01) [x86_64-linux]
Rails version 4.2.11
Environment production
Database adapter Mysql2

Because of the error I upgraded today from ruby 2.4.5 to 2.4.6. But it does not help.

Redmine docker: not possible to start the container with vault plugin, write permission ussue

Hi,
I try to use the plugin in a vault container. Here is what I do to built it with vault:
Dockerfile =>

RUN cd plugins; \
git clone https://github.com/noshutdown-ru/vault

The build wokrs fine.

Then I launch the container.
When the container start, it does the:

bundle install --without development test
rake redmine:plugins:migrate RAILS_ENV=production

Here I get the following error and I can't start the container:

Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency ffi (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
There was an error while trying to write to
`/home/redmine/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions`.
It is likely that you need to grant write permissions for that path.
Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency ffi (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
There was an error while trying to write to
`/home/redmine/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions`.
It is likely that you need to grant write permissions for that path.

regards
Vandman

Cannot bundle

When i try to bundle following the installation guide, i get the following error:

bit@XXX:~/apps/redmine/htdocs/plugins$ bundle install --without development test

[!] There was an error parsing Gemfile:
[!] There was an error parsing Gemfile: You cannot specify the same gem twice with different version requirements.
You specified: protected_attributes_continued (>= 0) and protected_attributes_continued (= 1.4.0). Bundler cannot continue.

from /opt/bitnami/apps/redmine/htdocs/plugins/vault/Gemfile:14

if Gem::Version.new(redmine_version_major) >= Gem::Version.new('4')

gem 'protected_attributes_continued', '1.4.0'
end


. Bundler cannot continue.

from /opt/bitnami/apps/redmine/htdocs/Gemfile:99

Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", FILE) do |file|

eval_gemfile file
end


Table size in PDF

Is it possible to resize the tables in the pdf output ?
For example, i don't need such a long URL field, but would prefer a bigger "login" table.
How can I achieve that ?

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):

Hey!
We faced of with problem:

Processing by KeysController#index as HTML
  Parameters: {"project_id"=>"crm"}
  Current user: user (id=3)
  Rendered plugins/vault/app/views/shared/_key_fields.html.erb (0.3ms)
  Rendered plugins/vault/app/views/vault/passwords/_password.html.erb (1.5ms)
  Rendered plugins/vault/app/views/keys/index.html.erb within layouts/base (4.7ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 4.3ms)

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):
     7:     <% unless password.body.blank? %>
     8: 
     9:       <label>*********</label>
    10:       <label id='plain_pass_<%=password.id%>' style='display:none;'><%= password.body %></label>
    11: 
    12:       <a align="left" class='keys-actions copy-key' data-clipboard-target='plain_pass_<%=password.id%>' title='<%=t('key.btn.clipboard')%>'>
    13:         <i class="fa fa-clipboard fa-fw"></i>
  plugins/vault/app/views/vault/passwords/_password.html.erb:10:in `_plugins_vault_app_views_vault_passwords__password_html_erb__1521033087661395652_69908829726360'
  plugins/vault/app/views/keys/index.html.erb:49:in `block (2 levels) in _plugins_vault_app_views_keys_index_html_erb__3488128115211990408_69908830743220'
  plugins/vault/app/views/keys/index.html.erb:48:in `each'
  plugins/vault/app/views/keys/index.html.erb:48:in `block in _plugins_vault_app_views_keys_index_html_erb__3488128115211990408_69908830743220'
  plugins/vault/app/views/keys/index.html.erb:34:in `_plugins_vault_app_views_keys_index_html_erb__3488128115211990408_69908830743220'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Processing by UsErrorsController#error_500 as HTML```

How can I fix this error?


P.S.
```Environment:
  Redmine version                3.4.5.stable
  Ruby version                   2.3.4-p301 (2017-03-30) [x86_64-linux]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               Mysql2```

500 Internal Server Error

Processing by KeysController#index as HTML
Parameters: {"utf8"=>"✓", "query"=>"ttt", "search_fild"=>"name", "commit"=>"Update", "project_id"=>"xgcworld"}
Current user: admin (id=1)
Completed 500 Internal Server Error in 81ms (ActiveRecord: 62.9ms)

ActiveRecord::StatementInvalid (PG::UndefinedFunction: ERROR: operator does not exist: character varying LINE 1: ...) FROM "keys" WHERE "keys"."project_id" = $1 AND (name LIK... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. : SELECT COUNT(*) FROM "keys" WHERE "keys"."project_id" = $1 AND (nameLIKE '%ttt%')): plugins/vault/app/controllers/keys_controller.rb:55:inindex'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Restore from backup to batch import new/modified keys

Hi. I tried to import a slighly modified backup to add new keys or to change project_ids.

What I did

  • I tried to backup => backup.zip
  • then I unzipped and modified manually keys.csv, trying something as simple as changing the project id.
  • I zipped again the files as backup_new.zip
  • I used the plugin interface to restore from backup
  • restore complete, but no project id changed, no new keys created

Import works fine but the no new key is created and project id cannot be changed either.
Nothing special from the logs
Redmine 3.4.6 stable

Your plugin is really great, need to find a solution :)

Thanks for your help

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

Добрый день!
Редмайн 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'

Error on searching by name / URL

Hello,

Your plugin responds perfectly to my need.

However, I get an error when searching for a key by name or URL.

Started GET "/projects/project/keys?utf8=%E2%9C%93&query=PostgreSQL&search_fild=name&commit=Mettre+%C3%A0+jour" for xxx.xxx.xxx.xxx at 2017-10-21 18:18:52 +0200
Processing by KeysController#index as HTML
Parameters: {"utf8"=>"✓", "query"=>"PostgreSQL", "search_fild"=>"name", "commit"=>"Mettre à jour", "project_id"=>"project"}
Current user: xxxxx (id=5)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 7.9ms)

ActiveRecord::StatementInvalid (PG::UndefinedFunction: ERREUR: l'opérateur n'existe pas : character varying LINE 1: ...) FROM "keys" WHERE "keys"."project_id" = $1 AND (name LIK... ^ HINT: Aucun opérateur ne correspond au nom donné et aux types d'arguments. Vous devez ajouter des conversions explicites de type. : SELECT COUNT(*) FROM "keys" WHERE "keys"."project_id" = $1 AND (nameLIKE '%PostgreSQL%')): plugins/vault/app/controllers/keys_controller.rb:55:inindex'
lib/redmine/sudo_mode.rb:63:in sudo_mode'

I was able to find a temporary solution to test it by deleting the characters " ` " in the file 'app / controllers / keys_controller.rb'.

You will find below the configuration of my Redmine.

Environment:
Redmine version 3.3.4.stable.16775
Ruby version 2.3.4-p301 (2017-03-30) [x86_64-linux]
Rails version 4.2.7.1
Environment production
Database adapter PostgreSQL
SCM:
Subversion 1.9.3
Git 2.7.4
Filesystem
Redmine plugins:
clipboard_image_paste 1.12
redmine_agile 1.4.5
redmine_banner 0.1.2
redmine_checklists 3.1.10
redmine_drawio 0.8.0
redmine_editor_preview_tab 0.1.5
redmine_lightbox2 0.3.5
vault 0.3.3

Thx

Mysql2::Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

I am trying install plugin, bet hang at this step

rake redmine:plugins:vault:convert
rake aborted!
Mysql2::Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
/usr/local/rvm/gems/ruby-2.4.0/gems/mysql2-0.4.9/lib/mysql2/client.rb:89:in connect' /usr/local/rvm/gems/ruby-2.4.0/gems/mysql2-0.4.9/lib/mysql2/client.rb:89:in initialize'
/usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in new' /usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in mysql2_connection'
/usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in new_connection' /usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in checkout_new_connection'
/usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in acquire_connection' /usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in block in checkout'
/usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in checkout' /usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in block in connection'
/usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in connection' /usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in retrieve_connection'
/usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_handling.rb:113:in retrieve_connection' /usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_handling.rb:87:in connection'
/usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/model_schema.rb:230:in table_exists?' /usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/attribute_methods/primary_key.rb:97:in get_primary_key'
/usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/attribute_methods/primary_key.rb:85:in reset_primary_key' /usr/local/rvm/gems/ruby-2.4.0/gems/activerecord-4.2.8/lib/active_record/attribute_methods/primary_key.rb:73:in primary_key'
/usr/local/rvm/gems/ruby-2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/attribute_assignment.rb:15:in attributes_protected_by_default' /usr/local/rvm/gems/ruby-2.4.0/gems/protected_attributes-1.1.4/lib/active_model/mass_assignment_security.rb:337:in block in protected_attributes_configs'
/usr/local/rvm/gems/ruby-2.4.0/gems/protected_attributes-1.1.4/lib/active_model/mass_assignment_security.rb:222:in protected_attributes' /usr/local/rvm/gems/ruby-2.4.0/gems/protected_attributes-1.1.4/lib/active_model/mass_assignment_security.rb:126:in block in attr_protected'
/usr/local/rvm/gems/ruby-2.4.0/gems/protected_attributes-1.1.4/lib/active_model/mass_assignment_security.rb:125:in each' /usr/local/rvm/gems/ruby-2.4.0/gems/protected_attributes-1.1.4/lib/active_model/mass_assignment_security.rb:125:in attr_protected'
/var/www/html/redmine/app/models/custom_field.rb:38:in <class:CustomField>' /var/www/html/redmine/app/models/custom_field.rb:18:in <top (required)>'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:457:in load' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:457:in block in load_file'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:647:in new_constants_in' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:456:in load_file'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:354:in require_or_load' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:494:in load_missing_constant'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:184:in const_missing' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:526:in load_missing_constant'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:184:in const_missing' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:526:in load_missing_constant'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:184:in const_missing' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:526:in load_missing_constant'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:184:in const_missing' /var/www/html/redmine/lib/redmine/field_format.rb:108:in field_attributes'
/var/www/html/redmine/lib/redmine/field_format.rb:111:in <class:Base>' /var/www/html/redmine/lib/redmine/field_format.rb:57:in module:FieldFormat'
/var/www/html/redmine/lib/redmine/field_format.rb:21:in <module:Redmine>' /var/www/html/redmine/lib/redmine/field_format.rb:20:in <top (required)>'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in require' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in block in require'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in load_dependency' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in require'
/var/www/html/redmine/lib/redmine.rb:40:in <top (required)>' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in require'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in block in require' /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in load_dependency'
/usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-4.2.8/lib

Cannot modify access list

When trying to access access list for a key, from available members, no error raised but nothing is saved and access list is always empty.

Redmine logs give the following hint :

WARNING: Can't mass-assign protected attributes for Vault::Password: tags
plugins/vault/app/controllers/keys_controller.rb:101:in block in update' plugins/vault/app/controllers/keys_controller.rb:97:in update'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Redmine 3.4.2
Ruby 2.4.2
Rails 4.2.8
Vault Redmine plugin 0.3.3

Copy to clipboard

With redmine 3.4 the function (link) to copy key to clipboard not working.

image

Assign key creator as member by default

Hello,
the current behavior is that when creating a key, nobody is assigned to is as member. So after created without assigning, creator can not see it, only RedMine superadmin can. I it possible ti change that so creator is automatiuically member?

Thanks

Installation problem

Hi,
I'm having a problem with installation. I get rake error.

Environment:
Redmine version 4.0.5.stable
Ruby version 2.5.5-p157 (2019-03-15) [x86_64-linux]
Rails version 5.2.3

Vault version: 0.4.1

rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
class CreateEnumPrices < ActiveRecord::Migration[4.2]

Any ideas?

Key creation/update date

Hi, thank you for wonderful module. Could you add key update/creation date? This module could be ideal if you also add key history and ability to see who created/updated the keys.

undefined method `offset'

После обновления на последнюю версию

I, [2018-02-10T22:43:07.092208 #22464]  INFO -- : Completed 500 Internal Server Error in 82ms (ActiveRecord: 18.1ms)
F, [2018-02-10T22:43:07.094158 #22464] FATAL -- : 
NoMethodError (undefined method `offset' for #<Array:0x007f9e5c152c30>):
  plugins/vault/app/controllers/keys_controller.rb:60:in `index'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Permissions not set after install and Project manager/owner is not default in the "Selected Members"

Hi !
After installing the plugin ,
it only was available for the admin, because the permissions aren't set for any other roles
After changing the permissions
On creating a new entry the user(Role Manager) is not included in the Selected Members by default witch makes the new entry unavailable for the user and only the admin can revert this .

Something went wrong in the installation right?

Environment:
  Redmine version                4.1.1.stable
  Ruby version                   2.6.5-p114 (2019-10-01) [x86_64-linux]
  Rails version                  5.2.4.2
  Environment                    production
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Git                            2.29.2
  Filesystem                     
Redmine plugins:
  additionals                    3.0.0
  ipma_custom                    0.0.1
  redmine_all_thumbnails         1.0.5
  redmine_announcements          2.0.0
  redmine_callout_macro          1.0.0
  redmine_issue_dynamic_edit     0.7.2
  redmine_issues_tree            0.0.14
  redmine_lightbox2              0.5.1
  redmine_more_code              1.0.1
  redmine_preview_inline         1.0.3
  redmine_wysiwyg_editor         0.18.0
  vault                          0.4.1

Batch update key permissions

Hi, Lovely plugin, thanks for sharing.

But I just discovered today on adding a new user to a project that the keys inherit the users in the project at the time the key is created.

I now have to edit 85 keys manually for each new user :(

Could you implement an action so we can add a user (or remove) to the selected keys?

Many thanks

Jamie

Redmine 4.0 support

Hi!

Are there any plans on supporting Redmine 4.0?

rake aborted!
NoMethodError: undefined method `attr_accessible' for #<Class:0x0000561b2eb17110>
Did you mean?  attr_accessor
/var/lib/gems/2.5.0/gems/activerecord-5.2.2/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/home/redmine/redmine-4.0.0/plugins/vault/app/models/vault/key.rb:10:in `<class:Key>'
/home/redmine/redmine-4.0.0/plugins/vault/app/models/vault/key.rb:5:in `<module:Vault>'
/home/redmine/redmine-4.0.0/plugins/vault/app/models/vault/key.rb:1:in `<top (required)>'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
/home/redmine/redmine-4.0.0/plugins/vault/lib/vault.rb:1:in `<top (required)>'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:378:in `block in require_or_load'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:13:in `loading'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:37:in `load_interlock'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:356:in `require_or_load'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:334:in `depend_on'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:246:in `require_dependency'
/home/redmine/redmine-4.0.0/plugins/vault/lib/project_patch.rb:2:in `<top (required)>'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:378:in `block in require_or_load'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:13:in `loading'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:37:in `load_interlock'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:356:in `require_or_load'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:334:in `depend_on'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:246:in `require_dependency'
/home/redmine/redmine-4.0.0/plugins/vault/init.rb:2:in `<top (required)>'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
/home/redmine/redmine-4.0.0/lib/redmine/plugin.rb:173:in `block in load'
/home/redmine/redmine-4.0.0/lib/redmine/plugin.rb:164:in `each'
/home/redmine/redmine-4.0.0/lib/redmine/plugin.rb:164:in `load'
/home/redmine/redmine-4.0.0/config/initializers/30-redmine.rb:21:in `<top (required)>'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `load'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `block in load'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `load'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:657:in `block in load_config_initializer'
/var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/notifications.rb:170:in `instrument'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:656:in `load_config_initializer'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in `each'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in `block in <class:Engine>'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `run'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in `each'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in `tsort_each_child'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:361:in `initialize!'
/home/redmine/redmine-4.0.0/config/environment.rb:14:in `<top (required)>'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:337:in `require_environment!'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/var/lib/gems/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)

Error in redmine subdir

My redmine is in URI example https://my.domain.rm/redmine/.
Your plugin use non relative path to URI like:
#admin-menu a.vault { background-image: url("/images/locked.png"); }
and if I try save parameters in vault plugin server return 404 code because save action make:
https://my.domain.rm/vault_settings instead of corrected in my redmine instance https://my.domain.rm/redmine/vault_settings

Update russiant translation

diff --git a/config/locales/ru.yml b/config/locales/ru.yml
index bd41238..45ec3ab 100644
--- a/config/locales/ru.yml
+++ b/config/locales/ru.yml
@@ -2,6 +2,13 @@
ru:
label_vault: 'Vault'
label_module: 'Ключи'
+ project_module_keys: "Ключи"
+ permission_export_keys: "Экспортировать ключи"
+ permission_download_keys: "Скачивать ключи"
+ permission_view_keys: "Просматривать ключи"
+ permission_edit_keys: "Редактировать ключи"
+ permission_manage_whitelist_keys: "Управлять списками доступа"
+ permission_whitelist_keys: "Списки доступа"
settings:
title: "Настройки Vault"
vault_title_encription_key: "Ключ шифрования"

Question - Access Control List

I'm curious how the access control list rights work along with roles and permissions.

For instance, I may want all users of a specific group to be allowed to view some keys but not all.
Currently I have a Developers group assigned to a project, and they have no permissions for keys, so they can't see the keys view at all. If I set the group's permission to be able to view keys, they see all keys in the project and the access control list doesn't seem to do anything.

Any help would be appreciated.

Current Server Config
Redmine 3.4.4
Ruby 2.4.1
Rails 4.2.8
MS SQL Server 2017
Ubuntu 16.04 LTS

API interface

Is it possible to get keys via API or something ?

Redmine 3.4.0 - wrong number of arguments

Hi there,

should this plugin work with RM 3.4.0 ? I have recently upgraded to 3.4.0, but somehow it throws this error now:

ActionView::Template::Error (wrong number of arguments (1 for 0)):
     97:   });
     98: </script>
     99: 
    100: <%= context_menu project_keys_context_menus_path(@project) %>
    101: 
    102: <script type="text/javascript">
    103:   $('a[href^="http://"]').attr('target','_blank');
  app/helpers/application_helper.rb:1299:in `context_menu'
  plugins/vault/app/views/keys/index.html.erb:100:in `_plugins_vault_app_views_keys_index_html_erb__2715060936850346617_13658000'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

I did a fresh clone from github and followed the instructions, but maybe I have missed something ?

Regards
Peter

Translation problem

In project tab:
in project

Settings:
settings

redmine is 3.4.2.stable
vault is 0.3.2
default language English
personal language is also English

Redmine 4.1 Compatibility

Hi there!

I was testing Redmine 4.1 and found that vault fails with Internal error, upon closer inspection found this in the log:

ActionView::Template::Error (wrong number of arguments (given 1, expected 0)):
    78: <% if Redmine::VERSION.to_s.start_with?('3.4') or Redmine::VERSION.to_s.start_with?('4.0')  %>
    79:     <%= context_menu %>
    80: <% else %>
    81:     <%= context_menu project_keys_context_menus_path(@project) %>
    82: <% end %>
    83:
    84: <script type="text/javascript">

Regards

Backup NoMethodError (undefined method `file'

Hi there,

Your plugin is great so far, but I got an error when I want to create a backup.
I am using Redmine 4.1

Started POST "/vault_settings/backup" for 192.168.50.179 at 2020-01-30 16:19:08 +0000
Processing by VaultSettingsController#backup as HTML
  Parameters: {"authenticity_token"=>"BXrm/ECyiienrnghuc4w7HPyw/nGNfCft/QIP/Eap22DFR99+gzOkeibptcVB4VZVTfGX8FPUaBRrQGnpAhJEA=="}
  Current user: admin (id=1)
Completed 500 Internal Server Error in 28ms (ActiveRecord: 9.0ms)

NoMethodError (undefined method `file' for #<Zip::File:0x00007f7479682aa0>):

plugins/vault/app/controllers/vault_settings_controller.rb:55:in `block in backup'
plugins/vault/app/controllers/vault_settings_controller.rb:54:in `backup'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'
plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware.rb:68:in `call'

What can I do?
kind regards
Red

Error 500 on key create

WARNING: Can't mass-assign protected attributes for Vault::Password: tags
plugins/vault/app/controllers/keys_controller.rb:80:in create' lib/redmine/sudo_mode.rb:63:in sudo_mode'
Completed 500 Internal Server Error in 36ms (ActiveRecord: 7.4ms)

ArgumentError (must specify a :key):
plugins/vault/app/models/vault/password.rb:8:in encrypt!' plugins/vault/app/controllers/keys_controller.rb:88:in block in create'
plugins/vault/app/controllers/keys_controller.rb:87:in create' lib/redmine/sudo_mode.rb:63:in sudo_mode'

Getting the above error anytime I try to create a new key.

Redmine 3.4.4
Ruby 2.2.6-p396
Rails 4.2.8
plugin 0.3.7

I'm also getting a seperate error if I try to run rake redmine:plugins:vault:convert

redmine@projects:~/redmine/config$ rake redmine:plugins:vault:convert RAILS_ENV=production --trace
(in /home/redmine/redmine)
** Invoke redmine:plugins:vault:convert (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:plugins:vault:convert
rake aborted!
NoMethodError: undefined method decrypt_all' for Encryptor:Module /home/redmine/redmine/plugins/vault/lib/tasks/ciphering.rake:25:in block (4 levels) in <top (required)>'
/home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/task.rb:251:in call' /home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/task.rb:251:in block in execute'
/home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/task.rb:251:in each' /home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/task.rb:251:in execute'
/home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/task.rb:195:in block in invoke_with_call_chain' /home/redmine/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize'
/home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/task.rb:188:in invoke_with_call_chain' /home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/task.rb:181:in invoke'
/home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/application.rb:160:in invoke_task' /home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/application.rb:116:in block (2 levels) in top_level'
/home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/application.rb:116:in each' /home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/application.rb:116:in block in top_level'
/home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/application.rb:125:in run_with_threads' /home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/application.rb:110:in top_level'
/home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/application.rb:83:in block in run' /home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/application.rb:186:in standard_exception_handling'
/home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/lib/rake/application.rb:80:in run' /home/redmine/.rvm/gems/ruby-2.2.6/gems/rake-12.3.0/exe/rake:27:in <top (required)>'
/home/redmine/.rvm/gems/ruby-2.2.6/bin/rake:22:in load' /home/redmine/.rvm/gems/ruby-2.2.6/bin/rake:22:in

'
/home/redmine/.rvm/gems/ruby-2.2.6/bin/ruby_executable_hooks:15:in eval' /home/redmine/.rvm/gems/ruby-2.2.6/bin/ruby_executable_hooks:15:in '

Шаринг ключей между проектами

Здравствуйте, спасибо вам за отличный плагин.
У меня есть вопрос, можно ли каким-либо образом переносить ключи из проекта в проект?
Или шарить определённые ключи между проектами.

У меня workflow выглядит так:

  • есть проект в котором ключи ко всем возможным сайтам
  • есть дочерние проекты, где ключи частично дублируются с главным проектом

Можно как-то синхронизировать частично дублирующиеся ключи не в ручную?

Прикрепление ключа к задаче

Есть такая идея. Возможность прикрепить ключ к задаче, с возможностью настроить видимость. Так как не всегда давать доступ к ключам группе удобно. Не все ключи нужны конкретному исполнителю задачи. В случае работы с сайтами контент менеджеру нужен только доступ к админке, а программисту ssh на хостинг может понадобится.

То есть доступ к вкладке с ключами (полный) имеют те кто создает ключи или управляет ими. В задача привязываем ключи которые могут понадобится исполнителю. Дополнительно задаем, что ключ в задаче виден (всем|исполнителю|всем участникам задачи). Второй параметр видимости группа участника, на тот случай, когда задача переводится кого то кто не занимается непосредственно решением задачи, а только дает какую то информацию. Третьим возможно список статусов в которых ключи отображаются в задаче, задачу закрыли, ключи там больше не нужны.

Using vault with redmine in /redmine

Hello,
I want to try vault on my redmine 4 installation. I am running redmine in a subdir of my side, i.e. https://www.example.com/redmine. I go to https://www.example.com/redmine/vault_settings and check the "Use Redmine encryption" box, and then click "Apply". When I do, I get a "404 not found" as my browser tries to go to https://www.example.com/vault_settings instead of https://www.example.com/redmine/vault_settings. Is this a problem with vault? Or, have I configured my redmine site in some erroneous way when using the subdir?

Grateful for any ideas.

Для чего изменять assets.rb?

Здравствуйте,
у вас есть это:
Add Rails.application.config.assets.precompile += %w( zeroclipboard.js ) to config/initializers/assets.rb and restart your server.

и судя по всему, при каждом обновлении надо это делать заного.
планируете ли вы фикс, который позволит безболезненно обновлять редмайн?
ну и... насколько критично это изменение?

Keys can't be longer than 32 characters

When a password has at most 31 chars there's no problem:

screen shot 2018-11-25 at 02 05 11

But when a password is more than 31 chars long:

screen shot 2018-11-25 at 02 05 20

Is this by design?


Redmine 3.4.6
Using Redmine encryption with a 128 char password

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.