diff --git a/src/domains/bizevents-common/02_security.tf b/src/domains/bizevents-common/02_security.tf index 78ffca40c6..89972f412a 100644 --- a/src/domains/bizevents-common/02_security.tf +++ b/src/domains/bizevents-common/02_security.tf @@ -255,3 +255,19 @@ resource "azurerm_key_vault_secret" "tokenizer_api_key" { ] } } + +#tfsec:ignore:azure-keyvault-ensure-secret-expiry tfsec:ignore:azure-keyvault-content-type-for-secret +resource "azurerm_key_vault_secret" "webhook-slack-token" { + count = var.env_short != "p" ? 1 : 0 + name = "webhook-slack" + value = "" + content_type = "text/plain" + + key_vault_id = module.key_vault.id + + lifecycle { + ignore_changes = [ + value, + ] + } +} diff --git a/src/domains/bizevents-common/README.md b/src/domains/bizevents-common/README.md index 1dd59b9a06..5290eb8108 100644 --- a/src/domains/bizevents-common/README.md +++ b/src/domains/bizevents-common/README.md @@ -52,6 +52,7 @@ | [azurerm_key_vault_secret.payment_manager_subscription_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret) | resource | | [azurerm_key_vault_secret.redis_password](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret) | resource | | [azurerm_key_vault_secret.tokenizer_api_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret) | resource | +| [azurerm_key_vault_secret.webhook-slack-token](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret) | resource | | [azurerm_private_dns_a_record.ingress](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/private_dns_a_record) | resource | | [azurerm_resource_group.bizevents_rg](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource | | [azurerm_resource_group.sec_rg](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource |