Skip storing image for downloading attestations

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

Nobody has claimed this yet.

Assessment

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

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.

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).

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

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.

More from docker/scout-cli

All issues in docker/scout-cli

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.