minke 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/minke/config/reader.rb +3 -1
- data/lib/minke/encryption/key_locator.rb +3 -1
- data/lib/minke/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjcyMjlhZjBiMjVmYTRmZDQwMTRjMGM4Yjc1ODk4NDVjOGY2ZjBmZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2M3MjYyN2RkNWRiOTFmMzRlYzJlMzQ1YWIyNDBhNjM0OTEzNmE4Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDE5ZDUzNTNhZmQyZDNmNzdmMzk3ZWYxMWUwZjJjMTU1M2FlNDI3N2Q1Njli
|
10
|
+
ODAwMThiNTllM2E0NzhmZWUzZjA3ZDA1ZDg4MTY1YzlkNDEwYmIxOGU2ZWI1
|
11
|
+
YTcyZWVmNWFjNjg2YmM4OTU4YjhlZjdmM2ZhZTliY2NjNTgzN2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjNhMDg2NWUzYmE5YTc3ZTkyYjc5YTdlZWRjNDIwMmFjN2MyOWQ1YTMwNTI3
|
14
|
+
Nzk4ODA3YzYxMDljODU1OGNmODdlNjk3M2JiMDk2NDNjYjUxYTI1M2JlNjUy
|
15
|
+
NTk0MzM0ZmU5MDRlMzI4NTEzYThhODA0NjNhNTU5NmJhZTdhNDI=
|
data/lib/minke/config/reader.rb
CHANGED
@@ -91,15 +91,17 @@ module Minke
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def read_secure hash
|
94
|
+
puts hash.inspect
|
94
95
|
key_path = ENV['SSL_KEY_PATH'].to_s == '' ? "#{ENV['HOME']}/.ssh" : ENV['SSL_KEY_PATH']
|
95
96
|
|
96
|
-
|
97
97
|
fingerprint = hash['secure']['fingerprint']
|
98
98
|
value = hash['secure']['value']
|
99
99
|
|
100
100
|
locator = Minke::Encryption::KeyLocator.new key_path
|
101
101
|
key_path = locator.locate_key fingerprint
|
102
102
|
|
103
|
+
puts key_path
|
104
|
+
|
103
105
|
encrypt = Minke::Encryption::Encryption.new key_path
|
104
106
|
encrypt.decrypt_string value
|
105
107
|
end
|
@@ -13,9 +13,11 @@ module Minke
|
|
13
13
|
|
14
14
|
return full_path if key.fingerprint == fingerprint
|
15
15
|
rescue
|
16
|
-
|
16
|
+
|
17
17
|
end
|
18
18
|
end
|
19
|
+
|
20
|
+
throw "Unable to find SSL key matching fingerprint if your SSL keys are not in ~/.ssh you can set the environment variable SSL_KEY_PATH to point to the correct directory."
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
data/lib/minke/version.rb
CHANGED