-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Fix service account node audience restriction for in-tree pv to csi migration #129993
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
Conversation
@aramase: You must be a member of the kubernetes/milestone-maintainers GitHub team to set the milestone. If you believe you should be able to issue the /milestone command, please contact your Milestone Maintainers Team and have them propose you as an additional delegate for this responsibility. In response to this:
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. |
Could you review this PR? previous review: #128077 (comment). |
8281e13
to
8ff8f8b
Compare
Added a unit test in d6c50c3 that shows the failure. The test passes with the fix and I've added integration test as well. === RUN Test_nodePlugin_Admit/intree_pv_to_csi,_allow_create_of_token_when_audience_in_pod_-->_csi_-->_driver_-->_tokenrequest_with_audience,_ServiceAccountNodeAudienceRestriction=true
admission_test.go:246: nodePlugin.Admit() error = serviceaccounts "mysa" is forbidden: audience "foo" not found in pod spec volume, expected
--- FAIL: Test_nodePlugin_Admit/intree_pv_to_csi,_allow_create_of_token_when_audience_in_pod_-->_csi_-->_driver_-->_tokenrequest_with_audience,_ServiceAccountNodeAudienceRestriction=true (0.00s)
=== RUN Test_nodePlugin_Admit/intree_inline_vol_to_csi,_allow_create_of_token_when_audience_in_pod_-->_csi_-->_driver_-->_tokenrequest_with_audience,_ServiceAccountNodeAudienceRestriction=true
admission_test.go:246: nodePlugin.Admit() error = serviceaccounts "mysa" is forbidden: audience "foo" not found in pod spec volume, expected
--- FAIL: Test_nodePlugin_Admit/intree_inline_vol_to_csi,_allow_create_of_token_when_audience_in_pod_-->_csi_-->_driver_-->_tokenrequest_with_audience,_ServiceAccountNodeAudienceRestriction=true (0.00s) |
/assign enj |
…ol/pv to csi failure Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
8ff8f8b
to
042a344
Compare
/assign liggitt |
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.
generally looks reasonable, a couple questions / nits
What are we planning to do to recover 1.32 from this regression? our options are to backport this fix or to toggle ServiceAccountNodeAudienceRestriction to false in 1.32. I'd be inclined to do the latter.
…e_vol/pv to csi Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
042a344
to
62809dd
Compare
/lgtm |
LGTM label has been added. Git tree hash: 988023942ea3b779d12eaf31096d4515060c8adc
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aramase, liggitt 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 |
I was thinking we do the backport. Were you thinking we disable it only in v1.32 and keep it as-is (enabled) in v1.33+? |
Yes |
#130015 to disable it in 1.32. |
Translate in-tree inline volume or in-tree persistent volumes to CSI using the CSI translator while verifying whether the kubelet is allowed to request a token for an audience when enforcing service account node audience restrictions.
fixes #129935
/kind bug
/sig auth
/triage accepted
/milestone v1.33
/priority important-soon