Skip to content

Change CosmosDB Entra Auth to use data plane roles#7245

Merged
davidfowl merged 1 commit intomicrosoft:mainfrom
eerhardt:FixCosmosDBRole
Jan 25, 2025
Merged

Change CosmosDB Entra Auth to use data plane roles#7245
davidfowl merged 1 commit intomicrosoft:mainfrom
eerhardt:FixCosmosDBRole

Conversation

@eerhardt
Copy link
Copy Markdown
Member

Description

We currently use the control plane DocumentDBAccountContributor role, which doesn't work to add/update/remove items.

Instead of adding the control plane role, assign the data plane contributor role when provisioning the CosmosDB account.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
  • Did you add public API?
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • No
  • Does the change require an update in our Aspire docs?
    • No

We currently use the control plane `DocumentDBAccountContributor` role, which doesn't work to add/update/remove items.

Instead of adding the control plane role, assign the data plane contributor role when provisioning the CosmosDB account.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 6 changed files in this pull request and generated no comments.

Files not reviewed (4)
  • playground/AzureContainerApps/AzureContainerApps.AppHost/account.module.bicep: Language not supported
  • playground/CosmosEndToEnd/CosmosEndToEnd.AppHost/cosmos.module.bicep: Language not supported
  • playground/bicep/BicepSample.AppHost/cosmos.module.bicep: Language not supported
  • playground/cdk/CdkSample.AppHost/cosmos.module.bicep: Language not supported

@davidfowl davidfowl merged commit 3d71ed1 into microsoft:main Jan 25, 2025
captainsafia pushed a commit that referenced this pull request Jan 25, 2025
We currently use the control plane `DocumentDBAccountContributor` role, which doesn't work to add/update/remove items.

Instead of adding the control plane role, assign the data plane contributor role when provisioning the CosmosDB account.
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 24, 2025
@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants