Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Ability to login using Databricks extension without configuration file #1531

Open
Gijsreyn opened this issue Jan 27, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@Gijsreyn
Copy link

Describe the feature

As a user, I would like to have the ability to log in without the need for the databricks.yml file. Currently, I have to fill in the required URL in the configuration file and then login.

The primary use case for this is that I'm building dynamic environments where the URL changes regularly. I don't want to check in the URL; instead, I prefer to leave it blank.

@Gijsreyn Gijsreyn added the bug Something isn't working label Jan 27, 2025
@ilia-db ilia-db added enhancement New feature or request and removed bug Something isn't working labels Jan 28, 2025
@ilia-db
Copy link
Contributor

ilia-db commented Jan 28, 2025

Hi, thanks for the feedback! The extension uses databricks bundle * CLI commands for many features (like syncing files to the workspace), but it should technically be possible to let users configure auth without modifying the databricks.yml file.

There's a possible improvement you can do that might help right now: the configuration file has a concept of targets, and you can define as many as you want, where each target can contain different workspace url. Sort of like this:

bundle:
  name: my_bundle

targets:
  one:
    workspace:
      host: https://one.databricks.com
  two:
    workspace:
      host: https://two.databricks.com
  three:
    workspace:
      host: https://three.databricks.com
  etc...

In the extension you can then switch targets by clicking on a cog wheel icon of the "Target" item in the configuration panel, or by executing a Databricks: select a Databricks Asset Bundle target command.

If you know a list of workspaces beforehand, you can define all of them in the databricks.yml and switch between them with just a couple of clicks.

@Gijsreyn
Copy link
Author

That's exactly the thing. It "assumes" you are working in a bundle were you can pick the specific target that you know beforehand. Instead, what I was looking for, is to do it without and provide the URL itself I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants