CXH-2165: fix Databricks account host for Azure and GCP tenants - #53
CXH-2165: fix Databricks account host for Azure and GCP tenants#53al-conductorone wants to merge 3 commits into
Conversation
…ulated The account-hostname field defaulted to accounts.cloud.databricks.com, so getAccountHostname always returned that default and the per-cloud calculation in GetAccountHostname never ran. Azure/GCP tenants had to pass --account-hostname manually or OAuth token requests hit the wrong host and failed with invalid_request. Dropping the default lets the calculation run when the field is unset; AWS still resolves to accounts.cloud.databricks.com so existing configs are unaffected.
The gcpHost constant was gcp.databricks.net, which is wrong on both counts it is used for: it never matches a real GCP workspace hostname (those end in gcp.databricks.com) and it builds a non-existent account console host. Official Databricks GCP docs use accounts.gcp.databricks.com and workspace URLs ending in gcp.databricks.com. With the account-hostname default dropped, GCP tenants now route through this calculation, so the constant must be correct.
Connector PR Review: CXH-2165: fix Databricks account host for Azure and GCP tenantsBlocking Issues: 0 | Suggestions: 1 | Threads Resolved: 0 Review SummaryThe full PR diff was scanned for security and correctness. This PR corrects the GCP account host constant ( Security IssuesNone found. Correctness IssuesNone found. Suggestions
Prompt for AI agents |
Connector PR Review: CXH-2165: fix Databricks account host for Azure and GCP tenantsBlocking Issues: 0 | Suggestions: 1 | Threads Resolved: 0 Review SummaryThe full PR diff was scanned for security and correctness. This PR removes the hardcoded accounts.cloud.databricks.com default so the account API host is derived from the workspace hostname, fixes the GCP suffix (gcp.databricks.net to gcp.databricks.com), and migrates deprecated trait-level profile/status setters (WithGroupProfile/WithRoleProfile/WithUserProfile/WithStatus) to the resource-level equivalents (WithResourceProfile/WithResourceStatus/GetProfile). I verified against the vendored baton-sdk v0.20.5 that all new APIs exist and that GetProfile falls back to trait-level profiles, so the migration is backward-compatible with previously synced data. A new regression test covers the Azure/GCP/AWS hostname calculation. No security issues found and no blocking correctness issues. Security IssuesNone found. Correctness IssuesNone found. Suggestions
Prompt for AI agents |
Azure and GCP Databricks tenants now connect and sync automatically instead of failing, by calculating the correct account address from the workspace address rather than always defaulting to the AWS one.