Repository navigation
[release-4.22] OCPBUGS-112731: fix(certs): normalize IP SANs to stop dual-stack KAS cert churn - #9496
Conversation
OCPBUGS-77781: ValidateKeyPair compared cert IP SANs with raw byte slices. After X.509 round-trip, IPv4 SANs are 4 bytes while desired IPs from net.ParseIP are 16-byte IPv4-mapped, so dual-stack SANs mis-sorted and falsely failed validation. CPO then resigned kas-server-crt every reconcile, churning the kube-apiserver Deployment. Normalize IPs with net.IP.To16() before compare. Add a unit test that reconciles twice for ipv4-only and dual-stack and asserts the cert is not regenerated. Assisted-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Ram Lavi <ralavi@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@openshift-cherrypick-robot: Detected clone of Jira Issue OCPBUGS-77781 with correct target version. Will retitle the PR to link to the clone. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-112731, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-4.22 #9496 +/- ##
================================================
+ Coverage 36.71% 36.73% +0.01%
================================================
Files 777 777
Lines 95484 95496 +12
================================================
+ Hits 35061 35082 +21
+ Misses 57580 57571 -9
Partials 2843 2843
🚀 New features to boost your workflow:
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: muraee, openshift-cherrypick-robot The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/verified by TestReconcileSignedCertIdempotentWithDualStackIPs,@RamLavi Pre-merge verified via unit test rather than e2e: the failure mode is a reconcile-time false diff on IP SAN encoding, which is deterministic in ValidateKeyPair and hard to assert reliably in e2e (would mainly show up as KAS churn over time). The unit test reconciles twice for IPv4-only and dual-stack and asserts the cert is not regenerated. |
|
@RamLavi: This PR has been marked as verified by DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/lgtm clean backport |
|
Scheduling tests matching the |
|
/retest-required |
|
/retest |
|
All PipelineRuns for this commit have already succeeded. Use |
|
/jira refresh |
|
@openshift-merge-robot: This pull request references Jira Issue OCPBUGS-112731, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@RamLavi: This pull request references Jira Issue OCPBUGS-112731, which is valid. 7 validation(s) were run on this bug
DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/retest-required |
1 similar comment
|
/retest-required |
|
it seems that aws lanes are blocked until #9600 is merged |
|
/retest-required |
|
/retest-required failure seems related to cleanup, but tests passed |
|
/hold Revision f5ba6ef was retested 3 times: holding |
|
/override ci/prow/e2e-aws-upgrade-hypershift-operator |
|
/override-sticky ci/prow/e2e-aws-upgrade-hypershift-operator |
|
@csrwng: Overrode contexts on behalf of csrwng: ci/prow/e2e-aws-upgrade-hypershift-operator DetailsIn 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-sigs/prow repository. |
|
@csrwng: Overrode contexts on behalf of csrwng: ci/prow/e2e-aws-upgrade-hypershift-operator These overrides will persist across retests on the current HEAD SHA. Pushing a new commit will clear them. Use DetailsIn 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-sigs/prow repository. |
|
/hold cancel retest was due to unrelated issue |
|
@openshift-cherrypick-robot: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
315dff3
into
openshift:release-4.22
|
@openshift-cherrypick-robot: Jira Issue Verification Checks: Jira Issue OCPBUGS-112731 Jira Issue OCPBUGS-112731 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
Fix included in release 4.22.0-0.nightly-2026-09-25-072652 |
This is an automated cherry-pick of #9286
/assign openshift-ci-robot