smart_proxy_dynflow_core 0.1.9 → 0.1.10
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d315ce6114aaab495e1f8b87b2dde0489c00592
|
|
4
|
+
data.tar.gz: bbddf664d388dcb713736088099e1b409a58cb79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5677aa0cdce89276aeb29fc8faf2a966f2d866a2a7165d8636532dc926d3d1d01011424469086f6b5124fe4ddaa6199a74adccb7cd9bcd1c160d3fda7065f9e5
|
|
7
|
+
data.tar.gz: e03f189fa0537ef5cf759d23bc1babfc6155f8a5d6cd9a7d62664b3a90a490ca4c19acdab96563942bd50daa80a3b2a8d694c4e05bfeaa047ca746ab50f7ac16
|
data/config/settings.yml.example
CHANGED
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
# for more information.
|
|
35
35
|
#:ssl_disabled_ciphers: [CIPHER-SUITE-1, CIPHER-SUITE-2]
|
|
36
36
|
|
|
37
|
+
# Use this option only if you need to strictly specify TLS versions to be
|
|
38
|
+
# disabled. SSLv3 and TLS v1.0 are always disabled and cannot be configured.
|
|
39
|
+
# Specify versions like: '1.1', or '1.2'
|
|
40
|
+
#:tls_disabled_versions: []
|
|
41
|
+
|
|
37
42
|
# File to log to, leave empty for logging to STDOUT
|
|
38
43
|
# :log_file: /var/log/foreman-proxy/smart_proxy_dynflow_core.log
|
|
39
44
|
|
|
@@ -90,6 +90,19 @@ module SmartProxyDynflowCore
|
|
|
90
90
|
ssl_options |= OpenSSL::SSL::OP_NO_SSLv3 if defined?(OpenSSL::SSL::OP_NO_SSLv3)
|
|
91
91
|
ssl_options |= OpenSSL::SSL::OP_NO_TLSv1 if defined?(OpenSSL::SSL::OP_NO_TLSv1)
|
|
92
92
|
|
|
93
|
+
if Settings.instance.tls_disabled_versions
|
|
94
|
+
Settings.instance.tls_disabled_versions.each do |version|
|
|
95
|
+
constant = OpenSSL::SSL.const_get("OP_NO_TLSv#{version.to_s.gsub(/\./, '_')}") rescue nil
|
|
96
|
+
|
|
97
|
+
if constant
|
|
98
|
+
Log.instance.info "TLSv#{version} will be disabled."
|
|
99
|
+
ssl_options |= constant
|
|
100
|
+
else
|
|
101
|
+
Log.instance.warn "TLSv#{version} was not found."
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
93
106
|
{
|
|
94
107
|
:SSLEnable => true,
|
|
95
108
|
:SSLVerifyClient => OpenSSL::SSL::VERIFY_PEER,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smart_proxy_dynflow_core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nečas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-01-
|
|
11
|
+
date: 2018-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|