Files
floci/docs
Priamo Germosen 401f5ce2d7 fix(iam): name a denied S3 POST in CloudTrail (#5942)
Under IAM enforcement a denied S3 request is recorded in CloudTrail as
the operation that was refused, but a denied POST on an object was not
recorded at all. CreateMultipartUpload and CompleteMultipartUpload are
both checked as s3:PutObject and SelectObjectContent as s3:GetObject,
so the action alone could not say which operation ran, and
RestoreObject had no name.

A denied POST is now named from the sub-resource that chose its action:
?uploads is CreateMultipartUpload, an uploadId CompleteMultipartUpload,
?restore RestoreObject and ?select SelectObjectContent, with ?uploads
ahead of an uploadId as S3Controller runs them. The S3 user guide lists
all four among the object data events CloudTrail logs. A POST naming
none of them still gets no name rather than a wrong one.

SelectObjectContent and GetObjectAttributes were missing from the
read-only events, so a trail logging only reads dropped their denials
and other trails recorded them as writes. CloudTrail counts an event
that changes no resource as read-only, and neither one changes the
object.
2026-10-18 20:43:25 -05:00
..
2026-03-15 17:43:56 -05:00