You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cdk): grant s3:PutBucketVersioning in bootstrap policy (#404) (#405)
The AttachmentsBucket (cdk/src/constructs/attachments-bucket.ts) sets
`versioned: true`, so CloudFormation calls s3:PutBucketVersioning during
creation. The S3ApplicationBuckets statement in the bootstrap observability
policy grants CreateBucket, PutEncryptionConfiguration,
PutLifecycleConfiguration, PutBucketPublicAccessBlock (+Get), PutBucketTagging
(+Get), etc. — but not s3:PutBucketVersioning, so a fresh
`mise //cdk:bootstrap` + deploy of current main rolls back with:
cdk-hnb659fds-cfn-exec-role is not authorized to perform
s3:PutBucketVersioning
Same drift class as #402/#403: a stack feature whose CREATE-time action was
never added to the scoped exec-role policy — invisible to existing stacks
(the action only fires on first bucket creation), fatal to a from-scratch
deploy.
Audit of all three stack buckets (Attachments, TraceArtifacts, Screenshot)
confirms versioning is the only gap; every other feature (encryption,
lifecycle, SSL, public-access-block, tagging) already maps to a granted
action.
Add s3:PutBucketVersioning (create) and s3:GetBucketVersioning (read/drift),
matching the existing Put/Get pairing for PublicAccessBlock and Tagging.
Regenerate bootstrap artifacts and update DEPLOYMENT_ROLES.md golden (+
Starlight mirror) so golden-baseline parity passes. Add a regression guard in
policies.test.ts asserting S3ApplicationBuckets carries an action for each
bucket feature the stack enables.
Fixes#404
Co-authored-by: bgagent <bgagent@noreply.github.com>
0 commit comments