Control access to ClickHouse Enterprise Edition data
Use DataWorks Security Center to request and approve table-level and column-level permissions for ClickHouse Enterprise Edition. This topic explains how to prepare metadata and credentials, submit and approve requests, and view request and approval records.
Prerequisites
Configure and run a metadata collection task for the target ClickHouse Enterprise Edition instance. You cannot select an instance until DataWorks collects its metadata.
In Identity Credentials in Security Center, configure an administrator identity for the target instance and associate exactly one ClickHouse database account for this instance with the requester. Associate the database account that will use the permissions. A mismatch between the associated account and the request principal can cause authorization to fail after approval.
Permission workflow
The requester selects the required tables or columns and submits a request. The approver reviews and processes the request in My approval tasks. The requester can check the approval result in My application form. After submission, confirm that a request was created and check its approval and authorization results. Finally, use the associated database account to perform the intended operation on the requested resources and verify that the permissions took effect.
Permission requests for ClickHouse Enterprise Edition are permanent. Neither the requester nor the approver can change the validity period. Security Center does not support direct grants or permission audits for this engine.
Open Data Access Control
In the DataWorks console, open Security Center. Under Data Platform Security, select Data Access Control.
Request permissions
On the Permission Application tab, select ClickHouse Enterprise Edition.
Select the ClickHouse instance, the Database, and then the target tables. Changing the instance or database clears the previously selected resources. Select the target tables again after switching.
Select the required table permissions. To restrict the request to specific columns, expand the table and select permissions for those columns. Table permissions include
describe,select,alter,update,drop. Column permissions includeselectandupdate. Select from the permissions available on the page. To request select or update only for specific columns, do not also select the same permission at table level. Selecting a table-level permission clears and disables the corresponding column-level selections.In the application information, confirm the user: select the current login account for yourself, or choose the target user when applying on behalf of others. Confirm that this user has an associated ClickHouse database account. Enter a reason for the request and click Apply for permission to submit it. Select at least one table or column permission for every selected table. After the submission success message, check My Requests to confirm that the request was created.
Approve permissions
Open My approval tasks. On the Data Access Control tab, filter pending tasks for ClickHouse Enterprise Edition.
Open Approval details for the request. Review the instance, database, and table permissions. Expand a table to review its column permissions. Also check the grantee, request reason, and permanent validity period. Remove permission items that should not be granted to narrow the approval scope, retaining at least one approval object.
Enter your approval comments, then approve or reject the request. Return to the task list to check the result, then review the approval history in the details.
View permission requests and approval records
Requesters can check request progress and approval results in My application form. Open the details to inspect resources, the grantee, approval history, and any failure reason. You can withdraw a request only while it is pending approval. Completed requests cannot be withdrawn. Permanent requests have no renewal option.
Approvers can set the task status to All in My approval tasks to view processed requests. If a failure reason appears, investigate the authorization step. The approval status alone does not prove that permissions were granted successfully.
Notes and limitations
This workflow supports table and column permissions for ClickHouse Enterprise Edition. It does not provide standalone catalog, database, view, or row-level permission requests. The database selector locates the tables to request.
Select only the permission options returned by the page. Table and column permissions have different scopes. Do not broaden a request for selected columns by choosing the same permission at table level.
Keep the account association and target resource information accurate. Changing the associated account after submission can cause the request authorization to fail. Check the mapping before submitting a new request.
Troubleshooting
Symptom | What to do |
No instances, or an instance cannot be selected | Check that you are in the region of the target instance and that your account can list instances. If the instance exists but cannot be selected, configure and run its metadata collection task, then reopen the request page. |
Instance or metadata loading fails | For an instance loading error, check permissions and network connectivity, then reopen the page. For a metadata loading error, refresh the page and try again. |
Database loading fails, or only some databases appear | If all database sources fail, select the instance again. When only some sources fail, the page retains databases loaded from the successful sources. Check metadata collection for the instance if the required database is missing. |
Column loading fails, or column metadata is unavailable | If column loading fails, deselect the table and select it again. Without column metadata, you can request only table permissions. Collect column metadata before requesting column permissions. |
Submission fails | Resolve the required-field, requested-resource, or metadata issue shown on the page. The form content is retained after failure. Before resubmitting, check My Requests for an existing request to avoid duplicate submissions. |
Approval is complete but access still fails | Open the request details and check the failure reason. Verify that you are using the ClickHouse database account associated with the requester. If the account mapping changed after submission, ask the administrator to check it, then submit a new request after correcting the mapping. Approval alone does not confirm that permissions took effect. |