Add Depots & Secrets
Connect the Tenant to external systems with Secrets and Depots.
Before any Data Product workload or Data Product in the Tenant can read or write external data, two resources must exist for each source system:
Secret: stores the credentials (username, password, keys) as encrypted key-value pairs. No Data Product workload reads these values directly.
Depot: declares the connection endpoint and references the Secret. Data Product workloads reference only the Depot name by its Uniform Data Link (UDL); credentials are injected at runtime.
As Tenant admin you create these, especially the ones holding privileged credentials that standard users should not see. A developer can create their own where they hold the credentials and policy permits, but the shared, sensitive connections are yours to own.
Steps
Create Secret
A Secret manifest carries all the credentials the Depot needs. When you write one, a few fields matter most:
nameis a unique name within the Tenant. You reference it from the Depot'sspec.secrets[].idin the next step, as<tenant>:<secret-name>, so it must match exactly, including case.layeris set touserfor Tenant-scoped Secrets. Omitting it causes a validation failure.secret.typeis alwayskey-valuefor data source credentials.secret.datais the map of credential key-value pairs. The keys differ per source type, and BigQuery usessecret.filesinstead ofsecret.data. Use the templates below as a guide. All values must be strings, so wrap numeric values in quotes (for example,PORT: "5432").
Replace every <PLACEHOLDER> with your actual values, then save and apply the manifest. You reference the Secret name in the next step.
Apply Resources
Apply the Secret first, then the Depot. DataOS validates the Secret reference at apply time, so the Secret must exist before the Depot is applied.
# PostgreSQL starter bundle (required for sanity validation)
dataos-ctl resource apply -f postgres-cred.yaml
dataos-ctl resource apply -f postgresdepot.yaml
# Snowflake starter bundle (required for sanity validation)
dataos-ctl resource apply -f snowflake-cred.yaml
dataos-ctl resource apply -f snowflakedepot.yamlFor other sources, follow the same pattern:
dataos-ctl resource apply -f <source>-cred.yaml
dataos-ctl resource apply -f <source>depot.yamlVerify connections
Confirm each Secret and Depot is active before moving on.
# Check Secrets
dataos-ctl resource get -t secret -n postgres-cred
dataos-ctl resource get -t secret -n snowflake-cred
# Check Depots
dataos-ctl resource get -t depot -n postgresdepot
dataos-ctl resource get -t depot -n snowflakedepotFor a detailed status of any resource:
dataos-ctl resource get -t depot -n <depot-name> -dBest practices
Own the privileged sources. Connections holding production or sensitive credentials should be created and held by you, not scattered across developer-owned Secrets.
One Secret, scoped purposes. A Depot can attach a Secret per purpose (
rw,scan,query); use scoped credentials where the source supports them.Rotate and re-apply. Rotate credentials on a schedule and re-apply the Secret; nothing downstream needs to change because Data Product workloads reference the Depot, not the Secret.
Grant use, do not share. Developers reach a Depot through a
Can Usegrant, not by holding its credentials. See Manage access.
Once a source is connected, grant the developers who need it Can Use on the Depot. That, and the ApplicationUser mechanics, are in Manage access.
Troubleshooting
Last updated
Was this helpful?