-
Notifications
You must be signed in to change notification settings - Fork 592
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
Sequence and Parallel: announce correct OIDC identities in authstatus #7902
Sequence and Parallel: announce correct OIDC identities in authstatus #7902
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7902 +/- ##
==========================================
+ Coverage 69.22% 69.42% +0.20%
==========================================
Files 339 344 +5
Lines 19494 15897 -3597
==========================================
- Hits 13494 11037 -2457
+ Misses 5337 4184 -1153
- Partials 663 676 +13 ☔ View full report in Codecov by Sentry. |
…[OIDC] (knative#7361)" This reverts commit e5f2814.
This reverts commit dc96522.
c79a69e
to
b8c7756
Compare
/retest-required /cc @pierDipi |
/retest-required |
@pierDipi, we could also migrate the existing usages of |
@creydr do we want to backport this to 1.14? If we do, maybe it would make sense to only have the CRD changes for the parallel and sequence in this PR, and then change the others in a separate PR? |
We would need to backport the knative/pkg changes too (to have the additional field). Therefor I tend to not backport it, as this is also mostly relevant for the upcoming authZ work (and in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just have a small question about unit testing this (which we could also do as a follow up or maybe isn't needed)
Otherwise lgtm!
@@ -336,121 +327,89 @@ func TestParallelPropagateSubscriptionStatusUpdated(t *testing.T) { | |||
|
|||
func TestParallelReady(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this unit test (or another one?) could we add a test that verifies that the parallel correctly sets the audiences from the subscriptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. For the audience, we have
eventing/pkg/apis/flows/v1/parallel_lifecycle_test.go
Lines 491 to 496 in 4951b74
}, { | |
name: "Audience", | |
address: &duckv1.Addressable{Audience: audience}, | |
want: &duckv1.Addressable{Audience: audience}, | |
wantStatus: corev1.ConditionTrue, | |
}} |
@@ -324,70 +315,52 @@ func TestSequencePropagateChannelStatuses(t *testing.T) { | |||
|
|||
func TestSequenceReady(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this unit tests (or another one?) could we add a test that verifies that the sequence correctly sets its audiences based off of the subscription audiences?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to #7902 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, creydr 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 |
Currently the Sequence and Parallel use a dedicated OIDC service account in their
.status.auth.serviceAccountName
. Anyhow the underlying channel dispatchers use the SAs from the Subscription(s), so that the announced OIDC identity of the Sequence/Parallel is not correct.In knative/pkg#3032 the AuthStatus was adjusted to support to announce multiple serviceAccountNames.
This PR addresses the above issue and populates the Sequences and Parallels
.status.auth.serviceAccountNames
(plural) with the OIDC identities from the underlying subscriptions.Hint:
Release Note