NO-JIRA: fix(certs): handle IPv6 address normalization in certificate validation#7576
NO-JIRA: fix(certs): handle IPv6 address normalization in certificate validation#7576qinqon wants to merge 1 commit intoopenshift:mainfrom
Conversation
In dual-stack environments, IPv6 addresses can be represented in different formats (e.g., "::1" vs "0:0:0:0:0:0:0:1"). The previous certificate validation used byte comparison via cmp.Diff, which incorrectly identified semantically identical IPv6 addresses as different. This caused certificate regeneration failures in KubeVirt dual-stack clusters because the addresses stored in x509 certificates use expanded format while the calculated expected addresses use compressed format. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Enrique Llorente <ellorent@redhat.com>
WalkthroughAdds semantic IP address comparison supporting IPv6 normalization to certificate validation. New Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing touches
Comment |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jparrill, qinqon 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 |
|
/retest-required |
|
/lgtm |
|
/retest-required |
|
@qinqon: This pull request explicitly references no jira issue. 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 |
|
@qinqon: This pull request explicitly references no jira issue. 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. |
|
/verify |
|
/verified |
|
@qinqon: The 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. |
|
/verified by @qinqon |
|
@orenc1: 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. |
|
/test e2e-aks |
|
@qinqon: 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. |
|
/hold Revision 00b1068 was retested 3 times: holding |
What this PR does / why we need it:
In dual-stack environments, IPv6 addresses can be represented in different formats (e.g., "::1" vs "0:0:0:0:0:0:0:1"). The previous certificate validation used byte comparison via cmp.Diff, which incorrectly identified semantically identical IPv6 addresses as different.
This caused certificate regeneration failures in KubeVirt dual-stack clusters because the addresses stored in x509 certificates use expanded format while the calculated expected addresses use compressed format.
Which issue(s) this PR fixes:
Checklist: