SDK reference / Models / DeployPolicy

DeployRule

Kind: class

Namespace: Egulu.Sdk.Models.DeployPolicy

One rule of a deploy policy. Kinds: registry (images only from the project's own registry or the hosts in values), digest (the image isreferenced by digest), platform-built (a verified provenance attestation from the platform's builder; values may name builder IDs),signed (a verified signature from a key ID or identity in values), no-critical-vulnerabilities (the platform's stored scan record hasno finding of the blocked severities, critical by default) and production-approver (a deployment to a production environment is approvedby a person in values other than the one who asks).

Properties

NameTypeJSON nameDescription
Kindstring?kindregistry | digest | platform-built | signed | no-critical-vulnerabilities | production-approver. One rule of each kind at most.
Messagestring?messageThe rule's own words, put in front of the reason when it refuses; at most 500 characters.
ModeModels.DeployPolicy.DeployRule_mode?mode`enforce` refuses a deployment that breaks the rule; `dry-run` admits it and records what it would have refused.
RequireScanRecordbool?requireScanRecordWhether an image with no stored scan record breaks the rule (no-critical-vulnerabilities); true when omitted.
SeveritiesList<string>?severitiesCRITICAL, HIGH, MEDIUM, LOW or UNKNOWN: the severities that block (no-critical-vulnerabilities); CRITICAL when omitted.
ValuesList<string>?valuesRegistry hosts (registry), builder IDs (platform-built), signer key IDs or identities (signed), approver principals (production-approver); at most 20 of up to 256 characters.