Skip to content

[release-1.19] Fix MT Channel based broker when OIDC is enabled#8777

Merged
knative-prow[bot] merged 1 commit intoknative:release-1.19from
knative-prow-robot:cherry-pick-8727-to-release-1.19
Oct 27, 2025
Merged

[release-1.19] Fix MT Channel based broker when OIDC is enabled#8777
knative-prow[bot] merged 1 commit intoknative:release-1.19from
knative-prow-robot:cherry-pick-8727-to-release-1.19

Conversation

@knative-prow-robot
Copy link
Contributor

This is an automated cherry-pick of #8727

Fixes broken MT channel based broker when TLS is disabled and OIDC enabled

When OIDC is enabled and https is disabled (i.e. http requests are used)
the event receiver is using the host name to determine the name of the
channel and fails to do so. An example host name is
`broker-kne-trigger-kn-channel.namespace-1.svc.cluster.local`. The
channel name here is `broker-kne-trigger` without the suffix
`-kn-channel` which was hardcoded in the logic which was creating the
channel owned k8 service.

The constant `-kn-channel` is now extracted into a common constant in
the `channel` package. A conditional check in `ParseChannelFromHost` now
checks for the suffix in the host name and removes it if needed.
An additional test case was added and existing tests were updated.

Issue knative#8705.

Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/test-and-release Test infrastructure, tests or release labels Oct 24, 2025
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 24, 2025
@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.95%. Comparing base (eac3a0f) to head (c5d3b40).
⚠️ Report is 1 commits behind head on release-1.19.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.19    #8777      +/-   ##
================================================
+ Coverage         51.48%   51.95%   +0.47%     
================================================
  Files               400      400              
  Lines             25158    20140    -5018     
================================================
- Hits              12952    10464    -2488     
+ Misses            11419     8888    -2531     
- Partials            787      788       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@creydr
Copy link
Member

creydr commented Oct 27, 2025

/lgtm
/approve

@knative-prow
Copy link

knative-prow bot commented Oct 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, knative-prow-robot, twoGiants

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 27, 2025
@knative-prow knative-prow bot merged commit b01b4e6 into knative:release-1.19 Oct 27, 2025
24 checks passed
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. area/test-and-release Test infrastructure, tests or release lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants