Skip to content

Allow localhost on u2m auth#1233

Merged
shreyas-goenka merged 6 commits intomainfrom
allow-local-u2m
Jun 23, 2025
Merged

Allow localhost on u2m auth#1233
shreyas-goenka merged 6 commits intomainfrom
allow-local-u2m

Conversation

@shreyas-goenka
Copy link
Copy Markdown
Contributor

@shreyas-goenka shreyas-goenka commented Jun 18, 2025

What changes are proposed in this pull request?

This PR relaxes the validation performed on the host URL to allow http URLs if the URL points to localhost.

This is needed to add acceptance tests in the Databricks CLI for the databricks auth login command. For context: The acceptance test framework in the CLI has the ability to spawn a testserver on localhost and record API requests sent to it. We can use the testserver to validate that the correct API requests are being sent during auth login, and that the command does not fail.

Prompted by databricks/cli#2988 (comment) where I almost let a big regression pass.

NO_CHANGELOG=true

How is this tested?

Unit test

@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: 1233
  • Commit SHA: 55d290d444fda6f1f2d319224031956aab0b6f56

Checks will be approved automatically on success.

@shreyas-goenka shreyas-goenka added this pull request to the merge queue Jun 23, 2025
Merged via the queue into main with commit 5e8f903 Jun 23, 2025
15 checks passed
@shreyas-goenka shreyas-goenka deleted the allow-local-u2m branch June 23, 2025 17:21
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