Skip to content

Commit

Permalink
fix: Added permissions on io-p-kv to cd identity (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-calabrese authored Aug 1, 2024
1 parent 1a2c5e0 commit 17731d0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/core/keyvault_access_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ resource "azurerm_key_vault_access_policy" "access_policy_io_infra_cd" {
certificate_permissions = ["Get", "List"]
}

resource "azurerm_key_vault_access_policy" "access_policy_kv_io_infra_cd" {
key_vault_id = module.key_vault.id

tenant_id = data.azurerm_client_config.current.tenant_id
object_id = data.azurerm_user_assigned_identity.managed_identity_io_infra_cd.principal_id

secret_permissions = ["Get", "List", "Set", ]
storage_permissions = []
certificate_permissions = ["SetIssuers", "DeleteIssuers", "Purge", "List", "Get", "ManageContacts", ]
}

data "azuread_group" "adgroup_developers" {
display_name = format("%s-adgroup-developers", local.project)
}
Expand Down

0 comments on commit 17731d0

Please sign in to comment.