Skip to content

Return ErrCannotConfigureDefault when DefaulCredentials cannot determine the default auth type.#1226

Merged
renaudhartert-db merged 1 commit into
mainfrom
renaud-hartert_data/default-error
May 23, 2025
Merged

Return ErrCannotConfigureDefault when DefaulCredentials cannot determine the default auth type.#1226
renaudhartert-db merged 1 commit into
mainfrom
renaud-hartert_data/default-error

Conversation

@renaudhartert-db

@renaudhartert-db renaudhartert-db commented May 23, 2025

Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

This PR adds changes DefaultCredentials to return ErrCannotConfigureDefault when it cannot determine the default auth type. The goal is to make it easier for clients (such as the Databricks CLI) to differentiate auth errors from config errors.

How is this tested?

N/A

NO_CHANGELOG=true

@github-actions

Copy link
Copy Markdown

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-go

Inputs:

  • PR number: 1226
  • Commit SHA: 3c9e749b683f1df87484ff103c0da4e59ae067a8

Checks will be approved automatically on success.

@renaudhartert-db renaudhartert-db added this pull request to the merge queue May 23, 2025
Merged via the queue into main with commit df15242 May 23, 2025
15 checks passed
@renaudhartert-db renaudhartert-db deleted the renaud-hartert_data/default-error branch May 23, 2025 14:50
github-merge-queue Bot pushed a commit to databricks/cli that referenced this pull request Aug 27, 2025
## Changes

The SDK bump in #2920 required rewriting an error equivalence check to
perform string matching because the constant was removed. It was brought
back in databricks/databricks-sdk-go#1226.

## Tests

Ran tests under `cmd/root`.
denik pushed a commit to databricks/cli that referenced this pull request May 20, 2026
## Changes

The SDK bump in #2920 required rewriting an error equivalence check to
perform string matching because the constant was removed. It was brought
back in databricks/databricks-sdk-go#1226.

## Tests

Ran tests under `cmd/root`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants