Skip to content

ADR-046: The OpenVEX Document Is Removed

Status: Accepted (supersedes ADR-012).

Context: From 0.5.1 the repository carried .vex/compose-lint.openvex.json. It marked CVEs a scanner reported against the Docker image as not_affected. Each release attested it to the image and attached it to the GitHub Release, and every Docker Scout step in CI was given the file.

Two kinds of statement were in it. The first kind covered CVEs in the Debian base image, and went away with that base (ADR-045). The second kind covered pip, whose code is deleted from the image while its .dist-info metadata is kept so that scanners still identify it. Six pip statements were left at 1.11.0.

None of the six changed a scan result. The image build upgrades pip to the newest release before it deletes pip's code, so the metadata names a current version. The 1.11.0 image carries pip 26.3. The fixes for the six CVEs are in pip 25.3 to 26.2.0, so a scanner matches none of them, with the document or without it. The statements were kept for older tags, which carry older pip metadata: the product identifiers name no tag, so a statement applied to every release.

The document had a running cost. A release checklist item compared it with pip's advisory list. The daily vuln-report fetched that list from OSV to find a CVE with no statement. A test held the statement counts in docs/verifying.md to the file. The release workflow had an attest step, and four workflows passed two extra inputs to Scout (ADR-012 records why both were needed).

Decision: The document, its attestation, its release asset and the checks around it are removed. No release after 1.11.0 carries an OpenVEX document.

What happens to a pip CVE now: it is an image finding like any other.

  • If a fixed pip release exists, the next image build installs it and the finding is gone. Until that release, the daily report lists it as fixable.
  • If no fixed release exists, a scan of the image reports it. After 14 days the daily report asks for a decision, and the answer is an entry in docker/open-findings.json with the reason: the code is not in the image (tests/smoke/assert_pip_stripped.py checks that in every image built), and the entry is removed when a pip release has the fix.

Deleting pip's metadata as well would also end the reports. It is not done: the scanner would then stop identifying a package that was installed, and a reader could not tell that from a fix.

Why remove it and not keep an empty mechanism:

  • The statements did nothing for the only release that gets security fixes. The security policy supports the latest minor release, so a statement written for older tags served images that are not otherwise maintained.
  • An older release is not changed by this. The document attested to its image stays attached, and docs/verifying.md keeps the commands that apply it.
  • A document with no statements, attested on every release, is a mechanism nothing exercises. The release workflow runs only at a release, so a break in it would show up at the worst time and for no benefit.
  • A finding that is listed with a reason says the same thing to a reader as a statement did, and needs no scanner option to be seen. No scanner applied the document by default.

Costs:

  • A user who scans an old tag with the current file from main no longer can. The document attested to that tag still works.
  • A pip CVE with no fixed release is a visible finding for as long as no fix exists, where a statement would have hidden it from a scanner given the document.
  • Whether older tags are still reported for the six CVEs was not measured for this decision. It follows from the pip versions they carry.

How to restore it: the commit that adds this record removes everything in one change, so reverting it brings the mechanism back. The parts are:

  1. .vex/compose-lint.openvex.json, with the two product identifiers per statement that ADR-012 describes, and "/.vex/" in the sdist include list in pyproject.toml.
  2. vex-location and vex-author: .* on each docker/scout-action step that scans the image, in scout-scan.yml, vuln-report.yml, publish.yml and release-docker-smoke.yml. Without vex-author Scout loads the document and applies none of it.
  3. In publish.yml, a cosign attest --type openvex step after the SBOM attestation, and the file in the gh release create asset list.
  4. In scripts/vuln_report.py, the comparison of pip's OSV advisory list with the statement names, if statements for pip come back.
  5. The documentation: docs/verifying.md, docs/CI.md, docs/RELEASING.md.

No pull request check runs the attest step or the release upload. Restored, they first run at the next release.

The open-findings list moves: .vex/open-findings.json is now docker/open-findings.json, beside the lock files that decide what the image contains. It was never a VEX document; it only lived in that directory.