LOW
Source
Trivy
ID
AVD-AZU-0015

Key vault Secret should have a content type set

Content Type is an optional Key Vault Secret behavior and is not enabled by default.

Clients may specify the content type of a secret to assist in interpreting the secret data when it’s retrieved. The maximum length of this field is 255 characters. There are no pre-defined values. The suggested usage is as a hint for interpreting the secret data.

Impact

The secret’s type is unclear without a content type

Follow the appropriate remediation steps below to resolve the issue.

Provide content type for secrets to aid interpretation on retrieval

1
2
3
4
5
6
7
 resource "azurerm_key_vault_secret" "good_example" {
   name         = "secret-sauce"
   value        = "szechuan"
   key_vault_id = azurerm_key_vault.example.id
   content_type = "password"
 }