| reviewed | 2025-07-07 |
|---|---|
| severity | Critical |
| pillar | Security |
| category | SE:07 Encryption |
| resource | Event Grid Namespace |
| resourceType | Microsoft.EventGrid/namespaces |
| online version | https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.EventGrid.NamespaceTLS/ |
Weak or deprecated transport protocols for client-server communication introduce security vulnerabilities.
The minimum version of TLS that Event Grid Namespaces accept is configurable. Older TLS versions are no longer considered secure by industry standards, such as PCI DSS.
Azure lets you disable outdated protocols and require connections to use a minimum of TLS 1.2. By default, TLS 1.0, TLS 1.1, and TLS 1.2 is accepted.
When clients connect using an older version of TLS that is disabled, the connection will fail.
Configure the minimum supported TLS version to be 1.2. Also consider enforcing this setting using Azure Policy.
To deploy namespaces that pass this rule:
- Set the
properties.minimumTlsVersionAllowedproperty to1.2.
For example:
resource namespace 'Microsoft.EventGrid/namespaces@2025-02-15' = {
name: name
location: location
identity: {
type: 'SystemAssigned'
}
properties: {
publicNetworkAccess: 'Disabled'
minimumTlsVersionAllowed: '1.2'
isZoneRedundant: true
}
}To deploy namespaces that pass this rule:
- Set the
properties.minimumTlsVersionAllowedproperty to1.2.
For example:
{
"type": "Microsoft.EventGrid/namespaces",
"apiVersion": "2025-02-15",
"name": "[parameters('name')]",
"location": "[parameters('location')]",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"publicNetworkAccess": "Disabled",
"minimumTlsVersionAllowed": "1.2",
"isZoneRedundant": true
}
}