Gate: distro
Introduction
The “distro” gate is solely intended to deny an image that is running on a specific distro. This is especially useful if a user wants to create a rule that can quickly discover any image SBOMs containing a specific version of a distro that is denied in their organization.
Example Use-case
Scenario 1
Goal: Create a rule that results in a STOP action for images that are running below Debian version 9.
Example rule set configuration in Anchore Enterprise
Gate: distro
Trigger: deny
Required Parameters: distro = “debian”, version = “9”, check = “<”
Recommendations (optional): “Image is running on an old version of Debian. Update required.”
Action: STOP
Reference: distro
Trigger Name | Description | Parameter | Description | Example |
---|---|---|---|---|
deny | Triggers if the image distro and version match the criteria | distro | Name of the distribution to match | debian |
deny | Triggers if the image distro and version match the criteria | version | Version of distribution to compare against | 9 |
deny | Triggers if the image distro and version match the criteria | check | The comparison to use in the evaluation | < |