smart_proxy_dynflow_core 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 513d997ccd5078f70b0842c041e891a9b8e6b45d
4
- data.tar.gz: 3d9ebc3ed5106830630debc3b861f8cd535c341d
3
+ metadata.gz: 1d315ce6114aaab495e1f8b87b2dde0489c00592
4
+ data.tar.gz: bbddf664d388dcb713736088099e1b409a58cb79
5
5
  SHA512:
6
- metadata.gz: 3cdac1fda7699d6ce75a7be4cef55b624e8f0855558f1bac4db592187af5e42e6c42e48748ebca3a2fb20801c132a0a0ab40bcb0edec790139551dc5dcb0f656
7
- data.tar.gz: 5b5c962ae2efd134f2cb0ac764942a0025ef778ebaedbf365e2d0238c74bd68551c768150f1bed9ec2dcb455cd3db9c25ed2b40f17b285e54d242cc6bb1c8ebf
6
+ metadata.gz: 5677aa0cdce89276aeb29fc8faf2a966f2d866a2a7165d8636532dc926d3d1d01011424469086f6b5124fe4ddaa6199a74adccb7cd9bcd1c160d3fda7065f9e5
7
+ data.tar.gz: e03f189fa0537ef5cf759d23bc1babfc6155f8a5d6cd9a7d62664b3a90a490ca4c19acdab96563942bd50daa80a3b2a8d694c4e05bfeaa047ca746ab50f7ac16
@@ -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,
@@ -31,6 +31,7 @@ module SmartProxyDynflowCore
31
31
  :ssl_private_key => nil,
32
32
  :ssl_certificate => nil,
33
33
  :ssl_disabled_ciphers => [],
34
+ :tls_disabled_versions => [],
34
35
  :foreman_ssl_ca => nil,
35
36
  :foreman_ssl_key => nil,
36
37
  :foreman_ssl_cert => nil,
@@ -1,3 +1,3 @@
1
1
  module SmartProxyDynflowCore
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
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.9
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-23 00:00:00.000000000 Z
11
+ date: 2018-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler