Repository navigation
[Docs] Point cloud storage setup at credentials and external locations - #2182
Draft
timothyw553 wants to merge 4 commits into
Draft
timothyw553 wants to merge 4 commits into
timothyw553 wants to merge 4 commits into
Conversation
…entials Storage credentials only accepted aws_iam_role, so ADLS and GCS storage could be reached only through the legacy adls.* and gcs.* entries in server.properties, which need a service maintainer and a restart and keep cloud secrets on the server host. Part of unitycatalog#47. Add azure_service_principal {directory_id, application_id, client_secret} and gcp_service_account_key {email, private_key_id, private_key} to the credential API, with the same names as Databricks Unity Catalog, store them in the existing typed JSON blob of uc_credentials, and return the identity without the secret on get and list. A create request must carry exactly one cloud identity and an update at most one, and the cloud cannot change afterwards: external locations bind a credential to URLs of its cloud, so creating or updating an external location now rejects a credential that cannot reach the URL (file: URLs accept any). The CLI gets --azure_directory_id, --azure_application_id, --azure_client_secret and --gcp_service_account_key_file. uc_credentials.credential_type is an enum (H2, MySQL) or a check constraint (PostgreSQL) in the versioned schema, so schema step V3 widens it to the new values; an existing database takes it through bin/start-uc-server --upgrade-schema. The effect files come from build/sbt updateSchemaDumps on all three databases. Vending through these credentials still returns UNIMPLEMENTED; the next PRs in the stack add it for Azure and GCS. Co-authored-by: Isaac <[email protected]> Signed-off-by: Timothy Wang <[email protected]>
A path under an external location whose credential is an Azure service principal returned UNIMPLEMENTED; only the legacy adls.* per-account configuration in server.properties could vend for ADLS. Part of unitycatalog#47. The Azure vendor now signs in as the storage credential's service principal and issues a user delegation SAS scoped to the requested path, as it already did for the per-account configuration, which stays the fallback for paths no external location covers. Like the AWS master role assuming the storage role, the sign-in happens on every vend, so a rotated client secret takes effect immediately. The server credential cache keys an entry on the credential's cloud identity: the role ARN and external ID for AWS, and the application and directory ID for Azure, so a credential moved to another service principal is never served a cached token. A GCP storage credential still fails as before; the next PR adds it. Docs: a "Deploy for Azure" guide mirroring the AWS one, with the migration from adls.* configuration, and the cache binding for Azure in the configuration page. Co-authored-by: Isaac <[email protected]> Signed-off-by: Timothy Wang <[email protected]>
A path under an external location whose credential is a GCP service account key returned UNIMPLEMENTED; only the legacy gcs.* per-bucket configuration in server.properties could vend for GCS. The GCP vendor now signs in with the storage credential's service account key and issues an OAuth token downscoped to the requested path, as it already did for the per-bucket configuration, which stays the fallback for paths no external location covers. The private key is parsed when a credential is created or updated, so a key that cannot vend is rejected with INVALID_ARGUMENT instead of being stored. The server credential cache binds a GCP credential by its service account email and private key ID. Docs: a "Deploy for GCP" guide mirroring the AWS one, with the migration from gcs.* configuration, and the cache binding for GCP in the configuration page. Co-authored-by: Isaac <[email protected]> Signed-off-by: Timothy Wang <[email protected]>
With Azure and GCP storage credentials in place, the per-bucket s3.*, adls.* and gcs.* settings in server.properties are the legacy way to reach cloud storage for every cloud, not just S3. Part of unitycatalog#47. Label them legacy in server.properties and in the Spark and XTable integration guides, which now send readers to the Deploy for AWS, Azure and GCP pages first. The CLI guide's credential section covers creating a credential for each cloud and rotating its secret with update. The Azure and GCP guides note that a database from an older release needs --upgrade-schema before the new credential types can be stored. Co-authored-by: Isaac <[email protected]> Signed-off-by: Timothy Wang <[email protected]>
This was referenced Nov 11, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🥞 Stacked PR
Use this link to review incremental changes.
PR Checklist
docsis updatedDescription of changes
Part of #47. PR 4 of 4 in a stack; depends on PR 3:
Motivation
With Azure and GCP storage credentials in place, the per-bucket
s3.*,adls.*andgcs.*settings inserver.propertiesare the legacy way to reach cloud storage for every cloud, not just S3. The docs still presented them as the way to set up cloud storage.Changes
etc/conf/server.properties: the legacy comment now coversadls.*andgcs.*too, and points at the deployment guides. No key is renamed or removed; a legacy config is still used for a bucket that no external location covers.docs/integrations/unity-catalog-spark.mdandunity-catalog-xtable.md: send readers to Deploy for AWS / Azure / GCP first; the per-bucket settings stay as the legacy alternative.docs/usage/cli.md: the credential section covers creating a credential for each cloud (tabs) and a new "Update a Credential" section for secret rotation.docs/server/azure.mdandgcp.md: a database created by an older release needsbin/start-uc-server --upgrade-schemabefore the new credential types can be stored (schema step V3 from PR 1).Compatibility
Documentation and comments only; no behavior change.
This pull request and its description were written by Isaac.