feat(s3-deployment): apply least privilege to destination bucket policies 2#36992
feat(s3-deployment): apply least privilege to destination bucket policies 2#36992amandladev wants to merge 14 commits intoaws:mainfrom
Conversation
…-permissions-least-privilege
|
|
||||||||||||||
|
|
||||||||||||||
|
This PR has been in the MERGE CONFLICTS state for 3 weeks, and looks abandoned. Note that PRs with failing linting check or builds are not reviewed, please ensure your build is passing To prevent automatic closure:
This PR will automatically close in 14 days if no action is taken. |
Introduction
This change improves security by scoping IAM policies to the specific
destination key prefix instead of granting access to all bucket objects.
Changes:
Security Benefits:
Affected Use Cases:
✅ Deployment with prefix: destinationKeyPrefix: 'deploy/here/'
✅ EFS-backed deployment: destinationKeyPrefix: 'efs/', useEfs: true
✅ Multiple deployments to same bucket with different prefixes
✅ Deployments without prefix (unchanged behavior)
Testing:
Fixes #35610