Custom policies for OOS
If system policies do not meet your business requirements, you can create custom policies to implement least-privilege access control for CloudOps Orchestration Service (OOS). Custom policies help you manage permissions in a fine-grained manner and improve resource access security.
What is a custom policy?
Resource Access Management (RAM) policies are classified into system policies and custom policies. Unlike system policies, custom policies are created, updated, and maintained by you.
-
After you create a custom policy, attach it to a RAM user, user group, or RAM role to grant the specified permissions.
-
You can directly delete a custom policy that is not attached to any principal. If a policy is attached to a principal, you must detach it before you can delete it.
-
Custom policies support version control. You can manage versions by using the version management mechanism provided by RAM.
References
Scenarios and sample custom policies
-
Sample policy 1: grants a RAM user the permissions to execute templates but not modify templates.
{ "Version": "1", "Statement": [ { "Action": [ "oos:List*", "oos:Get*", "oos:StartExecution", "oos:CancelExecution", "oos:NotifyExecution" ], "Resource": "*", "Effect": "Allow" } ] }
-
Sample policy 2: grants a RAM user the permissions to create and modify templates but not execute templates.
{ "Version": "1", "Statement": [ { "Action": [ "oos:List*", "oos:Get*", "oos:CreateTemplate", "oos:UpdateTemplate", "oos:ValidateTemplateContent" ], "Resource": "*", "Effect": "Allow" } ] } -
Sample policy 3: grants a RAM user the CloudOps Orchestration Service administrator permissions.
{ "Version": "1", "Statement": [ { "Action": "oos:*", "Effect": "Allow", "Resource": "*" }, { "Action": "ram:PassRole", "Resource": "*", "Effect": "Allow", "Condition": { "StringEquals": { "acs:Service": "oos.aliyuncs.com" } } } ] }
RAM authorization
Before you create a custom policy, we recommend that you review the permission control requirements and available permissions for OOS. For more information, see RAM authorization.