mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 09:47:56 -05:00
IamEnforcementFilter named the CloudTrail data event of a denied S3 request from a hand-written table keyed by the IAM action, so a request checked under another operation's action took that operation's name: HeadBucket was recorded as ListObjects, CopyObject, UploadPart and UploadPartCopy as PutObject, GetObjectTorrent as GetObject, ListBuckets as a data event, and ListObjectVersions, ListParts, DeleteObjects, AbortMultipartUpload and the legal hold and retention calls were not recorded. A denial is now recorded under the data event of the operation the request matched, from src/main/resources/aws/cloudtrail-s3-data-events.json, which tools/aws/regen_cloudtrail_s3_data_events.py generates from botocore's S3 model, the S3 user guide's data events table and its sentence naming the event a call is recorded with (vendored by tools/aws/fetch_cloudtrail_s3_data_events.py), and AWS's S3 service reference. An operation the table for general purpose buckets lists is recorded under its name or the one the guide gives it (PutObjectRetention as PutObjectLockRetention), a versioned one under the version-less name the table lists (ListObjectsV2 as ListObjects), and an operation it does not list records no data event. readOnly is the service reference's, by the reading iam-action-resources.json's readOnlyActions are vendored by, in place of CloudTrailService's hand-written list. The IAM data drift workflow runs on a pull request touching any of the six new files, so the online check covers a change to the table alone.
143 lines
3.9 KiB
JSON
143 lines
3.9 KiB
JSON
{
|
|
"_source": {
|
|
"page": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/cloudtrail-logging-s3-info.html",
|
|
"fetcher": "tools/aws/fetch_cloudtrail_s3_data_events.py",
|
|
"retrieved": "2026-11-25",
|
|
"note": "Each row of the page's data events table with its API cells, and each sentence giving the name a call's data event is recorded with, copied as they stand."
|
|
},
|
|
"dataEvents": {
|
|
"AWS::S3::Object": [
|
|
"AbortMultipartUpload",
|
|
"CompleteMultipartUpload",
|
|
"CopyObject",
|
|
"CreateMultipartUpload",
|
|
"DeleteObject",
|
|
"DeleteObjectTagging",
|
|
"DeleteObjects",
|
|
"GetObject",
|
|
"GetObjectAcl",
|
|
"GetObjectAttributes",
|
|
"GetObjectLegalHold",
|
|
"GetObjectRetention",
|
|
"GetObjectTagging",
|
|
"GetObjectTorrent",
|
|
"HeadObject",
|
|
"HeadBucket",
|
|
"ListObjectVersions",
|
|
"ListObjects",
|
|
"ListParts",
|
|
"PutObject",
|
|
"PutObjectAcl",
|
|
"PutObjectLegalHold",
|
|
"PutObjectRetention",
|
|
"PutObjectTagging",
|
|
"PutObjectAnnotation",
|
|
"GetObjectAnnotation",
|
|
"ListObjectAnnotations",
|
|
"DeleteObjectAnnotation",
|
|
"RestoreObject",
|
|
"SelectObjectContent",
|
|
"UpdateObjectEncryption",
|
|
"UploadPart",
|
|
"UploadPartCopy"
|
|
],
|
|
"AWS::S3Express::Object": [
|
|
"AbortMultipartUpload",
|
|
"CompleteMultipartUpload",
|
|
"CreateSession",
|
|
"CopyObject",
|
|
"CreateMultipartUpload",
|
|
"DeleteObject",
|
|
"DeleteObjects",
|
|
"GetObject",
|
|
"GetObjectAttributes",
|
|
"HeadBucket",
|
|
"HeadObject",
|
|
"ListObjectsV2",
|
|
"ListParts",
|
|
"PutObject",
|
|
"UploadPart",
|
|
"UploadPartCopy"
|
|
],
|
|
"AWS::S3::Access Point": [
|
|
"AbortMultipartUpload",
|
|
"CompleteMultipartUpload",
|
|
"CopyObject (same-region copies only)",
|
|
"CreateMultipartUpload",
|
|
"DeleteObject",
|
|
"DeleteObjectTagging",
|
|
"GetObject",
|
|
"GetObjectAcl",
|
|
"GetObjectAttributes",
|
|
"GetObjectLegalHold",
|
|
"GetObjectRetention",
|
|
"GetObjectTagging",
|
|
"HeadBucket",
|
|
"HeadObject",
|
|
"ListObjects",
|
|
"ListObjectsV2",
|
|
"ListObjectVersions",
|
|
"ListParts",
|
|
"Presign",
|
|
"PutObject",
|
|
"PutObjectLegalHold",
|
|
"PutObjectRetention",
|
|
"PutObjectAcl",
|
|
"PutObjectTagging",
|
|
"RestoreObject",
|
|
"UploadPart",
|
|
"UploadPartCopy (same-region copies only)"
|
|
],
|
|
"AWS::S3ObjectLambda::AccessPoint": [
|
|
"AbortMultipartUpload",
|
|
"CompleteMultipartUpload",
|
|
"CopyObject (same-region copies only)",
|
|
"CreateMultipartUpload",
|
|
"DeleteObject",
|
|
"DeleteObjectTagging",
|
|
"GetObject",
|
|
"GetObjectAcl",
|
|
"GetObjectLegalHold",
|
|
"GetObjectRetention",
|
|
"GetObjectTagging",
|
|
"HeadObject",
|
|
"ListObjects",
|
|
"ListObjectVersions",
|
|
"ListParts",
|
|
"PutObject",
|
|
"PutObjectLegalHold",
|
|
"PutObjectRetention",
|
|
"PutObjectAcl",
|
|
"PutObjectTagging",
|
|
"RestoreObject",
|
|
"UploadPart",
|
|
"WriteGetObjectResponse"
|
|
],
|
|
"AWS::S3Outposts::Object": [
|
|
"AbortMultipartUpload",
|
|
"CompleteMultipartUpload",
|
|
"CopyObject (same-region copies only)",
|
|
"CreateMultipartUpload",
|
|
"DeleteObject",
|
|
"DeleteObjectTagging",
|
|
"GetObject",
|
|
"GetObjectTagging",
|
|
"HeadObject",
|
|
"ListObjects",
|
|
"ListObjectsV2",
|
|
"ListParts",
|
|
"PutObject",
|
|
"PutObjectTagging",
|
|
"UploadPart",
|
|
"UploadPartCopy"
|
|
]
|
|
},
|
|
"recordedAs": [
|
|
{
|
|
"call": "PutObjectRetention",
|
|
"eventName": "PutObjectLockRetention",
|
|
"sentence": "When you call PutObjectRetention, the CloudTrail data event is recorded with the eventName PutObjectLockRetention, and includes objectRetentionInfo in additionalEventData. This field contains the resulting retention mode, retain-until-date, event hold status, and event hold duration."
|
|
}
|
|
]
|
|
}
|