Area: Product Issues
Sub-Area: Ingestion Source Access Control & Policy Configuration
Applies to: Cloud
Issue
You want some users or groups to run an ingestion source on demand. You don't want them to change the recipe, schedule or other settings, and you don't want to give them Manage Metadata Ingestion, because that privilege gives full control of every source.
You Might Be Asking
- Can I let a user run an ingestion source without letting them edit it?
- Does granting Execute on an ingestion source also grant Edit?
- Why can't my user see the Data Sources page after I gave them a policy on an ingestion source?
- Does Execute-only access hide the recipe from the user?
Cause
On DataHub Cloud, a Metadata policy on the Ingestion Source resource type lists four privileges: View Entity, Edit Entity, Delete and Execute Entity. For run-only access, three of them matter:
- Edit Entity: change the source.
- Delete: delete the source.
- Execute Entity: run the source on demand and cancel its runs.
Execute Entity does not grant Edit Entity or Delete.
Users who don't have Manage Metadata Ingestion only see the Data Sources page when DataHub has turned on ingestion source privileges for your instance. This feature is off by default, and you can't turn it on yourself.
On self-hosted open source DataHub, running, editing and deleting a source all require Manage Metadata Ingestion. Per-source Execute policies have no effect there, and setting VIEW_INGESTION_SOURCE_PRIVILEGES_ENABLED does nothing.
Solution
-
Ask DataHub Support to turn on ingestion source privileges for your instance.
-
Before the feature goes on, review your policies that apply to all resource types. Once the feature is on, those policies also cover ingestion sources, including the default read-only policies. The Data Sources page can then show for users you didn't plan for. See the caution in Resource-Specific Policies.
-
Go to Settings > Permissions, open the Policies tab, and click Create new policy.
-
For the policy type, choose Metadata.
-
Under Resource Type, select Ingestion Source. Under Resource, select the sources, or leave it empty to apply the policy to all ingestion sources.
-
Under Privileges, select Execute Entity. Leave Edit Entity and Delete unselected. You don't need View Entity for this.
-
Under Applies to, add the users or groups, then save the policy.
-
Sign in as a test user with this policy. Confirm that the run button works for the source, and that the source's menu shows View instead of Edit and that Delete is disabled.
Execute Entity lets a user run the source and cancel its runs. It does not let the user edit or delete the source.
Execute-only access does not hide the recipe. A user without Edit Entity can still open the source in View mode. Keep credentials in secrets. Do not put them inline in the recipe. See Managing secrets.
Only grant Edit Entity together with Execute Entity to trusted users. The docs note that this combination is the same code execution capability as Manage Metadata Ingestion, limited to those sources.
Related Documentation
Tags: ingestion, permissions, access-control, policies, execute-ingestion, resource-scoped-policies, ingestion-source, least-privilege