Checks whether each Container Registry repository is configured to be immutable. If so, the evaluation result is Compliant.

Scenarios

After you configure a repository to be immutable, the existing and new images in the repository cannot be overwritten except for the images of the latest version. This prevents images of different versions from being overwritten due to manual operations and ensures that the images in the repository are consistent with the images that are deployed in containers.

Risk level

Default risk level: high.

When you configure this rule, you can change the risk level based on your business requirements.

Compliance evaluation logic

  • If each Container Registry repository is configured to be immutable, the evaluation result is Compliant.
  • If a Container Registry repository is not configured to be immutable, the evaluation result is Incompliant. For more information about how to remediate an incompliant configuration, see Incompliance remediation.

Rule details

ItemDescription
Rule namecr-repository-immutablity-enable
Rule identifiercr-repository-immutablity-enable
TagCR and Repository
Automatic remediationNot supported
Trigger typeConfiguration change
Supported resource typeContainer Registry repositories
Input parameterNone

Incompliance remediation

Configure a Container Registry repository to be immutable. For more information, see Configure a repository to be immutable.