-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Plumb and allow customizing ciphers and tls version #13167
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
Conversation
pkg/cmd/server/api/v1/types.go
Outdated
// TLS 1.0 = 0x0301 | ||
// TLS 1.1 = 0x0302 | ||
// TLS 1.2 = 0x0303 | ||
MinTLSVersion uint16 `json:"minTLSVersion,omitempty"` |
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.
If these types are visible to the user and edited by him, some text representation would be better: "tls1.2"
pkg/cmd/server/api/v1/types.go
Outdated
MinTLSVersion uint16 `json:"minTLSVersion,omitempty"` | ||
// CipherSuites contains an overridden list of ciphers for the server to support. | ||
// Values must match ciphers from http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-4 | ||
CipherSuites []uint16 `json:"cipherSuites,omitempty"` |
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.
same here
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.
I think maintaining a mapping of human readable names to IANA versions across go versions will drift
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.
I hoped that there is a standard for human readable names of ciphers.
Looks good. An integration test would make sense. |
LGTM |
[test] |
[merge] |
Evaluated for origin test up to be01706 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_future/752/) (Base Commit: 29e3a46) |
Evaluated for origin merge up to be01706 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_future/791/) (Base Commit: a86ef13) (Image: devenv-rhel7_6027) |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1427919
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1387789
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1425941
Allows the following in all
servingInfo
stanzas:Valid tls versions are "VersionTLS10", "VersionTLS11", "VersionTLS12"
Valid cipher suites are https://golang.org/pkg/crypto/tls/#pkg-constants for the golang version used to build origin, taken from descriptions of http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-4