Repository navigation
Conversation
The default (Intermediate) TLS profile lists X25519MLKEM768 and X25519, which the RHEL FIPS provider does not offer. OpenSSL rejects the whole SSLOpenSSLConfCmd Groups list when one group is unavailable, so httpd exits with AH02407 and gitops-plugin crash-loops on every FIPS cluster. Prefix each group with '?' so OpenSSL skips the groups it cannot use. FIPS clusters negotiate secp256r1/secp384r1; elsewhere X25519MLKEM768 is still preferred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014eLYgsb7g4QzJy477gPouC Signed-off-by: Adam Saleh <adam@asaleh.net>
|
Skipping CI for Draft Pull Request. |
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-1.23 #1637 +/- ##
===============================================
Coverage ? 68.77%
===============================================
Files ? 118
Lines ? 25320
Branches ? 0
===============================================
Hits ? 17413
Misses ? 7907
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind bug
What does this PR do / why we need it:
On FIPS clusters,
gitops-plugincrash-loops in 1.23.0:#1347 writes the cluster TLS profile's groups into the plugin's httpd config. If
apiserver/clusterhas notlsSecurityProfile, as on most clusters, that is the Intermediate default from openshift/api:X25519MLKEM768, X25519, secp256r1, secp384r1. The plugin image (RHEL 9.9, openssl-libs 3.5.9) usesopenssl-fips-provider3.0.7 in FIPS mode, which has neither X25519 nor X25519MLKEM768, and OpenSSL rejects thewhole list when one group is unavailable. openshift/api's documentation for the profiles says the same thing:
"X25519MLKEM768 is not FIPS-approved and must be omitted by components running in FIPS mode".
This PR prefixes each group with
?, OpenSSL's "skip this group if unavailable" marker, so httpd uses the groups itcan and ignores the rest.
How to test changes / Special notes to the reviewer:
Tested in the shipped image
console-plugin-4-18-rhel9@sha256:3e12de3f…with RHEL'sOPENSSL_FORCE_FIPS_MODE=1, which reproduces AH02407:SSLOpenSSLConfCmd GroupsX25519MLKEM768:X25519:secp256r1:secp384r1(before)?X25519MLKEM768:?X25519:?secp256r1:?secp384r1(after)Found by the GitOps release QA e2e runs of 1.23.0 on OCP 4.18 FIPS: the plugin never becomes Ready, so every
sequential spec waiting on the operator namespace times out.
go test ./controllers -run TestBuildHttpdConfigpasses.Kept minimal on purpose. Not changed here, but worth a follow-up:
MapOpenShiftTLSGroupsToOpenSSLalso feeds Redis HA HAProxy'sssl-default-{bind,server}-curves, which verylikely fails the same way on FIPS. I did not change it because I have not checked that the HAProxy image's
OpenSSL accepts the
?syntax.🤖 Generated with Claude Code
https://claude.ai/code/session_014eLYgsb7g4QzJy477gPouC