cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Why External Secrets in Unity Catalog Matter

pradeep_singh
Honored Contributor III

Modern data and AI workloads rarely operate in isolation. Pipelines connect to operational databases. Notebooks call third-party APIs. Agents invoke external tools. Applications use tokens, passwords, certificates, and API keys to reach the systems around them.

Every one of those integrations creates the same uncomfortable question: where should the credential live?

Many organizations already have a cloud-standard answer, such as AWS Secrets Manager or Azure Key Vault. But when a workload moves into a data platform, teams often copy the same secret into a platform-specific store. That creates two sources of truth, two permission models, two audit trails, and a rotation process that can fail in several places.

External secrets in Unity Catalog are designed to remove that duplication. The secret value remains in the external cloud secret manager, while Unity Catalog presents it as a governed securable object that Databricks workloads can discover and reference.

That sounds like a small integration feature. It is actually an important step toward treating credentials as governed infrastructure rather than application configuration.

Without an external-secret integration, a common operating model looks like this:

1. A security or platform team creates a credential in the enterprise secret manager.
2. A data team copies that credential into Databricks.
3. Permissions are configured again in a second system.
4. Rotation requires both copies to be updated in the correct order.
5. Auditors must reconcile cloud logs, workspace configuration, code usage, and a separate access model.

This model works until it does not. A missed rotation can stop a production pipeline. An old copy can remain active after the source secret changes. A broad permission inherited in one platform can undermine a narrow policy in another. An incident investigation can become a manual exercise in joining events across tools.

The technical problem is duplication. The customer problem is operational uncertainty: teams cannot easily prove that the right workload used the right credential under the right policy at the right time.

What external secrets change

External secrets separate the secret's system of record from its governance and consumption interface.

- The cloud secret manager remains responsible for storing and changing the value.
- Unity Catalog provides a three-level name, such as `catalog.schema.secret`, and governs access with privileges including `READ SECRET` and `REFERENCE SECRET`.
- Databricks retrieves the current value from the external manager when a workload reads it instead of storing the value in Unity Catalog.
- Databricks audit events retain the Databricks user identity, while cloud-side logs record the connection's service credential.

This gives customers a practical bridge between cloud security controls and data-platform governance. Existing secret-management investments remain in place, while data and AI teams gain a consistent Unity Catalog interface.

Thank You
Pradeep Singh - https://www.linkedin.com/in/dbxdev
2 REPLIES 2

slowder
Contributor

You hit on the core operational friction that teams face when scaling data platforms. The "copy-paste" approach to secrets management is a common source of technical debt, and it inevitably leads to the audit and rotation headaches you described.

Moving the credentials system of record to a cloud-native manager, while using Unity Catalog as the governance layer, is a significant shift in how we handle infrastructure. By treating secrets as securable objects, you move away from managing individual configuration files and toward a model where access is granted based on identity and policy.

To make this shift stick, you have to clean up the legacy patterns. I often suggest running automated scans across your codebase to identify "unapproved" secret handling. You can use regex patterns in your CI/CD pipelines or IDEs to flag common anti-patterns before they reach production:

* Hardcoded strings: Look for patterns matching common credential formats (e.g., `(?i)(password|api_key|secret|token)\s*[:=]\s*['"][^'"]{8,}['"]`).
* Legacy scope references: Search for calls to `dbutils.secrets.get(scope="...", key="...")` that point to Databricks-backed secret scopes rather than the new Unity Catalog references.
* Environment variable assignments: Flag code that explicitly exports sensitive keys into environment variables, which can often be logged or l e a k e d (you cannot use that word without spaces in this site any more) in process dumps.

The goal is to move from manual review to a "fail-fast" model. If a developer tries to commit code that references a legacy secret scope, the build should fail and point them to the new Unity Catalog securable object.

This approach is a clear improvement over the manual reconciliation processes that many organizations are currently forced to maintain. It turns a security policy into a mechanical constraint, which is the only way to ensure consistency at scale.

Patterns travel. Practices depend. Build it governed, ship it boring.
โ€” Shannon Lowder, Blueprint Technologies | https://bpcs.com/blog | https://shannonlowder.com

pradeep_singh
Honored Contributor III

๐Ÿ‘

Thank You
Pradeep Singh - https://www.linkedin.com/in/dbxdev