Skip to content

[release-1.23] fix(tls): let gitops-plugin httpd start on FIPS clusters - #1637

Closed
AdamSaleh wants to merge 1 commit into
redhat-developer:release-1.23from
rh-gitops-release-qa:fix-plugin-fips-tls-groups-1.23
Closed

AdamSaleh wants to merge 1 commit into
redhat-developer:release-1.23from
rh-gitops-release-qa:fix-plugin-fips-tls-groups-1.23

Conversation

@AdamSaleh

Copy link
Copy Markdown
Member

What type of PR is this?
/kind bug

What does this PR do / why we need it:

On FIPS clusters, gitops-plugin crash-loops in 1.23.0:

[ssl:emerg] AH02407: "SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:secp256r1:secp384r1" failed

#1347 writes the cluster TLS profile's groups into the plugin's httpd config. If apiserver/cluster has no
tlsSecurityProfile, 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) uses
openssl-fips-provider 3.0.7 in FIPS mode, which has neither X25519 nor X25519MLKEM768, and OpenSSL rejects the
whole 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 it
can 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's OPENSSL_FORCE_FIPS_MODE=1, which reproduces AH02407:

SSLOpenSSLConfCmd Groups FIPS non-FIPS
X25519MLKEM768:X25519:secp256r1:secp384r1 (before) httpd exits, AH02407 runs
?X25519MLKEM768:?X25519:?secp256r1:?secp384r1 (after) runs, negotiates P-256 runs, negotiates X25519MLKEM768 when the client offers it

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 TestBuildHttpdConfig passes.

Kept minimal on purpose. Not changed here, but worth a follow-up:

  • MapOpenShiftTLSGroupsToOpenSSL also feeds Redis HA HAProxy's ssl-default-{bind,server}-curves, which very
    likely 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.
  • master has the same code.

🤖 Generated with Claude Code

https://claude.ai/code/session_014eLYgsb7g4QzJy477gPouC

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>
@openshift-ci openshift-ci Bot added the kind/bug Something isn't working label Dec 4, 2026
@openshift-ci

openshift-ci Bot commented Dec 4, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai

coderabbitai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release-1.23@4ffca9e). Learn more about missing BASE report.

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           
Flag Coverage Δ
unit-tests 68.77% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AdamSaleh AdamSaleh closed this Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant