Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the code that rejects for wrong audience #7492

Conversation

Leo6Leo
Copy link
Member

@Leo6Leo Leo6Leo commented Dec 6, 2023

Fixes #7487

Proposed Changes

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note


Docs

Signed-off-by: Leo Li <[email protected]>
Copy link

knative-prow bot commented Dec 6, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 6, 2023
@knative-prow knative-prow bot requested review from lberk and odacremolbap December 6, 2023 07:23
@knative-prow knative-prow bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 6, 2023
Copy link

codecov bot commented Dec 6, 2023

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (1f38c2e) 76.12% compared to head (f8cb477) 76.15%.
Report is 1 commits behind head on main.

Files Patch % Lines
pkg/auth/token_verifier.go 0.00% 15 Missing ⚠️
pkg/broker/filter/filter_handler.go 0.00% 5 Missing ⚠️
pkg/broker/ingress/ingress_handler.go 0.00% 3 Missing ⚠️
pkg/channel/event_receiver.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7492      +/-   ##
==========================================
+ Coverage   76.12%   76.15%   +0.02%     
==========================================
  Files         260      260              
  Lines       14467    14458       -9     
==========================================
- Hits        11013    11010       -3     
+ Misses       2888     2882       -6     
  Partials      566      566              

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

@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 12, 2023
@Leo6Leo Leo6Leo marked this pull request as ready for review December 12, 2023 05:55
@Leo6Leo Leo6Leo changed the title [WIP] Refactor the code that rejects for wrong audience Refactor the code that rejects for wrong audience Dec 12, 2023
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 12, 2023
@knative-prow knative-prow bot requested review from aliok and Cali0707 December 12, 2023 05:56
@Leo6Leo
Copy link
Member Author

Leo6Leo commented Dec 12, 2023

/cc @creydr

@knative-prow knative-prow bot requested a review from creydr December 12, 2023 06:11
pkg/auth/utils.go Outdated Show resolved Hide resolved
pkg/broker/ingress/ingress_handler.go Outdated Show resolved Hide resolved
@knative-prow knative-prow bot added the area/test-and-release Test infrastructure, tests or release label Dec 12, 2023
@Leo6Leo
Copy link
Member Author

Leo6Leo commented Dec 12, 2023

/cc @creydr

@knative-prow knative-prow bot requested a review from creydr December 12, 2023 16:14
pkg/auth/utils.go Outdated Show resolved Hide resolved
test/auth/features/oidc/addressable_oidc_conformance.go Outdated Show resolved Hide resolved
@Leo6Leo Leo6Leo requested a review from creydr December 14, 2023 06:36
Copy link
Member

@creydr creydr 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 cleaning this up @Leo6Leo

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 14, 2023
Copy link

knative-prow bot commented Dec 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, Leo6Leo

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

The pull request process is described here

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 Dec 14, 2023
@knative-prow knative-prow bot merged commit c38f800 into knative:main Dec 14, 2023
33 of 34 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor the code that rejects for wrong audience
2 participants