mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 23:00:59 -05:00
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.