Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Roles and permissions

How Nilus's privilege requirements map to pipeline mode, not to a single fixed role, plus the minimum grants for each supported source and destination.

A Nilus pipeline connects to a source and a destination using whatever credential the Depot or connector resolves at runtime. That credential's underlying database or warehouse user needs a specific, minimal set of privileges: what Nilus actually does for that pipeline's mode, and nothing more.

This section is a provisioning reference for platform, database, and security administrators who need to grant those privileges correctly.

Not the same as Nilus: Access control

That page covers DataOS-level RBAC: who is allowed to create, edit, or run a type: nilus resource inside DataOS. This section covers a different layer: the SQL GRANTs or IAM roles the source and destination systems need to give the credential a Nilus pipeline actually connects with. Set up DataOS access there; provision the source and destination credentials here.

How privileges map to pipeline mode

Privilege requirements don't come from the connector alone. They come from what a given pipeline does with that connector, which is determined by spec.type and which side of the pipeline the Depot sits on:

Operation
Where it applies
What it typically needs

Read (batch or CDC source, initial snapshot)

Depot referenced in source.address

Connection/session access, plus SELECT-level read on the source schema, table, or collection

Write (batch or CDC sink)

Depot referenced in sink.address

Connection/session access, DML scoped to the incremental_strategy (append, merge, or replace), and table/schema creation if Nilus auto-creates the destination

CDC log or change-stream access

Source Depot on a type: cdc pipeline

A server-level capability beyond ordinary read access: WAL/logical replication on PostgreSQL, native CDC change tables on SQL Server, or cluster-wide change streams on MongoDB. Usually requires an admin to enable first

Metadata ingestion

Depot referenced in source.address on a type: metadata pipeline

Read access to catalog objects (tables, schemas, columns), plus connector-specific system tables for lineage, usage, and tags

Grant each credential only the permissions its pipelines need. Batch pipelines using source.address need no write grants, and pipelines without CDC need no replication privileges.

Same source, different pipeline types

The same connector, and even the same Depot, can appear in more than one pipeline type, and each type adds its own privilege on top of ordinary read access:

  • A PostgreSQL Depot used for a nightly batch extract only needs SELECT on the source schema.

  • The same PostgreSQL server used for CDC additionally needs wal_level = logical enabled and the REPLICATION user attribute.

  • The same server used for metadata and lineage ingestion additionally needs the pg_stat_statements extension and pg_read_all_stats.

Each guide below breaks its grants down the same way: read, write (by strategy), CDC prerequisites where the connector supports CDC, and metadata, ending in a permission matrix that maps every use case to the exact privileges it needs.

Connector-specific permission guides

Connector
Guide
CDC supported
Access model

PostgreSQL

Yes

SQL GRANT statements on roles

MongoDB

Yes

Role-based access control (createUser roles)

MS SQL Server

Yes

SQL GRANT statements, plus native CDC stored procedures

Snowflake

No

SQL GRANT statements on roles

Databricks

No

Unity Catalog GRANT statements, plus SQL warehouse UI permission

Kafka

No

Kafka ACLs (kafka-acls.sh)

Salesforce

No

Org permission sets / profiles (object and field-level Read)

Stripe

No

Restricted API key scoped to Read

  • Secrets and projections - How Nilus resolves the credential that these grants apply to: Depot inference, explicit projection, or repo-auth

  • Batch pipeline config - source.options and sink.options reference for batch pipelines

  • CDC pipeline config - source.options and sink.options reference for CDC pipelines

  • Troubleshooting - Triage path for connection, authentication, and authorization failures

Last updated

Was this helpful?