vault 0.18.0 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/vault/client.rb +8 -2
- data/lib/vault/persistent.rb +9 -1
- data/lib/vault/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 648a27b6ed1f890271b38e0a30ad9f916a9c6ea21115cc9aeb9b401aaf8d7506
|
4
|
+
data.tar.gz: 6fc3ad15682ee6da9add40186cef645e8378e45f9058c6e74869d5df350c11f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b02128523c3c8c00f268cec7258ca6ea18e1bb725aceba69dd1686d28f9b4c6275dd858b8b89a79f5758be6922a3defaf1edf8355d86f6db7d448befee5de90
|
7
|
+
data.tar.gz: 835578abf7f9783940baa562b8881eefb9915e0f272f58ee2b0b6916edffc5d942e2cf328e64f918c627dac219fde7fddb706ef8aaaac1ccc509521ad78eca5b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
## v?.??.? (Unreleased)
|
4
4
|
|
5
|
+
## v0.18.1 (September 14, 2023)
|
6
|
+
|
7
|
+
BUG FIXES
|
8
|
+
|
9
|
+
- Restored the ability to use this gem with older Ruby versions that do not have
|
10
|
+
the `OpenSSL::SSL::TLS1_2_VERSION` constant.
|
11
|
+
|
5
12
|
## v0.18.0 (September 14, 2023)
|
6
13
|
|
7
14
|
IMPROVEMENTS
|
data/lib/vault/client.rb
CHANGED
@@ -64,6 +64,13 @@ module Vault
|
|
64
64
|
a << PersistentHTTP::Error
|
65
65
|
end.freeze
|
66
66
|
|
67
|
+
# Vault requires at least TLS1.2
|
68
|
+
MIN_TLS_VERSION = if defined? OpenSSL::SSL::TLS1_2_VERSION
|
69
|
+
OpenSSL::SSL::TLS1_2_VERSION
|
70
|
+
else
|
71
|
+
"TLSv1_2"
|
72
|
+
end
|
73
|
+
|
67
74
|
include Vault::Configurable
|
68
75
|
|
69
76
|
# Create a new Client with the given options. Any options given take
|
@@ -112,8 +119,7 @@ module Vault
|
|
112
119
|
|
113
120
|
@nhp.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
114
121
|
|
115
|
-
|
116
|
-
@nhp.min_version = OpenSSL::SSL::TLS1_2_VERSION
|
122
|
+
@nhp.min_version = MIN_TLS_VERSION
|
117
123
|
|
118
124
|
# Only use secure ciphers
|
119
125
|
@nhp.ciphers = ssl_ciphers
|
data/lib/vault/persistent.rb
CHANGED
@@ -1043,7 +1043,15 @@ class PersistentHTTP
|
|
1043
1043
|
connection.use_ssl = true
|
1044
1044
|
|
1045
1045
|
connection.ciphers = @ciphers if @ciphers
|
1046
|
-
|
1046
|
+
|
1047
|
+
if @min_version
|
1048
|
+
if connection.respond_to? :min_version=
|
1049
|
+
connection.min_version = @min_version
|
1050
|
+
else
|
1051
|
+
connection.ssl_version = @min_version
|
1052
|
+
end
|
1053
|
+
end
|
1054
|
+
|
1047
1055
|
connection.ssl_timeout = @ssl_timeout if @ssl_timeout
|
1048
1056
|
|
1049
1057
|
connection.verify_depth = @verify_depth
|
data/lib/vault/version.rb
CHANGED