docker / docker/scout-cli

Skip storing image for downloading attestations

Open
#236 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
454
Forks
134
PR merge metrics
No merged PRs in 30d

Description

Right now, when I execute docker scout attestation get --platform linux/amd64 --predicate --predicate-type https://cyclonedx.org/bom/v1.6 <image> it's downloading the whole image with a couple GB, showing Storing image for indexing for some time. When doing docker pull <image> first, that works a lot more reliable, but has the same downside.

Getting the attestation should be quick and easy just using the manifest. No need to do any indexing, right? Using oras I can quickly grab the manifests and the SBOM within seconds, but would need to extract the in-toto statement myself (or at least I didn't find a nicer way like --predicate --predicate-type https://cyclonedx.org/bom/v1.6 on docker-scout).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the docker scout attestation get command and trace how it handles the manifest, --predicate, and --predicate-type options; compare that flow with the manifest and SBOM retrieval behavior described for ORAS. Done means attestations can be retrieved without downloading or indexing the full image, while the existing predicate filtering still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
cli, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.