You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
10-POLICY
0010-00000011
Copy page
Download PDF
0010-00000011
Problem description​
Invalid bucket policy configuration.​
Root cause​
When setting the bucket policy, a single policy contains both Resource and NotResource configurations.​
Example​
When configuring the bucket policy, a single policy contains both Resource and NotResource configurations.​
​
PUT /?policy HTTP/1.1​
Host: <Bucket name>.<TOS endpoint>​
Date: Fri, 30 Jul 2021 13:59:18 GMT​
Authorization: authorization xxx​
​
{​
"Version": "2012-10-17",​
"Statement": [​
{​
"Sid": "1",​
"Effect": "Allow",​
"Principal": "*",​
"Action": ["tos:*"],​
"Resource": ["trn:tos:::bucketname/*"],​
"NotResource": ["trn:tos:::bucketname/*"]​
} ​
]​
}​
​
Solution​
Refer to Bucket policy templates and parameter description to construct the bucket policy correctly, ensuring a single policy contains only either Resource or NotResource configuration.​
Last updated: 2025.10.11 17:59:22