Skip to content

Stop reading the valid field from auth profiles - #2190

Open
janniklasrose wants to merge 1 commit into
mainfrom
janniklasrose/databricks-auth-profiles-deprecation
Open

janniklasrose wants to merge 1 commit into
mainfrom
janniklasrose/databricks-auth-profiles-deprecation

Conversation

@janniklasrose

Copy link
Copy Markdown
Member

The Databricks CLI is making auth profiles a pure config-file listing: it will no longer validate credentials, so the valid field in the JSON output is going away (see databricks/cli#5216).

Drop ConfigEntry.valid. It was parsed out of the JSON but never read anywhere, so nothing behavioural changes — this just stops depending on a field that is disappearing.

--skip-validate is deliberately kept: older CLIs still validate every profile here, which is slow and can hang on an unreachable host, and newer CLIs accept the flag as a hidden no-op. Passing it stays correct across both.

authType also keeps working: the CLI infers auth_type from the config file keys, so profile auth types still render in the login wizard.

Co-authored-by: Isaac

The Databricks CLI is making `auth profiles` a pure config-file listing: it
no longer validates credentials, so the `valid` field in the JSON output is
going away (see databricks/cli#5216).

Drop `ConfigEntry.valid`. It was parsed out of the JSON but never read
anywhere, so nothing behavioural changes — this just stops depending on a
field that is disappearing.

`--skip-validate` is deliberately kept: older CLIs (the extension pins
1.9.0) still validate every profile here, which is slow and can hang on an
unreachable host, and newer CLIs accept the flag as a hidden no-op. Passing
it stays correct across both.

`authType` also keeps working: the CLI infers auth_type from the config
file keys, so profile auth types still render in the login wizard.

Co-authored-by: Isaac
@janniklasrose
janniklasrose deployed to test-trigger-is September 10, 2026 21:11 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

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

Trigger:
go/deco-tests-run/vscode

Inputs:

  • PR number: 2190
  • Commit SHA: 42eb2cc4b8246f3ba6fea7133cbdba544d702eb2

Checks will be approved automatically on success.

@janniklasrose
janniklasrose deployed to test-trigger-is September 10, 2026 21:13 — with GitHub Actions Active
@janniklasrose
janniklasrose deployed to test-trigger-is September 10, 2026 21:13 — with GitHub Actions Active
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.

1 participant