Area: Product Issues
Sub-Area: Permissions & Access Control, Ingestion Sources
Applies to: OSS + Cloud
Issue
You want some users to see ingestion sources, run history and logs. You do not want to give them the Manage Metadata Ingestion privilege, because it also lets them create, edit, delete and run sources.
You Might Be Asking
- How do I let users see ingestion sources and logs without giving them edit access?
- Is there a way to grant read-only access to the Data Sources menu in DataHub?
- What policy setting controls view-only permissions for ingestion sources?
- Can I restrict ingestion access so users can only view, not modify, data source configurations?
Cause
By default, only users with Manage Metadata Ingestion can see ingestion sources on the Data Sources page.
On DataHub Cloud, per-source ingestion privileges are a feature that DataHub turns on for your instance. You cannot turn it on yourself. With this feature on, a policy on the Ingestion Source resource type controls Edit Entity, Delete and Execute Entity for each source.
View access does not work per user or per source:
- You cannot limit view access to ingestion sources to specific users or sources.
- Policies that apply to all resource types then also cover ingestion sources. This includes the default policy for all users, so the Data Sources page can show for every user.
On self-hosted open source DataHub, GMS does not read the VIEW_INGESTION_SOURCE_PRIVILEGES_ENABLED setting. Setting it has no effect there. The docs list it as a prerequisite for DataHub Core, but open source DataHub has no view-only option for ingestion sources.
Solution
- On self-hosted open source DataHub, give Manage Metadata Ingestion only to the users who need the Data Sources page. No view-only option exists there.
- On DataHub Cloud, to give users the page without Manage Metadata Ingestion, ask DataHub Support to turn on ingestion source privileges for your instance.
- Before you ask, note that you cannot limit view access to ingestion sources to specific users or sources.
- Before the feature is on, keep credentials in secrets, not inline in recipes.
- Before the feature is on, review the policies that apply to all resource types. Otherwise the Data Sources page shows for users you did not plan.
- With the feature on, to control who can change or run a source, create a policy on the Ingestion Source resource type. Select Edit Entity, Delete or Execute Entity, and select the sources.
- Do not give Manage Metadata Ingestion to users who must not change sources. It gives full control of every source.
The policy options and the caution on policies for all resource types are in Resource-Specific Policies.
Related Documentation
Tags: ingestion, view-only, permissions, metadata-policy, access-control, ingestion-source, data-sources, privilege