Skip to content

Commit

Permalink
chore: Fix biz slack secret (#1886)
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualespica authored Apr 3, 2024
1 parent 409f520 commit fbdb88e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/domains/bizevents-common/02_security.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<TO_UPDATE_MANUALLY_BY_PORTAL>"
content_type = "text/plain"

key_vault_id = module.key_vault.id

lifecycle {
ignore_changes = [
value,
]
}
}
1 change: 1 addition & 0 deletions src/domains/bizevents-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit fbdb88e

Please sign in to comment.