Skip to content

Pass azure_client_id to Azure MSI if specified#354

Merged
nfx merged 10 commits intodatabricks:mainfrom
stikkireddy:fix/issue-346
Apr 3, 2023
Merged

Pass azure_client_id to Azure MSI if specified#354
nfx merged 10 commits intodatabricks:mainfrom
stikkireddy:fix/issue-346

Conversation

@stikkireddy
Copy link
Copy Markdown
Contributor

Changes

Added support for providing client id for MSI use case with multiple MSIs attached to an azure vm.

Tests

Manually tested on a vm with multiple MSI.

Created failure first:
10F7B5BF-23E3-4B62-ACF3-204D91149F5D

Same VM:
2D0DFC9B-C2E8-468D-ADA0-5C5064D88A11

  • make test passing
  • make fmt applied
  • relevant integration tests applied

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Patch coverage has no change and project coverage change: -0.13 ⚠️

Comparison is base (54d4222) 41.30% compared to head (f6eddf9) 41.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #354      +/-   ##
==========================================
- Coverage   41.30%   41.18%   -0.13%     
==========================================
  Files          49       49              
  Lines        2736     2744       +8     
==========================================
  Hits         1130     1130              
- Misses       1515     1523       +8     
  Partials       91       91              
Impacted Files Coverage Δ
config/auth_azure_msi.go 3.52% <0.00%> (-0.37%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Contributor

@pietern pietern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Leaving to @nfx for final approval.

@pietern pietern requested a review from nfx April 3, 2023 16:29
@nfx nfx changed the title Fix/issue 346 Pass azure_client_id to Azure MSI if specified Apr 3, 2023
@nfx nfx linked an issue Apr 3, 2023 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nfx nfx merged commit 31b924a into databricks:main Apr 3, 2023
@nfx nfx mentioned this pull request Apr 3, 2023
nfx added a commit that referenced this pull request Apr 3, 2023
# Version changelog

## 0.6.0

* Added type to represent a loaded configuration file
([#349](#349)).
* Added named `Wait` the level of services
([#348](#348)).
* Pass `azure_client_id` to Azure MSI if specified
([#354](#354)).

Dependency updates:
 
* Bump google.golang.org/api from 0.112.0 to 0.114.0
([#344](#344)).
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.

Missing Client ID for msi api call blocking terraform pipeline

4 participants