Skip to content

Conversation

@victordrnd
Copy link
Contributor

@victordrnd victordrnd commented Sep 3, 2025

What this PR does / why we need it:

The request-termination was added to return 500 error when no backendRef is provided, this should not be done on TLS/TCP route as HTTP errors are not valid with those protocols. Also the request-termination plugin is only accepting HTTP/HTTPS/GRPC/GRPCS

https://developer.konghq.com/plugins/request-termination/reference/

Which issue this PR fixes:

#7699

#fix 7699

Special notes for your reviewer:

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@victordrnd victordrnd requested a review from a team as a code owner September 3, 2025 07:25
@CLAassistant
Copy link

CLAassistant commented Sep 3, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@pmalek pmalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. This does look good.

Just 1 minor nit w.r.t the build failing.

Most of the tests in CI will fail because we require a secret only available to in tree PRs. When we get the review done I'll handle cherry picking the change.

"message": "no existing backendRef provided",
},
})
if strings.Contains(service.Service.Protocol, "http") || strings.Contains(service.Service.Protocol, "grpc") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strings package has to be imported for the build to pass.

@randmonkey
Copy link
Contributor

Hello,
We are sorry that PRs from forks cannot fetch the secrets required to run the integration tests for each PR. So we cherry-picked the commits in your PR in #7720.

github-merge-queue bot pushed a commit that referenced this pull request Sep 22, 2025
…ute (#7700) (#7720)

* fix: Do not add request-termination on TLSRoute / TCPRoute

* fix: add import of strings and check nil

* fix unit tests and golden test cases

* add changelog

---------

Co-authored-by: Victor Durand <[email protected]>
team-k8s-bot pushed a commit that referenced this pull request Sep 22, 2025
…ute (#7700) (#7720)

* fix: Do not add request-termination on TLSRoute / TCPRoute

* fix: add import of strings and check nil

* fix unit tests and golden test cases

* add changelog

---------

Co-authored-by: Victor Durand <[email protected]>
(cherry picked from commit cc67509)
randmonkey added a commit that referenced this pull request Sep 22, 2025
…ute (#7700) (#7720)

* fix: Do not add request-termination on TLSRoute / TCPRoute

* fix: add import of strings and check nil

* fix unit tests and golden test cases

* add changelog

---------

Co-authored-by: Victor Durand <[email protected]>
randmonkey added a commit that referenced this pull request Sep 22, 2025
…ute (#7700) (#7720) (#7729)

* fix: Do not add request-termination on TLSRoute / TCPRoute

* fix: add import of strings and check nil

* fix unit tests and golden test cases

* add changelog

---------


(cherry picked from commit cc67509)

Co-authored-by: Tao Yi <[email protected]>
Co-authored-by: Victor Durand <[email protected]>
randmonkey added a commit that referenced this pull request Sep 22, 2025
…ute (#7700) (#7720) (#7730)

* fix: Do not add request-termination on TLSRoute / TCPRoute

* fix: add import of strings and check nil

* fix unit tests and golden test cases

* add changelog

---------

Co-authored-by: Victor Durand <[email protected]>
@programmer04
Copy link
Member

Cherry-picked in #7720

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.

5 participants