manageiq-appliance_console 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -1
- data/bin/appliance_console +2 -2
- data/lib/manageiq/appliance_console/database_configuration.rb +4 -4
- data/lib/manageiq/appliance_console/key_configuration.rb +2 -2
- data/lib/manageiq/appliance_console/version.rb +1 -1
- data/manageiq-appliance_console.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d9d3c0d7729f25fd26bcb717cb6d54f295cae7aa
|
4
|
+
data.tar.gz: 1952c8d59c2cf6f98b0026ea41b103cadb650e6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d8bc6bebe851dd851d45de29afd7683b797cad00b9c5f00de061951c82f1ca8a6486fdc5e23ea1b97927c174559949fdd9c2d01828f0496a2b0a031f4e1ff08
|
7
|
+
data.tar.gz: 2fa9d9eea0ba96f58a834e3aac60500de9d012987c544db4213081ab1d272209aacf2dbb53562db109f16765b0c6945478443e837d898f10349b34b0285a17c5
|
data/.travis.yml
CHANGED
data/bin/appliance_console
CHANGED
@@ -57,8 +57,8 @@ AS_OPTIONS = I18n.t("advanced_settings.menu_order").collect do |item|
|
|
57
57
|
I18n.t("advanced_settings.#{item}")
|
58
58
|
end
|
59
59
|
|
60
|
-
require '
|
61
|
-
|
60
|
+
require 'manageiq-password'
|
61
|
+
ManageIQ::Password.key_root = ManageIQ::ApplianceConsole::RAILS_ROOT.join("certs").to_s
|
62
62
|
|
63
63
|
# Load appliance_console libraries
|
64
64
|
include ManageIQ::ApplianceConsole::Prompts
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'active_record'
|
2
2
|
require 'active_support/core_ext'
|
3
3
|
require 'linux_admin'
|
4
|
+
require 'manageiq-password'
|
4
5
|
require 'pathname'
|
5
|
-
require 'util/miq-password'
|
6
6
|
require 'fileutils'
|
7
7
|
|
8
8
|
module ManageIQ
|
@@ -56,7 +56,7 @@ module ApplianceConsole
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def password=(value)
|
59
|
-
@password =
|
59
|
+
@password = ManageIQ::Password.try_decrypt(value)
|
60
60
|
end
|
61
61
|
|
62
62
|
def activate
|
@@ -187,11 +187,11 @@ FRIENDLY
|
|
187
187
|
end
|
188
188
|
|
189
189
|
def self.encrypt_password(settings)
|
190
|
-
encrypt_decrypt_password(settings) { |pass|
|
190
|
+
encrypt_decrypt_password(settings) { |pass| ManageIQ::Password.try_encrypt(pass) }
|
191
191
|
end
|
192
192
|
|
193
193
|
def self.decrypt_password(settings)
|
194
|
-
encrypt_decrypt_password(settings) { |pass|
|
194
|
+
encrypt_decrypt_password(settings) { |pass| ManageIQ::Password.try_decrypt(pass) }
|
195
195
|
end
|
196
196
|
|
197
197
|
def self.current
|
@@ -2,7 +2,7 @@ require 'pathname'
|
|
2
2
|
require 'fileutils'
|
3
3
|
require 'net/scp'
|
4
4
|
require 'active_support/all'
|
5
|
-
require '
|
5
|
+
require 'manageiq-password'
|
6
6
|
|
7
7
|
module ManageIQ
|
8
8
|
module ApplianceConsole
|
@@ -89,7 +89,7 @@ module ApplianceConsole
|
|
89
89
|
end
|
90
90
|
|
91
91
|
def create_key
|
92
|
-
|
92
|
+
ManageIQ::Password.generate_symmetric(NEW_KEY_FILE) && true
|
93
93
|
end
|
94
94
|
|
95
95
|
def fetch_key
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_runtime_dependency "highline", "~> 1.6.21"
|
28
28
|
spec.add_runtime_dependency "i18n", "~> 0.8"
|
29
29
|
spec.add_runtime_dependency "linux_admin", ["~> 1.0", ">=1.2.2"]
|
30
|
+
spec.add_runtime_dependency "manageiq-password", "~> 0.3"
|
30
31
|
spec.add_runtime_dependency "optimist", "~> 3.0"
|
31
32
|
spec.add_runtime_dependency "pg"
|
32
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-appliance_console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -114,6 +114,20 @@ dependencies:
|
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: 1.2.2
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: manageiq-password
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0.3'
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0.3'
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
132
|
name: optimist
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -302,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
316
|
version: '0'
|
303
317
|
requirements: []
|
304
318
|
rubyforge_project:
|
305
|
-
rubygems_version: 2.
|
319
|
+
rubygems_version: 2.6.14
|
306
320
|
signing_key:
|
307
321
|
specification_version: 4
|
308
322
|
summary: ManageIQ Appliance Console
|