Geo-replication for Azure Container Images is disabled Affecting Container service in Azure


Severity

0.0
high
0
10
Severity Framework
Snyk CCSS
Rule category
Availability/ Redundancy

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
CSA-CCMGDPRHIPAAISO-27001NIST-800-53SOC-2
  • Snyk IDSNYK-CC-00516
  • creditSnyk Research Team

Description

Missing geo-replication leads to reduced availability of container images.

How to fix?

Set a replication block within the resource, including a valid location attribute.

Example Configuration

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {},
    "variables": {},
    "resources": [
      {
        "type": "Microsoft.ContainerRegistry/registries",
        "apiVersion": "2019-05-01",
        "name": "allowed1",
        "location": "[resourceGroup().location]",
        "sku": {
          "name": "Premium",
          "tier": "Premium"
        },
        "properties": {
          "adminUserEnabled": false,
          "networkRuleSet": {
            "defaultAction": "Deny",
            "virtualNetworkRules": [],
            "ipRules": []
          },
          "replication": [
            {
              "location": "East US",
              "zoneRedundancy": false
            },
            {
              "location": "West Europe",
              "zoneRedundancy": false
            }
          ]
        }
      }
    ]
  }