[release-4.15] OCPBUGS-84183: fix(cno): use brackets only for IPv6 in server URL#8308
Conversation
The rewrite-config init container was unconditionally wrapping KUBERNETES_SERVICE_HOST in brackets, creating URLs like https://[172.29.0.1]:443. Go 1.24.8+ (CVE-2025-47912) now rejects IPv4 addresses in brackets per RFC 3986. Use a case statement to detect IPv6 (contains colon) and only add brackets for those addresses. Fixes: https://issues.redhat.com/browse/OCPBUGS-72411 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Scott Dodson <sdodson@redhat.com>
|
@sdodson: This pull request references Jira Issue OCPBUGS-72411, 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. |
|
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: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@sdodson: This pull request references Jira Issue OCPBUGS-84183, 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. |
|
@sdodson: An error was encountered. No known errors were detected, please see the full error message for details. Full error message.
unable to get additional pr info from string: openshift/cluster-network-operator/#2970: string: openshift/cluster-network-operator/#2970 doesn't match expected format: org/repo#number
Please contact an administrator to resolve this issue. |
|
/test ? |
|
/payload-job-with-prs periodic-ci-openshift-hypershift-release-4.15-periodics-e2e-aws-ovn-conformance #8308 openshift/cluster-network-operator#2970 |
|
@sdodson: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/287688c0-3e87-11f1-979a-19907761e01e-0 |
|
@sdodson: This PR was included in a payload test run from #8308
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/287688c0-3e87-11f1-979a-19907761e01e-0 |
|
/test e2e-conformance |
|
/payload-job-with-prs periodic-ci-openshift-hypershift-release-4.15-periodics-e2e-aws-ovn-conformance openshift/cluster-network-operator#2970 |
|
@sdodson: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/de90e700-3e9a-11f1-95d3-dec0e015a1a8-0 |
|
/retest-required |
|
/retest-required |
|
/approve |
|
/lgtm I'm not an approver on that branch. @muraee can you PTAL? |
|
/retitle [release-4.15] OCPBUGS-84183: fix(cno): use brackets only for IPv6 in server URL |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: muraee, sdodson 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 |
|
/lgtm |
|
/verified by e2e |
|
@devguyio: 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. |
|
@devguyio: This pull request references Jira Issue OCPBUGS-84183, which is valid. 7 validation(s) were run on this bug
Requesting review from QA contact: 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. |
|
@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: sdodson. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
|
/retest-required |
|
/override ci/prow/e2e-kubevirt-aws-ovn-reduced This is exercising a selfhosted non supported permutation 4.15 management with latest HO |
|
@enxebre: Overrode contexts on behalf of enxebre: ci/prow/e2e-kubevirt-aws-ovn-reduced 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. |
|
@sdodson: The following tests 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. |
4f79410
into
openshift:release-4.15
|
@sdodson: Jira Issue OCPBUGS-84183: Some pull requests linked via external trackers have merged: The following pull request, linked via external tracker, has not merged: All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-84183 has not been moved to the MODIFIED state. This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are 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. |
Summary
KUBERNETES_SERVICE_HOSTin brackets, creating URLs likehttps://[172.29.0.1]:443. Go 1.24.8+ (CVE-2025-47912) now rejects IPv4 addresses in brackets per RFC 3986.Fixes: https://issues.redhat.com/browse/OCPBUGS-72411
Test plan
UPDATE=true make testregenerated fixtures successfully🤖 Generated with Claude Code