Cloud

Team rules

Shared VEX rules, review dates, import/export and templates.

Team rules apply to every project in the team. Per-project decisions stay in that project's .capyshield/vex-rules.yaml — local always wins.

A rule

.capyshield/vex-rules.yaml
rules:
  - vulnerability: CVE-2024-39338
    package: axios              # name or purl; omit to match any package
    status: not_affected
    justification: vulnerable_code_not_in_execute_path
    impact_statement: Only fixed absolute URLs are used; the SSRF path needs user-controlled relative URLs.

Keys are strict — a typo exits with code 1. A not_affected rule needs a justification or an impact_statement. Local rules always win over team rules.

Rule lifecycle

Local rules in .capyshield/vex-rules.yaml are versioned with your code. Team rules are pulled from GET /v1/vex/rules on each vex --sync run (not on --dry-run).

  • Every team rule has a review date: in 30, 90 or 180 days, or Never. Only owners and admins can pick Never; a member's rule without a date gets 90 days.
  • Expired rules aren't sent by GET /v1/vex/rules, so those findings fall back to reachability.
  • The dashboard warns 14 days before a rule expires; Renew extends it by 90 days.
  • Imports default to 90 days and templates to 30; a review_by in the file wins.

Import & export

  • Team rules → Import and export → Import vex-rules.yaml previews new rules, duplicates (skipped) and conflicts (same CVE + package, different status) that you resolve one by one — nothing is overwritten silently.
  • Export vex-rules.yaml downloads team rules in the local format, so they're never locked in; Download change history (CSV) exports every change.
  • Import and export → Start from a template offers starter sets (build-time tooling, test-only). Picking one opens the import preview with review_by set to 30 days; nothing applies silently.
  • New team rule adds a single rule by hand.