Skip to content

Latest commit

 

History

History
94 lines (69 loc) · 3.15 KB

Azure.EventGrid.DisableLocalAuth.md

File metadata and controls

94 lines (69 loc) · 3.15 KB
reviewed severity pillar category resource online version
2024-01-17
Important
Security
SE:05 Identity and access management
Event Grid

Use identity-based authentication for Event Grid topics

SYNOPSIS

Authenticate publishing clients with Azure AD identities.

DESCRIPTION

To publish events to Event Grid access keys, SAS tokens, or Azure AD identities can be used. With Azure AD authentication, the identity is validated against the Microsoft Identity Platform. Using Azure AD identities centralizes identity management and auditing.

Once you decide to use Azure AD authentication, you can disable authentication using keys or SAS tokens.

RECOMMENDATION

Consider only using Azure AD identities to publish events to Event Grid. Then disable authentication based on access keys or SAS tokens.

EXAMPLES

Configure with Azure template

To deploy Event Grid Topics that pass this rule:

  • Set the properties.disableLocalAuth property to true.

For example:

{
  "type": "Microsoft.EventGrid/topics",
  "apiVersion": "2022-06-15",
  "name": "[parameters('name')]",
  "location": "[parameters('location')]",
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "disableLocalAuth": true,
    "publicNetworkAccess": "Disabled",
    "inputSchema": "CloudEventSchemaV1_0"
  }
}

Configure with Bicep

To deploy Event Grid Topics that pass this rule:

  • Set the properties.disableLocalAuth property to true.

For example:

resource eventGrid 'Microsoft.EventGrid/topics@2022-06-15' = {
  name: name
  location: location
  identity: {
    type: 'SystemAssigned'
  }
  properties: {
    disableLocalAuth: true
    publicNetworkAccess: 'Disabled'
    inputSchema: 'CloudEventSchemaV1_0'
  }
}

Configure with Azure Policy

To address this issue at runtime use the following policies:

LINKS