forked from GoogleCloudPlatform/professional-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcs-obj-vers.log
155 lines (153 loc) · 4.66 KB
/
gcs-obj-vers.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Query: protoPayload.request.metadata.versioning.enabled=true
Enable Object Versioning:
{
"protoPayload": {
"@type": "type.googleapis.com/google.cloud.audit.AuditLog",
"status": {},
"authenticationInfo": {
"principalEmail": "[email protected]",
"serviceAccountKeyName": "//iam.googleapis.com/projects/anon-terraform-prod/serviceAccounts/[email protected]/keys/cbf7d9769c83853e97a2dc08240872c54de991f2"
},
"requestMetadata": {
"callerIp": "2600::1",
"callerSuppliedUserAgent": "apitools Python/3.6.8 gsutil/4.61 (darwin) analytics/enabled interactive/True command/versioning google-cloud-sdk/339.0.0,gzip(gfe)",
"requestAttributes": {
"time": "2021-08-19T17:51:31.844550548Z",
"auth": {}
},
"destinationAttributes": {}
},
"serviceName": "storage.googleapis.com",
"methodName": "storage.buckets.update",
"authorizationInfo": [
{
"resource": "projects/_/buckets/s3.anon.net",
"permission": "storage.buckets.update",
"granted": true,
"resourceAttributes": {}
}
],
"resourceName": "projects/_/buckets/s3.anon.net",
"request": {
"bucket": "s3.anon.net",
"metadata": {
"versioning": {
"enabled": true
},
"name": "s3.anon.net",
"id": "s3.anon.net"
},
"projection": "NO_ACL"
},
"response": {
"etag": "CAM=",
"metageneration": "3",
"storageClass": "STANDARD",
"updated": "2021-08-19T17:51:31.954Z",
"timeCreated": "2018-07-20T00:46:43.093Z",
"id": "s3.anon.net",
"versioning": {
"enabled": true
},
"iamConfiguration": {
"uniformBucketLevelAccess": {}
},
"projectNumber": "417127842024",
"name": "s3.anon.net",
"locationType": "multi-region",
"location": "US"
},
"resourceLocation": {
"currentLocations": [
"us"
]
}
},
"insertId": "slfn9ddc3sc",
"resource": {
"type": "gcs_bucket",
"labels": {
"location": "us",
"bucket_name": "s3.anon.net",
"project_id": "anon-logs-prod"
}
},
"timestamp": "2021-08-19T17:51:31.834523489Z",
"severity": "NOTICE",
"logName": "projects/anon-logs-prod/logs/cloudaudit.googleapis.com%2Factivity",
"receiveTimestamp": "2021-08-19T17:51:32.286951460Z"
}
Disable Object Versioning:
{
"protoPayload": {
"@type": "type.googleapis.com/google.cloud.audit.AuditLog",
"status": {},
"authenticationInfo": {
"principalEmail": "[email protected]",
"serviceAccountKeyName": "//iam.googleapis.com/projects/anon-terraform-prod/serviceAccounts/[email protected]/keys/cbf7d9769c83853e97a2dc08240872c54de991f2"
},
"requestMetadata": {
"callerIp": "2600::1",
"callerSuppliedUserAgent": "apitools Python/3.6.8 gsutil/4.61 (darwin) analytics/enabled interactive/True command/versioning google-cloud-sdk/339.0.0,gzip(gfe)",
"requestAttributes": {
"time": "2021-08-19T17:50:00.957623571Z",
"auth": {}
},
"destinationAttributes": {}
},
"serviceName": "storage.googleapis.com",
"methodName": "storage.buckets.update",
"authorizationInfo": [
{
"resource": "projects/_/buckets/s3.anon.net",
"permission": "storage.buckets.update",
"granted": true,
"resourceAttributes": {}
}
],
"resourceName": "projects/_/buckets/s3.anon.net",
"request": {
"bucket": "s3.anon.net",
"projection": "NO_ACL",
"metadata": {
"versioning": {},
"name": "s3.anon.net",
"id": "s3.anon.net"
}
},
"response": {
"id": "s3.anon.net",
"metageneration": "2",
"versioning": {},
"locationType": "multi-region",
"iamConfiguration": {
"uniformBucketLevelAccess": {}
},
"updated": "2021-08-19T17:50:01.276Z",
"timeCreated": "2018-07-20T00:46:43.093Z",
"storageClass": "STANDARD",
"location": "US",
"etag": "CAI=",
"projectNumber": "417127842024",
"name": "s3.anon.net"
},
"resourceLocation": {
"currentLocations": [
"us"
]
}
},
"insertId": "m746z2e4p8ig",
"resource": {
"type": "gcs_bucket",
"labels": {
"project_id": "anon-logs-prod",
"bucket_name": "s3.anon.net",
"location": "us"
}
},
"timestamp": "2021-08-19T17:50:00.944333981Z",
"severity": "NOTICE",
"logName": "projects/anon-logs-prod/logs/cloudaudit.googleapis.com%2Factivity",
"receiveTimestamp": "2021-08-19T17:50:01.746774237Z"
}