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

Cosmos data plane RBAC aad authentication not working. #2190

Open
obesser opened this issue Sep 27, 2023 · 3 comments
Open

Cosmos data plane RBAC aad authentication not working. #2190

obesser opened this issue Sep 27, 2023 · 3 comments
Milestone

Comments

@obesser
Copy link

obesser commented Sep 27, 2023

When signed in with a user that is only assigned a cosmos-db role as described here: https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-setup-rbac, the extension fails to display the databases that are scoped in the role assignments.

It logs the following:
Error: The client 'xxx' with object id 'xxx' does not have authorization to perform action 'Microsoft.DocumentDB/databaseAccounts/listKeys/action' over scope '/subscriptions/xxx' or the scope is invalid. If access was recently granted, please refresh your credentials.

Shouldn't the extension fail back to aad authentication when the listKeys action is failing?

@JasonYeMSFT
Copy link
Contributor

The extension doesn't support Azure AD authentication at the moment. We have been asked to work on the adoption of Azure AD which means it might be supported sometime in the future.

@MicroFish91 MicroFish91 added this to the Backlog milestone Oct 18, 2023
@mdanylyuk
Copy link

Hello guys,
Is there any news about this extension?

@JasonYeMSFT
Copy link
Contributor

@mdanlyuk The authentication module is currently broken and the known workaround requires users to install Azure CLI separately and login from there issue. I need to discuss with some other people to see if it is an acceptable user experience.

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

No branches or pull requests

4 participants