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 devops identity as Storage Account Contributor to rpversion SA #4094

Merged

Conversation

tsatam
Copy link
Collaborator

@tsatam tsatam commented Feb 11, 2025

Which issue this PR addresses:

Part of building a pipeline to achieve ARO-4399

What this PR does / why we need it:

Adds the Storage Account Contributor role over the rpversion storage account to our devops managed identity. This allows us to build pipelines that upload data to this storage account.

This privilege will be used in an upcoming pipeline to build and deploy the az aro Azure CLI preview extension into this storage account in order to serve it for external consumption.

Test plan for issue:

  • Unit tests were updated to cover the new identity get request
  • PR was deployed to int env and achieved the following result:
    • int devops MI received the required role assignment over the int env's rpversion storage account

Is there any documentation that needs to be updated for this PR?

No

How do you know this will function as expected in production?

This change should not impact the production service, as it simply adds a new role assignment to the devops identity used during deployments.

"principalId": "[parameters('globalDevopsServicePrincipalId')]",
"principalType": "ServicePrincipal"
},
"apiVersion": "2018-09-01-preview",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this API version correct/desired?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

probably not, but bumping this would require bumping the singleton apiversion we use for all Microsoft.Authorization resources so it'll be an involved effort.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ack. No need to cut deeper than we have to for this specific change.

@tsatam tsatam force-pushed the tsatam/ARO-4399-add-devops-identity-sa-roleassignment branch from cfcbb2a to cdc8a6f Compare February 11, 2025 20:28
Copy link
Collaborator

@cadenmarchese cadenmarchese left a comment

Choose a reason for hiding this comment

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

makes sense 👍

@tsatam tsatam changed the title Add devops identity as Storage Blob Data Contributor to rpversion SA Add devops identity as Storage Account Contributor to rpversion SA Feb 11, 2025
@tsatam tsatam merged commit 3a0f4bd into master Feb 11, 2025
22 checks passed
@tsatam tsatam deleted the tsatam/ARO-4399-add-devops-identity-sa-roleassignment branch February 11, 2025 23:21
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

Successfully merging this pull request may close these issues.

3 participants