Skip to content
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

Add extension for CosmosDb/TableService that accepts TokenCredential for authentication #1316

Merged

Conversation

levimatheri
Copy link
Contributor

What this PR does / why we need it:
Adds a new builder extension for registering CosmosDb/TableService health check, that accepts a TokenCredential for authentication using managed identities.

Which issue(s) this PR fixes:
Currently we have to pass a connection string to the cosmos account, which includes the authorization key. This is not best practice in Azure, and managed identity use is recommended.

Please reference the issue this PR will close: #1298, #1134

@sungam3r
Copy link
Collaborator

sungam3r commented Jul 3, 2022

@levimatheri I'll merge this after fixing API approval file in tests. You need run test once, then delete ~.approved.txt file and rename ~.received.txt into ~.approved.txt. Also other tests failed.

@sungam3r sungam3r added the enhancement New feature or request label Jul 3, 2022
@levimatheri
Copy link
Contributor Author

Fixed @sungam3r

Copy link
Collaborator

@sungam3r sungam3r left a comment

Choose a reason for hiding this comment

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

Thanks.

@sungam3r sungam3r merged commit 1482e93 into Xabaril:master Jul 3, 2022
@emlyn-arkahna
Copy link

Any chance we can get this released to nuget?

@sungam3r
Copy link
Collaborator

@sungam3r sungam3r mentioned this pull request Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] CosmosDb Managed Identities
3 participants