Policy Gates

This page is the canonical list of policy gates supported by Anchore Enterprise. Each gate documented here has its own detail page covering its triggers, parameters, and example rules.

A rule inside a policy is built from four pieces:

  • Gate — the broad category of check (vulnerabilities, dockerfile, licenses, and so on).
  • Trigger — the specific condition to evaluate within the gate.
  • Parameters — gate- and trigger-specific values that tune the check.
  • ActionSTOP, WARN, or GO, applied when the trigger fires.

For the broader conceptual model — how rules combine into rule sets, how mappings select which rule sets evaluate an artifact, and where allowlists override the result — see How It Works.

Supported Gates

GateWhat it checksImage rule setsSBOM rule sets
alwaysFires unconditionally — useful for testing rule sets, mappings, and allowlistsYesYes
ancestryChecks an image against approved base or ancestor imagesYesNo
distroMatches the operating system distribution and versionYesNo
dockerfileChecks Dockerfile content and Docker history for best-practice violationsYesNo
filesMatches files in the image by content, name, or attributeYesNo
image_source_driftDeprecated in v6 — compared the image SBOM against its source repository SBOM
licensesMatches package license metadata against allowed or disallowed expressionsYesNo
malwareSurfaces malware detected during analysisYesNo
metadataMatches image metadata attributes such as size, architecture, or distroYesNo
packagesChecks for the presence or absence of specific packagesYesNo
passwd_fileInspects /etc/passwd content retrieved during analysisYesNo
retrieved_filesInspects arbitrary files retrieved during analysisYesNo
secret_scansSurfaces embedded secrets matched by configured regexesYesNo
stigRequires the image to have a passing STIG evaluation attachedYesNo
tag_driftDetects package additions, removals, or modifications between successive builds of the same tagYesNo
vulnerabilitiesMatches packages against vulnerability data from the Anchore Data ServiceYesYes

SBOM Rule Set Trigger Restrictions

SBOM rule sets support the vulnerabilities gate (and the always utility gate), but not every trigger of the vulnerabilities gate is available in this scope. The supported triggers for SBOM rule sets are:

  • denylist — fire when a specific CVE is present.
  • package — fire when a package has a vulnerability matching the configured severity, CVSS, or fix-state criteria.
  • stale_feed_data (deprecated) — fire when the vulnerability data source has not been updated within a configured time window.

The remaining vulnerabilities triggers and all other gates apply only to container-image rule sets. To use the full gate library on a release that includes both images and SBOMs, model the release as an app version and let the per-asset mappings pick the appropriate rule set for each asset.

Runtime Gate Inventory

The table above describes the gate library shipped with Anchore Enterprise. To retrieve the gate inventory as implemented by a specific running instance — including any gates added in a later release — call GET /system/policy-spec. The endpoint returns every gate, trigger, parameter, and value type the running instance supports, in the same shape that the policy validator uses.

Last modified June 16, 2026