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.
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:
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
SELECTon the source schema.The same PostgreSQL server used for CDC additionally needs
wal_level = logicalenabled and theREPLICATIONuser attribute.The same server used for metadata and lineage ingestion additionally needs the
pg_stat_statementsextension andpg_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
Related docs
Secrets and projections - How Nilus resolves the credential that these grants apply to: Depot inference, explicit projection, or repo-auth
Batch pipeline config -
source.optionsandsink.optionsreference for batch pipelinesCDC pipeline config -
source.optionsandsink.optionsreference for CDC pipelinesTroubleshooting - Triage path for connection, authentication, and authorization failures
Last updated
Was this helpful?