Skip to content

provenance: record request provenance for LLB refs#6739

Open
tonistiigi wants to merge 2 commits intomoby:masterfrom
tonistiigi:provenance-reqs
Open

provenance: record request provenance for LLB refs#6739
tonistiigi wants to merge 2 commits intomoby:masterfrom
tonistiigi:provenance-reqs

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

Keep request provenance for solved refs by their LLB digest while the producing build is still active. Use the stored request when another solve later provides the same LLB definition as a frontend input.

This lets max provenance report root and nested input requests for gateway and builtin Dockerfile frontend solves without accepting client-supplied request metadata.

Keep request provenance for solved refs by their LLB digest while the producing
build is still active. Use the stored request when another solve later provides
the same LLB definition as a frontend input.

This lets max provenance report root and nested input requests for gateway and
builtin Dockerfile frontend solves without accepting client-supplied request
metadata.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Comment thread solver/llbsolver/provenance.go
Comment thread frontend/dockerfile/dockerfile_provenance_test.go
@tonistiigi tonistiigi marked this pull request as ready for review May 6, 2026 05:03
Apply min provenance request scrubbing recursively to named inputs and root
requests so nested build args and labels do not leak into explicit min
provenance. Keep non-sensitive input request metadata and mark request
completeness incomplete only when scrubbed args are omitted.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi added this to the v0.30.0 milestone May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants