Skip to content

Conversation

@openshift-cherrypick-robot

This is an automated cherry-pick of #1958

/assign Thealisyed

This commit introduces api validation to reject # or whitespace
in the spec.path. This is becaause it causes HaProxy error and the
inress to become degraded.
The validation will reject any new route that tries to create with
whitespace or # in spec.path. It will allow for ratcheting.
Test cases are also introduced in the validation_test.go file

Related bug: https://issues.redhat.com/browse/OCPBUGS-47773
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: Jira Issue OCPBUGS-47773 has been cloned as Jira Issue OCPBUGS-61662. Will retitle bug to link to clone.
/retitle [release-4.19] OCPBUGS-61662: Add API validation to reject # or whitespace in spec.path

Details

In response to this:

This is an automated cherry-pick of #1958

/assign Thealisyed

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 openshift-ci bot changed the title [release-4.19] OCPBUGS-47773: Add API validation to reject # or whitespace in spec.path [release-4.19] OCPBUGS-61662: Add API validation to reject # or whitespace in spec.path Sep 12, 2025
@openshift-ci openshift-ci bot requested review from Miciah and knobunc September 12, 2025 09:25
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 12, 2025
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-61662, which is invalid:

  • expected dependent Jira Issue OCPBUGS-47773 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is ASSIGNED instead
  • expected dependent Jira Issue OCPBUGS-47773 to target a version in 4.20.0, but it targets "4.20" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

This is an automated cherry-pick of #1958

/assign Thealisyed

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.

@lihongan
Copy link

/jira refresh

@openshift-ci-robot
Copy link

@lihongan: This pull request references Jira Issue OCPBUGS-61662, which is invalid:

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

/jira refresh

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.

@lihongan
Copy link

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 15, 2025
@openshift-ci-robot
Copy link

@lihongan: This pull request references Jira Issue OCPBUGS-61662, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.19.z) matches configured target version for branch (4.19.z)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note text is set and does not match the template
  • dependent bug Jira Issue OCPBUGS-47773 is in the state Verified, which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-47773 targets the "4.20.0" version, which is one of the valid target versions: 4.20.0
  • bug has dependents

Requesting review from QA contact:
/cc @ShudiLi

Details

In response to this:

/jira refresh

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 openshift-ci bot requested a review from ShudiLi September 15, 2025 01:56
@Miciah
Copy link
Contributor

Miciah commented Oct 8, 2025

/assign

@candita
Copy link
Contributor

candita commented Oct 9, 2025

/assign

@candita
Copy link
Contributor

candita commented Oct 9, 2025

This is a clean cherry-pick. @Thealisyed don't forget to create the followup PR in openshift/apiserver.

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 9, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 9, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: candita, openshift-cherrypick-robot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 9, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 9, 2025

@openshift-cherrypick-robot: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 2dd58eb into openshift:release-4.19 Oct 9, 2025
4 checks passed
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: Jira Issue OCPBUGS-61662: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-61662 has been moved to the MODIFIED state.

Details

In response to this:

This is an automated cherry-pick of #1958

/assign Thealisyed

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.

@ShudiLi
Copy link
Member

ShudiLi commented Oct 10, 2025

/jira refresh

@openshift-ci-robot
Copy link

@ShudiLi: Jira Issue OCPBUGS-61662: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-61662 has been moved to the MODIFIED state.

Details

In response to this:

/jira refresh

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.

Thealisyed pushed a commit to Thealisyed/openshift-apiserver that referenced this pull request Oct 15, 2025
…space in spec.path

openshift/library-go#2012 was already merged
hence we ran the following commands for this PR:
go get github.com/openshift/library-go@2dd58ebcfe22424a4e7ae919ab61e62a0d03632c
go mod tidy
Thealisyed pushed a commit to Thealisyed/openshift-apiserver that referenced this pull request Nov 11, 2025
…space in spec.path

openshift/library-go#2012 was already merged
hence we ran the following commands for this PR:
go get github.com/openshift/library-go@2dd58ebcfe22424a4e7ae919ab61e62a0d03632c
go mod tidy
Thealisyed pushed a commit to Thealisyed/openshift-apiserver that referenced this pull request Nov 11, 2025
…space in spec.path

openshift/library-go#2012 was already merged
hence we ran the following commands for this PR:
go get github.com/openshift/library-go@2dd58ebcfe22424a4e7ae919ab61e62a0d03632c
go mod tidy
Thealisyed pushed a commit to Thealisyed/openshift-apiserver that referenced this pull request Nov 11, 2025
…space in spec.path

openshift/library-go#2012 was already merged
hence we ran the following commands for this PR:
go get github.com/openshift/library-go@2dd58ebcfe22424a4e7ae919ab61e62a0d03632c
go mod tidy
Thealisyed pushed a commit to Thealisyed/openshift-apiserver that referenced this pull request Nov 11, 2025
…space in spec.path

openshift/library-go#2012 was already merged
hence we ran the following commands for this PR:
go get github.com/openshift/library-go@2dd58ebcfe22424a4e7ae919ab61e62a0d03632c
go mod tidy
Thealisyed pushed a commit to Thealisyed/openshift-apiserver that referenced this pull request Nov 11, 2025
…space in spec.path

openshift/library-go#2012 was already merged
hence we ran the following commands for this PR:
go get github.com/openshift/library-go@2dd58ebcfe22424a4e7ae919ab61e62a0d03632c
go mod tidy
@openshift-merge-robot
Copy link
Contributor

Fix included in accepted release 4.19.0-0.nightly-2025-12-19-215710

@Thealisyed
Copy link

/cherry-pick release-4.18

@openshift-cherrypick-robot
Copy link
Author

@Thealisyed: new pull request created: #2117

Details

In response to this:

/cherry-pick release-4.18

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants