Skip to content

Remove ACA Environment Contributor role assignment#9405

Merged
eerhardt merged 2 commits intomicrosoft:mainfrom
eerhardt:RemoveContributorRole
May 22, 2025
Merged

Remove ACA Environment Contributor role assignment#9405
eerhardt merged 2 commits intomicrosoft:mainfrom
eerhardt:RemoveContributorRole

Conversation

@eerhardt
Copy link
Copy Markdown
Member

Description

This role assignment was necessary as an early workaround for getting access to the Aspire Dashboard hosted in ACA.

The explicitly role assignment is no longer necessary because the user doing the deployment will automatically inherit the permission because they are the user who created the ACA environment.

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?
    • No
  • Does the change require an update in our Aspire docs?
    • No

@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label May 19, 2025
@davidfowl
Copy link
Copy Markdown
Contributor

Why draft?

@eerhardt
Copy link
Copy Markdown
Member Author

Why draft?

Was waiting for confirmation that we can do this. I plan on taking it out of draft today.

eerhardt added 2 commits May 22, 2025 10:18
This role assignment was necessary as an early workaround for getting access to the Aspire Dashboard hosted in ACA.

The explicitly role assignment is no longer necessary because the user doing the deployment will automatically inherit the permission because they are the user who created the ACA environment.
@eerhardt eerhardt force-pushed the RemoveContributorRole branch from f4bb1cf to 4c651c4 Compare May 22, 2025 15:40
@eerhardt eerhardt marked this pull request as ready for review May 22, 2025 15:56
Copilot AI review requested due to automatic review settings May 22, 2025 15:56
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.

Pull Request Overview

This PR removes the explicit ACA Environment Contributor role assignment, as it is no longer required given the updated permissions model for ACA environments.

  • Removed the role assignment resource from multiple Bicep snapshot files.
  • Removed the corresponding role assignment creation from the Azure Container App extension code.

Reviewed Changes

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

Show a summary per file
File Description
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureEnvironmentResourceTests.WhenUsedWithAzureContainerAppsEnvironment_GeneratesProperBicep#01.verified.bicep Removed the env_Contributor resource definition.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ContainerAppEnvironmentWithCustomRegistry#00.verified.bicep Removed the env_Contributor resource definition.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddContainerAppEnvironmentAddsEnvironmentResource_useAzdNaming=True.verified.bicep Removed the env_Contributor resource definition.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddContainerAppEnvironmentAddsEnvironmentResource_useAzdNaming=False.verified.bicep Removed the env_Contributor resource definition.
src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs Removed the role assignment creation and related using directive for Authorization.

Copy link
Copy Markdown
Contributor

@davidfowl davidfowl left a comment

Choose a reason for hiding this comment

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

@eerhardt
Copy link
Copy Markdown
Member Author

Merging for now to get this in. But we can make more changes if necessary.

@eerhardt eerhardt merged commit fdd936e into microsoft:main May 22, 2025
254 checks passed
@eerhardt eerhardt deleted the RemoveContributorRole branch May 22, 2025 23:15
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 22, 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