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

Expose OIDC audience of KafkaSink in its status #4067

Merged

Conversation

creydr
Copy link
Contributor

@creydr creydr commented Aug 16, 2024

Proposed Changes

  • Provision a KafkaSinks .status.address.audience and .status.addresses[*].audience field

/cherry-pick release-1.15
/cherry-pick release-1.14

@knative-prow knative-prow bot added area/control-plane area/test size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 16, 2024
@knative-prow knative-prow bot requested review from aliok and pierDipi August 16, 2024 11:24
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.37%. Comparing base (726cf85) to head (36b642c).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4067      +/-   ##
==========================================
+ Coverage   48.33%   48.37%   +0.04%     
==========================================
  Files         244      244              
  Lines       14579    14591      +12     
==========================================
+ Hits         7047     7059      +12     
  Misses       6821     6821              
  Partials      711      711              

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

@creydr
Copy link
Contributor Author

creydr commented Aug 16, 2024

/cc @matzew @pierDipi
Seems I missed the OIDC integration into the KafkaSink (exposure of its audience) 😞

@knative-prow knative-prow bot requested a review from matzew August 16, 2024 11:54
@creydr
Copy link
Contributor Author

creydr commented Aug 16, 2024

/test integration-tests

@creydr
Copy link
Contributor Author

creydr commented Aug 16, 2024

/retest

Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 19, 2024
Copy link

knative-prow bot commented Aug 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@creydr
Copy link
Contributor Author

creydr commented Aug 19, 2024

/retest

1 similar comment
@pierDipi
Copy link
Member

/retest

@pierDipi
Copy link
Member

{Failed  === RUN   TestKafkaChannelOIDC/KafkaChannel_handles_requests_with_OIDC_tokens_correctly/KafkaChannel_handles_event_with_valid_OIDC_token/Assert/KafkaChannel_get_202_on_response
        
        - Match errors -
        0 - event status code don't match. Expected: '202', Actual: '0'
        1 - event status code don't match. Expected: '202', Actual: '0'
        2 - event status code don't match. Expected: '202', Actual: '0'
        3 - event status code don't match. Expected: '202', Actual: '401'

@creydr
Copy link
Contributor Author

creydr commented Aug 19, 2024

/retest-required

@creydr
Copy link
Contributor Author

creydr commented Aug 19, 2024

{Failed  === RUN   TestKafkaChannelOIDC/KafkaChannel_handles_requests_with_OIDC_tokens_correctly/KafkaChannel_handles_event_with_valid_OIDC_token/Assert/KafkaChannel_get_202_on_response
        
        - Match errors -
        0 - event status code don't match. Expected: '202', Actual: '0'
        1 - event status code don't match. Expected: '202', Actual: '0'
        2 - event status code don't match. Expected: '202', Actual: '0'
        3 - event status code don't match. Expected: '202', Actual: '401'

where did you see those?

@creydr
Copy link
Contributor Author

creydr commented Aug 19, 2024

/test upgrade-tests

@knative-prow knative-prow bot merged commit e653fed into knative-extensions:main Aug 19, 2024
37 checks passed
@knative-prow-robot
Copy link
Contributor

@creydr: new pull request created: #4071

In response to this:

Proposed Changes

  • Provision a KafkaSinks .status.address.audience and .status.addresses[*].audience field

/cherry-pick release-1.15
/cherry-pick release-1.14

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.

@knative-prow-robot
Copy link
Contributor

@creydr: new pull request created: #4072

In response to this:

Proposed Changes

  • Provision a KafkaSinks .status.address.audience and .status.addresses[*].audience field

/cherry-pick release-1.15
/cherry-pick release-1.14

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.

creydr added a commit to creydr/knative-eventing-kafka-broker that referenced this pull request Aug 20, 2024
)

* Provision audience of KafkaSink

* Add e2e test

* Run full OIDC e2e test suite

* run gofmt and goimports
knative-prow bot pushed a commit that referenced this pull request Aug 26, 2024
* Expose OIDC audience of KafkaSink in its status (#4067)

* Provision audience of KafkaSink

* Add e2e test

* Run full OIDC e2e test suite

* run gofmt and goimports

* Fix build issue
knative-prow-robot pushed a commit to knative-prow-robot/eventing-kafka-broker that referenced this pull request Aug 26, 2024
)

* Provision audience of KafkaSink

* Add e2e test

* Run full OIDC e2e test suite

* run gofmt and goimports
knative-prow bot pushed a commit that referenced this pull request Aug 26, 2024
* Expose OIDC audience of KafkaSink in its status (#4067)

* Provision audience of KafkaSink

* Add e2e test

* Run full OIDC e2e test suite

* run gofmt and goimports

* Fix build issue

---------

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
creydr added a commit to creydr/knative-eventing-kafka-broker that referenced this pull request Aug 26, 2024
…ve-extensions#4073)

* Expose OIDC audience of KafkaSink in its status (knative-extensions#4067)

* Provision audience of KafkaSink

* Add e2e test

* Run full OIDC e2e test suite

* run gofmt and goimports

* Fix build issue
creydr added a commit to creydr/knative-eventing-kafka-broker that referenced this pull request Sep 4, 2024
…ve-extensions#4073)

* Expose OIDC audience of KafkaSink in its status (knative-extensions#4067)

* Provision audience of KafkaSink

* Add e2e test

* Run full OIDC e2e test suite

* run gofmt and goimports

* Fix build issue
openshift-merge-bot bot pushed a commit to openshift-knative/eventing-kafka-broker that referenced this pull request Sep 9, 2024
…ve-extensions#4073) (#1166)

* Expose OIDC audience of KafkaSink in its status (knative-extensions#4067)

* Provision audience of KafkaSink

* Add e2e test

* Run full OIDC e2e test suite

* run gofmt and goimports

* Fix build issue
creydr added a commit to creydr/knative-eventing-kafka-broker that referenced this pull request Sep 10, 2024
…ve-extensions#4073)

* Expose OIDC audience of KafkaSink in its status (knative-extensions#4067)

* Provision audience of KafkaSink

* Add e2e test

* Run full OIDC e2e test suite

* run gofmt and goimports

* Fix build issue
pierDipi pushed a commit to openshift-knative/eventing-kafka-broker that referenced this pull request Sep 12, 2024
…ve-extensions#4073) (#1162)

* Expose OIDC audience of KafkaSink in its status (knative-extensions#4067)

* Provision audience of KafkaSink

* Add e2e test

* Run full OIDC e2e test suite

* run gofmt and goimports

* Fix build issue
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/control-plane area/test 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