Skip to content

[Fix] Do not specify --tenant flag when fetching managed identity access token from the CLI#748

Merged
mgyucht merged 8 commits intomainfrom
issue-742
Sep 16, 2024
Merged

[Fix] Do not specify --tenant flag when fetching managed identity access token from the CLI#748
mgyucht merged 8 commits intomainfrom
issue-742

Conversation

@mgyucht
Copy link
Copy Markdown
Contributor

@mgyucht mgyucht commented Sep 5, 2024

Changes

Ports databricks/databricks-sdk-go#1021 to the Python SDK.

The Azure CLI's az account get-access-token command does not allow specifying --tenant flag if it is authenticated via the CLI.

Fixes #742.

Tests

Unit tests ensure that all expected cases are treated as managed identities.

  • make test run locally
  • make fmt applied
  • relevant integration tests applied

@mgyucht mgyucht requested a review from tanmay-db September 5, 2024 08:50
@github-actions
Copy link
Copy Markdown

This PR breaks backwards compatibility for databrickslabs/blueprint downstream. See build logs for more details.

Running from downstreams #467

@github-actions
Copy link
Copy Markdown

This PR breaks backwards compatibility for databrickslabs/ucx downstream. See build logs for more details.

Running from downstreams #467

@mgyucht mgyucht added this pull request to the merge queue Sep 16, 2024
Merged via the queue into main with commit 2438abd Sep 16, 2024
@mgyucht mgyucht deleted the issue-742 branch September 16, 2024 12:56
tanmay-db added a commit that referenced this pull request Sep 16, 2024
### New Features and Improvements

 * Support Models in `dbutils.fs` operations ([#750](#750)).

### Bug Fixes

 * Do not specify --tenant flag when fetching managed identity access token from the CLI ([#748](#748)).
 * Fix deserialization of 401/403 errors ([#758](#758)).
 * Use correct optional typing in `WorkspaceClient` for `mypy` ([#760](#760)).
github-merge-queue bot pushed a commit that referenced this pull request Sep 17, 2024
### New Features and Improvements

* Support Models in `dbutils.fs` operations
([#750](#750)).


### Bug Fixes

* Do not specify --tenant flag when fetching managed identity access
token from the CLI
([#748](#748)).
* Fix deserialization of 401/403 errors
([#758](#758)).
* Use correct optional typing in `WorkspaceClient` for `mypy`
([#760](#760)).
aravind-segu pushed a commit to aravind-segu/databricks-sdk-py that referenced this pull request Sep 18, 2024
…ess token from the CLI (databricks#748)

## Changes
Ports databricks/databricks-sdk-go#1021 to the
Python SDK.

The Azure CLI's az account get-access-token command does not allow
specifying --tenant flag if it is authenticated via the CLI.

Fixes databricks#742.

## Tests
Unit tests ensure that all expected cases are treated as managed
identities.

- [ ] `make test` run locally
- [ ] `make fmt` applied
- [ ] relevant integration tests applied
aravind-segu pushed a commit to aravind-segu/databricks-sdk-py that referenced this pull request Sep 18, 2024
### New Features and Improvements

* Support Models in `dbutils.fs` operations
([databricks#750](databricks#750)).


### Bug Fixes

* Do not specify --tenant flag when fetching managed identity access
token from the CLI
([databricks#748](databricks#748)).
* Fix deserialization of 401/403 errors
([databricks#758](databricks#758)).
* Use correct optional typing in `WorkspaceClient` for `mypy`
([databricks#760](databricks#760)).
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.

[ISSUE] Authentication fails with auth-type=azure-cli and managed identity from 0.30.0

2 participants