Skip to content

feat(review): one devops command fetches the osv-scanner and trivy databases that a sandboxed review binds read-only #2131

Closed

Description

@dan-petty

Friction

Part of the tracker #772 (Part D: "the fetch step for the OSV and Trivy databases belongs here"). Since #2096, a review runs osv-scanner and Trivy in the network-less sandbox, and the sandbox binds their databases read-only. No devops command fetches those databases. On 2026-10-24 osv-scanner gave advisories in the sandbox only after a manual osv-scanner --download-offline-databases into a scratch directory. Without the fetch, osv-scanner has no offline database in either executor, and Trivy has none on a new host.

What should happen

One devops command fetches the osv-scanner offline databases and the Trivy database and checks, outside the sandbox, into the directories that the review binds read-only. A review that finds a database missing or older than its limit reports a coverage gap that names the command.

Evidence

Acceptance criteria

  • The command fetches both databases into the directories that the review binds, and a review in the sandbox then gives osv-scanner advisories and Trivy findings with no network.
  • A review with no database reports a coverage gap that names the command.

Proposed design

Problem statement

A devops command must fetch osv-scanner and Trivy databases for sandboxed reviews. Reviews fail without these databases in the sandbox.

Acceptance criteria

  • Criterion 1: The devops command fetches both databases into directories used by the sandbox.
    Verification: Run the devops command and check that osv-scanner and Trivy database files exist in the correct directories.
  • Criterion 2: A sandboxed review uses the fetched databases to give advisories and findings without network access.
    Verification: Run a sandboxed review and verify that osv-scanner gives advisories and Trivy gives findings without internet.
  • Criterion 3: A review reports a coverage gap when a database is missing or too old.
    Verification: Run a review with missing or outdated databases and confirm it names the command in the coverage gap report.

Key questions

None.

Open questions

  • Which directories does the sandbox bind read-only for the databases? (missing verified source)
  • What is the expected behavior when a review finds a missing or outdated database? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/feature
    source/agent
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Priority: P1-High. The feature is required for sandboxed review tools to function without network access.
    • Value: High. The feature enables offline operation of security tools in reviews, improving reliability and performance.
    • Effort: Medium. The effort involves implementing a new devops command and integrating it with existing review workflows.
    • Related: feat(review): a review runs its tools in the network-less sandbox by default #2096, which asks for a different change. Both items relate to sandboxed reviews, but item 2096 concerns sandbox execution while this item concerns database fetching for that sandbox.
  3. dan-petty commented on Oct 26, 2026

    @dan-petty
    OwnerAuthor

    Refine cannot set this item to Ready at 48c78ca until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Which directories does the sandbox bind read-only for the databases? (missing verified source)
    • What is the expected behavior when a review finds a missing or outdated database? (missing verified source)
  4. added
    priority/p1-high
    status/new
    effort/medium
    value/high
    scope/review
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Oct 28, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 4, 2026
  6. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-05 00:12 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p1-highscope/reviewsource/agenttype/featurevalue/high

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions