-
Notifications
You must be signed in to change notification settings - Fork 163
feat(azure-drivers): add managed identity client ID support #584
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
base: main
Are you sure you want to change the base?
Conversation
Deploying unstorage with
|
Latest commit: |
50a60ab
|
Status: | ✅ Deploy successful! |
Preview URL: | https://2897dcb3.unstorage.pages.dev |
Branch Preview URL: | https://feat-azure-authentication.unstorage.pages.dev |
Appreciate the PR but please consider splitting changes next times, it is clearly written in PR template.
|
I can of course split this, the errors just occured "on accident" when running the test suites and for the changes to be validated properly, I needed the test suites to be representative. |
no worries on this one is good 👍🏼 (sorry might be back on this with some delay) |
@@ -59,7 +65,11 @@ export default defineDriver((opts: AzureAppConfigurationOptions = {}) => { | |||
if (opts.connectionString) { | |||
client = new AppConfigurationClient(opts.connectionString); | |||
} else { | |||
const credential = new DefaultAzureCredential(); | |||
const credential = opts.managedIdentityClientId | |||
? new DefaultAzureCredential({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot we simply use this? Is new DefaultAzureCredential({})
and ``new DefaultAzureCredential({ managedIdentityClientId:undefined })` behavior different?
Enhance Azure drivers to support user-assigned managed identity authentication by adding an optional
managedIdentityClientId
parameter. This allows choosing the correct user assigned managed identity to use.Changes:
managedIdentityClientId
option to driver interfaces to use with DefaultAzureCredential if providedremoveItem
throws in CosmosDB driverclean
if purge is providedAll changes are tested against the local emulator (if available) and live Azure resources.