-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect system wide minimum TLS version #709
Comments
And Debian (checked on Debian Bullseye (11)) has: openssl_conf = default_conf
[default_conf]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT@SECLEVEL=2 |
PR #710 seems reasonable to me. |
This was originally added to allow downgrading the CDN connection SSL version for compatibility with much older proxy servers. That should be less of a concern now. We do still set a value of TLS v1.2 for the min_version, but only because ruby/openssl#709 prevents using the system-wide crypto policy for now. In the future, that can be removed as well, restoring control to the user at the OS level.
This was originally added to allow downgrading the CDN connection SSL version for compatibility with much older proxy servers. That should be less of a concern now. We do still set a value of TLS v1.2 for the min_version, but only because ruby/openssl#709 prevents using the system-wide crypto policy for now. In the future, that can be removed as well, restoring control to the user at the OS level.
This was originally added to allow downgrading the CDN connection SSL version for compatibility with much older proxy servers. That should be less of a concern now. We do still set a value of TLS v1.2 for the min_version, but only because ruby/openssl#709 prevents using the system-wide crypto policy for now. In the future, that can be removed as well, restoring control to the user at the OS level. (cherry picked from commit 78fcba9)
* Refs #37148 - Remove removed_widgets override (#10927) (cherry picked from commit 40a70ce) * Fixes #35215 - Handle cloned hostgroups in hosts_and_hostgroups_helper (#10894) (cherry picked from commit e3d46c6) * Fixes #36979 - Remove cdn_ssl_version setting This was originally added to allow downgrading the CDN connection SSL version for compatibility with much older proxy servers. That should be less of a concern now. We do still set a value of TLS v1.2 for the min_version, but only because ruby/openssl#709 prevents using the system-wide crypto policy for now. In the future, that can be removed as well, restoring control to the user at the OS level. (cherry picked from commit 78fcba9) * Fixes #37277 - Fix ACS randomly failing VCR tests (#10941) (cherry picked from commit 6d93801) * Fixes #37240 - Fix CCV duplicate repo warning (#10928) (cherry picked from commit 02fc313) --------- Co-authored-by: Jeremy Lenz <[email protected]> Co-authored-by: William Bradford Clark <[email protected]> Co-authored-by: Ian Ballou <[email protected]> Co-authored-by: Markus Bucher <[email protected]>
I saw this (and the SSL options counterpart #767) as an enhancement rather than a bug fix. I'm not sure if we want to have this kind of changes in a patch release. |
All right. I was thinking that not respecting the system-wide OpenSSL configuration file was a bug. But if you think these (#710 and #767) are an enhancement rather than a bug fix, and it is not the case of the normal maintenance in our maintenance policy table, that's okay. I was asking you to backport the commit in the context of downstream Ruby 3.3 RPM in Fedora Linux version 41 and 40. And I can just keep the patch (#710) in the Ruby 3.3 RPMs. |
It is possible to have a system wide crypto policy for OpenSSL, and Red Hat based distros (Fedora, RHEL & friends) do this out of the box. As far as I can see, the way this is done is in
/etc/pki/tls/openssl.cnf
:Then in
/etc/crypto-policies/back-ends/opensslcnf.config
there is:Note how there's a TLS.MinProtocol. This is not respected by Ruby, and I think it's because of this bit:
openssl/lib/openssl/ssl.rb
Line 25 in 1fa9fc5
It doesn't appear to be possible to set this to
nil
and I don't see any constant that tells it to use the system default.When I comment the line out, it does respect the system wide default. This appears to be done for ciphers already.
The text was updated successfully, but these errors were encountered: