-
Notifications
You must be signed in to change notification settings - Fork 1.5k
webhook: new flag to configure the webhook server's minimum TLS version #3313
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
webhook: new flag to configure the webhook server's minimum TLS version #3313
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: alebedev87 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @alebedev87! |
Hi @alebedev87. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
pkg/config/runtime_config.go
Outdated
"1.0": {}, | ||
"1.1": {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely shouldn't support 1.0 or 1.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, these ones are too outdated for now. I added them since the controller-runtime still supports them. I'm fine to remove them along with ""
as it turns into 1.0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.0
, 1.1
removed.
I think we should revert #2457 and make 1.2 the minimum version across the board. @oliviassss ? |
My opinion is that we should not be exposing this as configuration; administrators should not have to bother with this kind of stuff. On the other hand, we probably should cater somewhat for people who are constrained to work within the idiotic FIPS-140 stuff. If there are problematic ciphers in the Go's default TLS 1.2 support (I would suggest we check) then we can just hardcode-disable those. |
@johngmyers, yeah I agree 1.0 and 1.1 are outdated, AWS is also deprecating the 1.0 and 1.1 for the API endpoints: https://aws.amazon.com/blogs/security/tls-1-2-required-for-aws-endpoints/. And we could make 1.2 the minimum. But I'm just a bit concerned about the 1.2 compatibility with k8s 1.22+ (since we are supporting k8s 1.22+). By checking the changelogs, seems like TLS 1.2 is the min supported version since k8s 1.3? |
Looking at So, TLS1.2 seems to be a safe default however it's indeed only intermediate security TLS profile. Maybe it still makes some sense to be in the modern profile by default (TLS1.3) and let some exotic environments like FIPS set TLS1.2. I don't have a strong opinion though, a revert to 1.2 by default would do the thing for me too. |
2b49a09
to
34819fe
Compare
|
@alebedev87, thanks, I think it's better to set TLS default version as 1.2, so it fits all the environments including FIPS, and allow the configuration for 1.3 for users who want stricter TLS version. |
@oliviassss : so this PR still makes sense. You would like me to change the default version to TLS1.2? |
Filed #3318 |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Closing since #3318 reset the minimum TLS version to 1.2. |
Issue
N/A
Description
The goal of this PR is to support environments where TLS versions other than
1.3
are still used, mainly FIPS enabled systems. The boringcrypto enabled builds check for the maximum FIPS TLS version which is set to TLS1.2.Checklist
README.md
, or thedocs
directory)