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 todependency_cooldown.enabledanddependency_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 asinfo.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.failis stricter thanreport.- 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.
Related
Cloud Policy Limits
Limits, retention and known gaps.
Package Rules
How block and trust entries match.

