category | severity | online version |
---|---|---|
Security |
Critical |
Containers should use specific tags instead of latest
.
Containers should use specific tags instead of latest
.
This is because:
- Latest can be updated.
Deployments or pods should identify a specific tag to use for container images instead of latest
.
When latest
is used it may be hard to determine which version of the image is running.
When using variable tags such as v1.0 (which may refer to v1.0.0 or v1.0.1) consider using imagePullPolicy: Always
to ensure that the an out-of-date cached image is not used.
The latest
tag automatically uses imagePullPolicy: Always
instead of the default imagePullPolicy: IfNotPresent
.
Test that [isIgnored]
.
{
"type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('VNETName')]",
"apiVersion": "2020-06-01",
"location": "[parameters('location')]",
"properties": {}
}