(resource:*) or all operations (action:*) to a sub-user or collaborator, data security risks exist due to an excessive permission scope.{"version": "2.0","statement": [{"action": [//Create a file processing job"ci:CreateFileProcessJobs",//Create a file preview job"ci:CreateDocProcessJobs",//Create a media job"ci:CreateMediaJobs",],"effect": "allow","resource": ["qcs::ci:ap-beijing:uid/1250000000:bucket/examplebucket-1250000000/doc/*"]}]}
Name | Description |
version | Policy syntax version, which is 2.0 by default. |
effect | There are two cases: allow (permission) and deny (explicit deny). |
resource | Authorized data to be operated can be any resources, resources with a specified path prefix, resources with a specified absolute path, or their combinations. The rule is: qcs::ci:{region}:uid/{appid}:bucket/{bucket}/{path} List several typical authorization scenarios: 1. Allow access to all objects: "*" 2. Allow access to specified objects: "a/a1.txt", "b/b1.txt" 3. Allow access to objects with specified prefixes: "a*", "a/*", "b/*" Note:If the path is in Chinese, keep typing in Chinese. For example examplebucket-125000000/folder/filename.txt. |
action | Here refers to the API of CI. Specify a combination of one or a sequence of operations or all operations ( *) as required, such as action being ci:CreateMediaJobs. Please note it is case-sensitive. |
condition |
CreateMediaJobs. To grant its operation permission, the policy action should be ci:CreateMediaJobs. cos:GetObject Obtain COS resource permissions,ci:CreateMediaJobs Create a task,ci:CreateMediaTemplate Create a template,ci:UpdateMediaTemplate Update a template,ci:DescribeMediaJob Query a task,ci:DescribeMediaJobs Task list query,ci:CancelMediaJob Task cancellation.{"version": "2.0","statement": [{"action": ["cos:GetObject","ci:CreateMediaJobs","ci:CreateMediaTemplate","ci:UpdateMediaTemplate","ci:DescribeMediaJob","ci:DescribeMediaJobs","ci:CancelMediaJob"],"effect": "allow","resource": ["qcs::ci:ap-beijing:uid/1250000000:bucket/examplebucket-1250000000/*"]}]}
Feedback