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

Closed
obesser opened this issue Sep 27, 2023 · 4 comments
Closed

Cosmos data plane RBAC aad authentication not working. #2190

obesser opened this issue Sep 27, 2023 · 4 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.

@sevoku
Copy link
Member

sevoku commented Nov 14, 2024

I think this is now fixed via #2290, if listKeys fails or localAuth is disabled we'll fall back to Entra ID and show an error if that fails as well with instructions and an option to add proper role assignment if you're allowed to.

@sevoku sevoku closed this as completed Nov 14, 2024
@microsoft microsoft locked and limited conversation to collaborators Dec 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants