Skip to content

Commit 15ce41c

Browse files
hectorcast-dbclaude
andcommitted
Apply formatting and add NEXT_CHANGELOG entry
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0189bfe commit 15ce41c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
### Documentation
1212

1313
### Internal Changes
14+
* Move cloud-based credential filtering from individual credential providers into `DefaultCredentialsProvider`. Azure strategies are skipped on GCP/AWS hosts in auto-detect mode; GCP strategies are skipped on Azure/AWS hosts. When `authType` is explicitly set, cloud filtering is bypassed so the named strategy is always attempted regardless of host cloud.
1415

1516
### API Changes

databricks-sdk-java/src/test/java/com/databricks/sdk/core/DefaultCredentialsProviderTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ void testCloudFiltering_SkipsOnCloudMismatch() {
4747
assertThrows(DatabricksException.class, () -> provider.configure(config));
4848

4949
assertFalse(
50-
azureCli.wasCalled(),
51-
"azure-cli should be skipped on a GCP host in auto-detect mode");
50+
azureCli.wasCalled(), "azure-cli should be skipped on a GCP host in auto-detect mode");
5251
}
5352

5453
/**
@@ -62,9 +61,7 @@ void testCloudFiltering_BypassesOnExplicitAuthType() {
6261
new DefaultCredentialsProvider(Collections.singletonList(azureCli));
6362

6463
DatabricksConfig config =
65-
new DatabricksConfig()
66-
.setHost("https://xyz.gcp.databricks.com/")
67-
.setAuthType("azure-cli");
64+
new DatabricksConfig().setHost("https://xyz.gcp.databricks.com/").setAuthType("azure-cli");
6865
// configure() throws because azure-cli returns null; that's expected
6966
assertThrows(DatabricksException.class, () -> provider.configure(config));
7067

0 commit comments

Comments
 (0)