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
[release-3.11] Bug 1758375: fix haproxy reload crash when processing ECDSA keys #23918
[release-3.11] Bug 1758375: fix haproxy reload crash when processing ECDSA keys #23918
Conversation
|
@Miciah: This pull request references Bugzilla bug 1758375, which is invalid:
Comment In response to this:
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. |
1d06870
to
287c41e
Compare
|
Reformatted with gofmt from Go 1.10. |
|
@Miciah can you update this to use the cert data from openshift/router#43? |
With extended validation enabled, if the router detects an ECDSA private key when processing TLS data,
the sanitized key output is rendered with PEM block headers like:
-----BEGIN ECDSA PARAMETERS-----
-----END ECDSA PARAMETERS-----
However, OpenSSL recognizes the following headers for ECDSA keys[1]:
-----BEGIN EC PARAMETERS-----
-----END EC PARAMETERS-----
Consequently, when the router provides haproxy with such PEM files through
`crt-list` option, haproxy (which uses OpenSSL) fails to load the key and reload
fails.
The impact is that a Route resource containing an ECDSA key in `.spec.tls.key`
will cause haproxy reloads to crash loop, preventing any further router
processing until the problematic Route is deleted.
This patch ensures that sanitized ECDSA key output follows the OpenSSL
conventions which indirectly apply to haproxy.
[1] https://github.com/openssl/openssl/blob/master/include/openssl/pem.h#L54
287c41e
to
5791c30
Compare
|
Updated with newer cert data. |
|
/bugzilla refresh |
|
@ironcladlou: This pull request references Bugzilla bug 1758375, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ironcladlou, Miciah The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/hold |
|
/test cmd |
|
Looks like we may be past the SSH permission issue. |
|
CI looks good. |
|
/refresh |
|
@Miciah: All pull requests linked via external trackers have merged. Bugzilla bug 1758375 has been moved to the MODIFIED state. In response to this:
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. |
|
Hi, any update on this? We'd like to use ECDSA certificates but this is stopping us from doing so 😄 |
|
What version of OpenShift are you using? This fix is merged and shipped in OCP 3.11.154. |
|
Huh. I was so sure I saw this issue was open, not merged. Maybe I mixed it up with another issue. Apologies, ignore my previous comment! |
This is manual cherry-pick of openshift/router#39.