Repository navigation
Added route table bicep module + alignment - #104
Merged
Alexander Sehr (AlexanderSehr) merged 29 commits intoOct 7, 2021
Merged
Conversation
Alexander Sehr (AlexanderSehr)
enabled auto-merge (squash)
October 4, 2021 14:59
Contributor
|
I took the liberty to update the RBAC to be same as we discussed in chat earlier. |
Contributor
|
Do not merge, working on finalizing the testing on the RBAC approach. The approach might be flawed, as there is no way its connecting to the correct scope (resource). Tested adding Finalizing testing to be sure. |
Alexander Sehr (AlexanderSehr)
disabled auto-merge
October 5, 2021 08:31
added 4 commits
October 5, 2021 11:50
Marius Storhaug (MariusStorhaug)
previously approved these changes
Oct 5, 2021
Marius Storhaug (MariusStorhaug)
left a comment
Contributor
There was a problem hiding this comment.
Looking good now.
Contributor
|
Discussions offline show we want to align more RBAC/roleAssignment modules to the following: In ...
param roleAssignments array = []
...
module <mainResourceReference>_rbac './.bicep/nested_rbac.bicep' = [for (roleAssignment, index) in roleAssignments: {
name: 'rbac-${deployment().name}${index}'
params: {
roleAssignmentObj: roleAssignment
builtInRoleNames: builtInRoleNames
resourceName: <mainResourceReference>.name
}
}]
In param roleAssignmentObj object
param builtInRoleNames object
param resourceName string
resource roleAssigment '<resourceProvider>/<resourceType>/providers/roleAssignments@2020-04-01-preview' = [for principalId in roleAssignmentObj.principalIds: {
name: '${resourceName}/Microsoft.Authorization/${guid(resourceName, principalId, roleAssignmentObj.roleDefinitionIdOrName)}'
properties: {
roleDefinitionId: contains(builtInRoleNames, roleAssignmentObj.roleDefinitionIdOrName) ? builtInRoleNames[roleAssignmentObj.roleDefinitionIdOrName] : roleAssignmentObj.roleDefinitionIdOrName
principalId: principalId
}
}]
|
Erika Gressi (eriqua)
requested changes
Oct 5, 2021
added 8 commits
October 5, 2021 19:03
Marius Storhaug (MariusStorhaug)
requested a review
from Erika Gressi (eriqua)
October 5, 2021 17:36
Erika Gressi (eriqua)
requested changes
Oct 5, 2021
Erika Gressi (eriqua)
approved these changes
Oct 7, 2021
Alexander Sehr (AlexanderSehr)
deleted the
users/alsehr/bicep_routeTables
branch
October 7, 2021 07:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Pipeline run:
Type of Change
Please delete options that are not relevant.
Checklist