Skip to main content
This page lists each setting of the cloud policy and the fields of a package rule. For the concepts, see Policy and Policy Resolution. The protobuf contract of the policy is the safedep.policy packages in the SafeDep API. For the flags of each command, see the safedep CLI command reference.

Policy settings

Vet does not read the cloud policy yet. Notes:
  • package_admission.cooldown.min_age. The minimum age of a package version since its publish time. A longer age is stricter. PMG rounds the value up to whole days, and maps it to dependency_cooldown.enabled and dependency_cooldown.days. When no layer sets it, PMG uses its own config.
  • scan_gate.fail_on. The check fails on a vulnerability at or above this severity. A lower severity is stricter. The check ranks a vulnerability with no severity as info.
  • scan_gate.fail_on_attacks. What the check does with a finding of an attack control, such as a malware verdict that is not verified. Verified malware always fails the check, whatever the value. fail is stricter than report.
  • Each setting is mandatory in PMG: an environment variable or a flag does not override the cloud value.

The policy settings document

safedep policy get and safedep policy edit show the settings as YAML: The document holds no package rules and keeps no comments.

Package rule fields

A rule never changes its selector, its effect or its scopes. Its reason, expiry, ticket and requester can change.

Cloud Policy Limits

Limits, retention and known gaps.

Package Rules

How block and trust entries match.