Approval policies for extensions

Updated at:

Approval policies for extensions control operations such as deployment, data backfill, and download. When an extension returns a warning and the risk response is configured to require approval, the operation must be approved according to the associated policy. This topic describes how to configure approval policies.

Limitations

  • This feature is available only in DataWorks Enterprise Edition. For more information, see DataWorks: Features by edition.

  • Only Alibaba Cloud accounts and RAM users with the AliyunDataWorksFullAccess permission can select all workspaces as managed workspaces. This means that the defined approval policies take effect in all managed workspaces. For more information, see View RAM user permissions and Manage RAM user permissions.

  • A Workspace Administrator can create policies only for their own workspace.

Access approval policies

  1. Log on to the DataWorks console. In the target region, click Data Governance > Security Center in the left-side navigation pane. On the page that appears, click Go to Security Center.

  2. In the left-side navigation pane of Security Center, open the section for applications and approvals, and then open the approval policy list.

Create an approval policy

  1. In the approval policy list, click Create an approval policy to open the policy creation page.

  2. Configure the basic information for the approval policy.

    • Enter a policy name that identifies its purpose, such as "Approval for high-risk operations".

    • For the approval type, select Extension. Select the specific operation event in the risk identification rules.

    • Enter a rule description that explains the purpose of the policy or its approval requirements.

    • Set the workspace scope to Global or a non-global scope. For a non-global policy, specify the target workspaces.

    • Select notification methods as needed. Supported methods include SMS, email, DingTalk chatbot webhook, and WebHook.

    Keep the following in mind when you configure the workspace scope:

    • Only an Alibaba Cloud account or a RAM user with the AliyunDataWorksFullAccess permission can select the global workspace.

    • A Workspace Administrator can only select the workspace to which they belong.

    • For global-level extensions, which are extensions that take effect in all workspaces when enabled, if a specific workspace has not configured a response policy for this extension, the operation is allowed by default and the process is not blocked. For example, if an extension for a pre-data-download event is enabled, data download operations in all workspaces are blocked until the extension returns a result. Only when the extension returns a warning status:

      • If the workspace where the download was initiated has a configured approval policy, the approval flow defined for that workspace is automatically triggered.

      • If the workspace does not have a configured approval policy, the download proceeds without requiring approval.

  3. Configure approval nodes.

    In the Configure Processing Links section, you can define the approver and role for each approval node. Keep the following in mind when you configure the nodes:

    • Approval flow: Once configured, the approval flow proceeds sequentially through the defined nodes from top to bottom. The system notifies an approver at each node only after the approver at the preceding node grants approval.

    • Approvers: For each node, you can select a different type of approver. Supported types include: DataWorks workspace-level role, DataWorks workspace member, and Alibaba Cloud account.

  4. Click Commit.

View associated extensions

In the left-side navigation pane of Security Center, choose Security policy > Risk identification rules. Select the target operation event, find the extension, and click Configure Response. When you configure a risk response, you can view or associate an existing approval policy and adjust policy priorities.

Related documents

For data backfill scenarios, see Data backfill approval and execution.