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

Allow connecting to cluster using settings and environment variables #67

Open
assafmendelson opened this issue Dec 23, 2021 · 1 comment
Labels
feature New feature or request help wanted Contribution requested

Comments

@assafmendelson
Copy link

Currently, when I want to connect to a cluster I need to load it which means manually entering the cluster URL, authority id and database. Then we go to the microsoft login page.

Instead it would be useful if I could define in the settings some database and allow to extract their credentials from environment variables.
For example in the settings I would have something like:

"databases": [{
"database_id": "db1"
"database": "my_database1"
"cluster": "https://my_cluster.kusto.windows.net",
"authority_id": "${authority_id_env_var_for_cluster1}",
"client_id": "${client_id_env_var_for_cluster1}",
"client_secret": "${client_secret_env_var_for_cluster1}",
},{...}]

Then I would be able to give a command: load db1 and the connection would be configured where it gets the credentials from environment variables.

@rosshamish
Copy link
Owner

This sounds like a great idea. Maybe you could optionally declare one as the default too.

My only concern is to be sure that no secrets are stored in plaintext in the extension settings.

Are you interested in taking a swing at this? I'd be happy to take a contribution and provide some help as you go.

@rosshamish rosshamish added the feature New feature or request label Dec 23, 2021
@rosshamish rosshamish added the help wanted Contribution requested label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Contribution requested
Projects
None yet
Development

No branches or pull requests

2 participants