-
Notifications
You must be signed in to change notification settings - Fork 807
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
Namespace-scoped leases permissions #1614
Conversation
/retest |
/lgtm |
/lgtm |
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.
One nit, otherwise lgtm
/lgtm |
This commit modifies the driver's access to the 'leases' resource, restricting it to the namespace scope. The previously used ClusterRole and ClusterRoleBinding have been replaced by a Role and RoleBinding to ensure the driver's permissions are limited to its containing namespace, aligning with security best practices. Signed-off-by: Eddie Torres <[email protected]>
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: torredil 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 |
This PR addresses the overly broad permissions previously granted to the
AWS EBS CSI driver for managing 'leases'. It replaces the
ClusterRole
andClusterRoleBinding
, which provided cluster-wide access, with aRole
andRoleBinding
, limiting access to the namespace in which the driver is deployed.What is this PR about? / Why do we need it?
The original configuration granted the driver access to leases across all
namespaces, which was unnecessary. By limiting access to the namespace in which the driver is deployed, we can enhance our security posture.
closes #1564
What testing is done?