mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 23:00:59 -05:00
* fix(s3): check the extra IAM actions a CreateBucket needs A CreateBucket whose headers configure the new bucket needs more than s3:CreateBucket, as the CreateBucket API reference lists: - s3:PutBucketAcl for a canned ACL other than private, or a grant header - s3:PutBucketObjectLockConfiguration and s3:PutBucketVersioning for x-amz-bucket-object-lock-enabled: true - s3:PutBucketOwnershipControls for x-amz-object-ownership S3Controller now checks these actions before the bucket is created, so a denied request creates nothing. * chore(s3): move the CreateBucket header actions next to the object ones S3ObjectActions.bucketCreationActions now gives the actions a CreateBucket needs from its headers, and reuses GRANT_HEADERS. EnforcementFixtures.putUserPolicy replaces the test's own PutUserPolicy helper.