Commit Graph

7 Commits

Author SHA1 Message Date
Shreyas Goenka 898b2c1cc3
merge 2025-03-03 19:21:18 +01:00
shreyas-goenka 807a37b36a
Add the `auth.EnvVars` function (#2403)
## Changes
This PR adds the auth.EnvVars function, which is a list of all
environment variables that the SDK uses to read auth configuration.

This is useful for spawning subprocesses since you can unset all auth
environment variables to clean up the environment before configuring the
auth.

It's used in #2278 today and will also be useful for the `databricks
bundle exec` command.
 
## Tests
Unit test.
2025-03-03 14:58:43 +00:00
Shreyas Goenka 42f6ecf6d7
- 2025-02-28 14:47:16 +01:00
Shreyas Goenka bf234c4f50
Add the auth.ProcessEnv function 2025-02-28 14:41:37 +01:00
Shreyas Goenka 31b7ad071c
Add the auth.EnvVars function 2025-02-28 14:12:15 +01:00
shreyas-goenka bc299cafb8
Add warning when variable interpolation is used for auth fields (#2399)
## Changes
This PR adds a warning which gives users clear guidance when they try to
use variable interpolation for an auth field.

## Tests
Modify existing acceptance test.
2025-02-27 15:58:48 +00:00
shreyas-goenka 6c3ddbd921
Add `auth.Env` function (#2204)
## Changes
`auth.Env` is a generic function that we can use for authenticated tools
downstream to the CLI.

## Tests
Unit test.
2025-01-22 12:14:54 +00:00