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

Connect sources

Register an authenticated connection to a source so DataOS can reach it without moving the data.

Before DataOS can read or transform your data, it needs a registered, authenticated connection to the source. This is the first step of understanding a source: you make it reachable, then you scan and explore it. This page shows how to check whether a connection already exists and how to create one if it does not.

A data connection in DataOS is two Resources working together:

  • Secret stores credentials (username, password, API keys, certificates) in an encrypted vault. Credentials never sit in manifests or code. See Secret in References.

  • Depot connects DataOS to the external system and references the Secret for authentication. A Depot holds the connection details: where the source is and how to reach it.

    See Depot in References.

Data connection is not the same as an engine.

A data connection (Secret + Depot) answers: where does the source data live, and how do we authenticate to it? It makes an external system reachable inside DataOS without moving data.

An engine (Snowflake, Databricks, Postgres, Trino, Spark, SQL Server, Microsoft Fabric, Amazon Redshift, or Amazon Athena) answers: where do transformations run, and where do outputs land? You configure an engine later, in Productize → Connect engine.

The same system can play both roles. A Snowflake account can be a Depot (read source tables) and the engine (run transforms). Each role is configured separately.

Before you begin

  • Ensure the DataOS CLI is installed and initialized. See CLI setup.

  • Ensure you have permissions to create Secrets and Depots. A user with the Tenant Admin, Data Admin, or Data Developer Tenant role can create a Depot. Check with dataos-ctl user get, or ask your administrator. Without the right role, applying a Secret or Depot fails with a permission error.

1. Check whether a connection already exists

Many teams share Depots, so a connection to your source may already be live. Do not create a duplicate.

List every Depot in your tenant:

If a Depot for your source is active, note its name and use it directly through its Uniform Data Link (UDL): dataos://[depot-name]/[source-path]?purpose=[purpose]. If you don't own the Depot, request a Can Use grant from its owner or a Data Admin first. Skip the rest of this page and go to Scan metadata or Explore data.

You can also check in the UI: open Datasets in the left navigation and look for your source in the source tree. See Datasets for the walkthrough.

If no Depot covers your source, continue.

2. Create a Secret

A Secret holds the credentials DataOS uses to authenticate. The fields depend on the source; for source-specific examples, see Secret setup guides in References.

Write the manifest:

For file-based credentials (a BigQuery JSON key), use secret.files instead of secret.data. A Snowflake RSA key pair stays in secret.data: set auth_mode: key-pair and paste the private key inline under key:.

Apply and confirm:

A STATUS of active means it is ready. Note the name; the Depot references it next.

3. Create a Depot

A Depot registers the source inside DataOS and references the Secret. Once active, DataOS addresses it through a UDL with two parts: the dataset address dataos://[depot-name]/[source-path], and a ?purpose=<label> parameter that tells the Depot which of its Secrets to use for the connection. Every tool in DataOS uses this address, so there are no credentials at the point of use.

The Depot name must be under 48 characters and match [a-z]([a-z0-9]*)?: lowercase letters and digits only, starting with a letter. Hyphens, underscores, and uppercase are not allowed.

The secrets block ties the Depot to the Secret. A single Depot can have several Secrets attached, each representing a different purpose (a permission context, for example full access, masked or read-only access, or limited access).

A purpose is a label you choose, and each label must be unique within a Depot. rw, scan, and query are the common conventions; any other label, such as full or masked, is a custom one:

Purpose
Typical use

rw

Use this when read-write access is required and permitted.

scan

A common label for a metadata or schema-discovery credential. Metadata pipelines in Scan metadata use ?purpose=rw, not scan.

query

Use this when you only need to query and explore data.

full

Custom label: the credential has complete access to the data source.

masked

Custom label: the credential masks some of the data.

What a credential can actually do (read, write, see masked data, or nothing) is set by the source system's own roles and policies.

Snowflake example

Reuse the same Secret for all three, or split them if your source needs different credentials per operation.

Apply the Depot:

For manifests covering other sources (S3, BigQuery, PostgreSQL, Kafka, and others), see supported Depots in References.

4. Verify the connection

A STATUS of active means the Depot Service has registered it. You now reference data through the UDL. For the Snowflake example configured for SALES_DB, the orders table in the public schema, read with the query credential, is:

Use this address in scans, ingestion, transformations, and Workbench. Change the purpose value to pick a different Secret for the same dataset.

Next

The source is connected. If its metadata is not yet discoverable in DataOS, scan it. Otherwise, explore the data.

Troubleshooting

Permission error when applying a Secret or Depot

Ask your administrator to assign the required role, then retry. Creating a Depot needs the Tenant Admin, Data Admin, or Data Developer Tenant role.

Depot status is not active after applying

The Depot failed to validate the connection. Inspect it:

Common causes: wrong credentials in the Secret, an incorrect host/port/database in spec.spec, or a network restriction between DataOS and the source.

Secret deletion blocked by a dependent Depot

Delete the Depot first, then the Secret:

Last updated

Was this helpful?