Azure / ALZ-Bicep

This repository contains the Azure Landing Zones (ALZ) Bicep modules that help deliver and deploy the Azure Landing Zone conceptual architecture in a modular approach. https://aka.ms/alz/docs
MIT License
764 stars 514 forks source link

Adding RBAC constrained delegation parameters and guidance in the roleAssignment modules #816

Closed sebassem closed 3 months ago

sebassem commented 4 months ago

Adding the conditions parameters to the roleAssignment modules with examples and guidance to enable customers to securely delegate role assignments.

Related Issues/Work Items

Fixes AB#36173

Breaking Changes

N/A

Testing Evidence

image

image

As part of this Pull Request I have

jtracey93 commented 4 months ago

/azp run validateazcloud

azure-pipelines[bot] commented 4 months ago
Azure Pipelines successfully started running 1 pipeline(s).
oZakari commented 4 months ago

/azp run validateazcloud

azure-pipelines[bot] commented 4 months ago
Azure Pipelines successfully started running 1 pipeline(s).
sebassem commented 4 months ago

LGTM

@sebassem great work. Just to confirm we aren't adding the condition building simplification to these modules right, just the sub vending ones?

Correct, just showing how to use the condition parameter in the roleAssignment modules

oZakari commented 4 months ago

@sebassem Im looking into that pipeline error but it's unrelated to your changes so nothing to do on your end.

oZakari commented 3 months ago

@sebassem Looking into it closer, it is related to these changes. 😞 The policy assignment management group module references the role assignment modules. In main currently, json is approx 3.4 MB and with your changes it comes out to 4.2 MB. As far as I'm aware the only way we can get around this is by splitting up the module deployments (likely the ALZ Default Policy Assignments module). However, I'd rather avoid this if at all possible due to it being messy and requiring a lot of work and primarily with the AVM transition work in play.

oZakari commented 3 months ago

If I remove the customer telemetry module references, I can get it down to 3.5 MB. Will think on it a bit more and update here but thinking that's going to be the easiest/quickest option. Ping me if any options come to your mind as well.

sebassem commented 3 months ago

If I remove the customer telemetry module references, I can get it down to 3.5 MB. Will think on it a bit more and update here but thinking that's going to be the easiest/quickest option. Ping me if any options come to your mind as well.

Maybe its the long description of the parameter. I just pushed a commit to reduce the description, if that solved it, then I can move the instructions to generate a condition in md file ?

image

oZakari commented 3 months ago

Awesome. thanks! That got us to 4.011 and tested locally and no error so let's go with that approach for now.

I am going to hit it again with the policy refresh, but good enough for now.

sebassem commented 3 months ago

Awesome. thanks! That got us to 4.011 and tested locally and no error so let's go with that approach for now.

I am going to hit it again with the policy refresh, but good enough for now.

Just pushed the changes with having the instructions in the readme

oZakari commented 3 months ago

/azp run validateazcloud

azure-pipelines[bot] commented 3 months ago
Azure Pipelines successfully started running 1 pipeline(s).