diff --git a/src/core/keyvault_access_policy.tf b/src/core/keyvault_access_policy.tf index 701ec1bcc..773e1e585 100644 --- a/src/core/keyvault_access_policy.tf +++ b/src/core/keyvault_access_policy.tf @@ -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) }