Module: Legion::Crypt::Settings
- Defined in:
- lib/legion/crypt/settings.rb
Class Method Summary collapse
Class Method Details
.default ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/legion/crypt/settings.rb', line 4 def self.default { vault: vault, cs_encrypt_ready: false, dynamic_keys: true, cluster_secret: nil, save_private_key: true, read_private_key: true } end |
.vault ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/legion/crypt/settings.rb', line 15 def self.vault { enabled: !Gem::Specification.find_by_name('vault').nil?, protocol: 'http', address: 'localhost', port: 8200, token: ENV['VAULT_DEV_ROOT_TOKEN_ID'] || ENV['VAULT_TOKEN_ID'] || nil, connected: false, renewer_time: 5, renewer: true, push_cluster_secret: true, read_cluster_secret: true, kv_path: ENV['LEGION_VAULT_KV_PATH'] || 'legion' } end |