-
Notifications
You must be signed in to change notification settings - Fork 643
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
[SDKMigration]Attempt to fix missing authentication. #10245
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3bd7595
Add parameter to use MI for storage.
ryuyu 52974e1
Fix existing tests to ignore new parameters.
ryuyu 4563bbf
Ignore SaS if using MI. Fix MI hydration.
ryuyu cc413dd
Default to not using MI.
ryuyu 4507c0a
Add name to suffixedstoragefactory
ryuyu b989baa
Add clientId to argumentsNameMap
ryuyu 8ce9d1e
Attempt to pipe auth through.
ryuyu ac8306d
Forgot to actually use token credential
ryuyu 6f02866
Update DI for vuln2v3 for blobServiceClientFactory
ryuyu 5ae0a1e
Update DI for vuln2db
ryuyu 055bccf
Fix tests for AzureStorage.
ryuyu 3cc1f3a
Fix AzureStorage tests for CatalogMetadata.
ryuyu e3149f3
Merge branch 'dev' into ryuyu-monitoring-migration-test
ryuyu 04800b4
Remove some old comments and unneeded params.
ryuyu 7fc5cb0
Remove nullcheck split.
ryuyu f90a326
Switch to existing alias
ryuyu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a usage of this method that requires the MSI client id? or did you just add the
DefaultAzureCredential
for testing?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.
As far as we (@advay26 and I) could tell, this particular code path is only called in icons.
The original code doesn't pass any authentication information at all, so at this point, we are unsure exactly what it does/how it worked/works.
DefaultAzureCredential was put here as from what I could see, it is likely the "closest" alternative.
For whomever migrates icons later, assuming that this doesn't behave as expected, may need to enhance BlobServiceClientFactory to be able to return a no auth client.
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.
I'm actually migrating icons, so I can verify when I start my tests for that job.
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.
From what I understand,
DefaultAzureCredential
picks up the MSI that is assigned to the VM, so it should hopefully just work for Icons too. I'm not sure what happens if we have a VM with multiple MSIs assigned to it