Skip to content

Commit

Permalink
Add AcrPull access to Vulnerability scanner Writer MI (#1290)
Browse files Browse the repository at this point in the history
* Add AcrPull access to Vulnerability scanner Write

* formatting
  • Loading branch information
Richard87 authored Apr 12, 2024
1 parent cd55ff6 commit d246bc7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module "github-workload-id" {
location = module.resourcegroup.data.location
roleassignments = {
contributor = {
role = "Contributor" # Needed to open firewall
role = "Contributor" # Needed to open firewall
scope_id = data.azurerm_container_registry.acr.id
},
}
Expand All @@ -69,6 +69,12 @@ module "mi-writer" {
name = "radix-id-vulnerability-scan-writer-${module.config.environment}"
resource_group_name = module.resourcegroup.data.name
location = module.resourcegroup.data.location
roleassignments = {
"acr" = {
role = "AcrPull"
scope_id = data.azurerm_container_registry.acr.id
}
}
}

module "mi-reader" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ module "mi-writer" {
name = "radix-id-vulnerability-scan-writer-${module.config.environment}"
resource_group_name = module.resourcegroup.data.name
location = module.resourcegroup.data.location
roleassignments = {
"acr" = {
role = "AcrPull"
scope_id = data.azurerm_container_registry.acr.id
}
}
}

module "mi-reader" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ module "mi-writer" {
name = "radix-id-vulnerability-scan-writer-${module.config.environment}"
resource_group_name = module.resourcegroup.data.name
location = module.resourcegroup.data.location

roleassignments = {
"acr" = {
role = "AcrPull"
scope_id = data.azurerm_container_registry.acr.id
}
}
}

module "mi-reader" {
Expand Down

0 comments on commit d246bc7

Please sign in to comment.