-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix: check ClusterWorkflowTemplate RBAC cluster wide instead of namespaced. Fixes #15071 #15162
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
Signed-off-by: Eduardo Rodrigues <[email protected]>
📝 WalkthroughWalkthroughThe changes remove the namespace parameter from the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
/retest |
Joibel
left a 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.
Looks good, thanks
|
❌ Cherry-pick failed for 3.7. Please check the workflow logs for details. |
…paced. Fixes #15071 (#15162) (cherry picked from commit e621d1f) Signed-off-by: Eduardo Rodrigues <[email protected]> Signed-off-by: Alan Clucas <[email protected]>
…paced. Fixes #15071 (#15162) (cherry picked from commit e621d1f) Signed-off-by: Eduardo Rodrigues <[email protected]> Signed-off-by: Alan Clucas <[email protected]>
Fixes #15071
Motivation
If the service account (SA) running the controller is granted a role that provides access to ClusterWorkflowTemplates within the controller’s namespace, the controller incorrectly assumes the SA has access to ClusterWorkflowTemplates cluster-wide. While this scenario is uncommon, it is possible. This PR addresses the issue by verifying access at the cluster scope rather than relying on namespace-scoped permissions.
Modifications
Verification
Documentation
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.