aws-s3/notifications-resource: Scope down S3 bucket notifications lambda permission to only buckets it interacts with #27234
Labels
@aws-cdk/aws-s3
Related to Amazon S3
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
needs-review
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the feature
This lambda function(permission defined here) allows s3:PutBucketNotification with any bucket and we would need it to be only the buckets it actually sets the notification up with.
Use Case
Following security best practices of scoping down permissions.
Proposed Solution
I'm thinking we can move out the s3:PutBucketNotification permission definition from the notifications-resource-handler and move it to where we try to create it given a bucket.
Other Information
No response
Acknowledgements
CDK version used
v2.96.2
Environment details (OS name and version, etc.)
any
The text was updated successfully, but these errors were encountered: