Repository navigation
Description
Feature request
Chains should consume the declarative Tekton Artifacts API (TEP-0192) when generating SLSA provenance, so Task authors can declare build inputs/outputs without type-hinted result names (IMAGE_URL/IMAGE_DIGEST, *ARTIFACT_INPUTS/*ARTIFACT_OUTPUTS, etc.).
This is the Artifacts track for promoting the SLSA v1.0 offering toward slsa/v2beta1 (#1160).
Why a new issue (vs #1160 / #1841)
#1160 listed “Implement support for Tekton Artifacts” against the TEP-0147 Phase 1 alpha model:
- Steps write provenance JSON to
$(step.artifacts.path) - Controller populates
status.artifactswithbuildOutput
#1841 implemented that path and was closed: TEP-0192 is intended to replace the TEP-0147 Phase 1 user-facing API (subject: true instead of buildOutput, declarative spec.artifacts, content vs reference types, etc.). Landing Chains support on the soon-superseded JSON API would need substantial rework once 0192 ships.
This issue tracks Chains integration against TEP-0192, not TEP-0147 Phase 1.
Proposed behavior
Pipelines owns producing artifact metadata on the TaskRun. Chains reads it and maps into existing SLSA v1.0 fields (no new predicate type):
| TaskRun artifact data | SLSA field |
|---|---|
artifacts.inputs (uri + digest) |
resolvedDependencies |
artifacts.outputs with subject: true |
subject |
other artifacts.outputs |
byProducts |
| OCI image among subjects | also considered by OCI artifact extraction / storage |
For content artifacts that only expose a storage reference, attestations should stay reference-sized (uri + digest; optional annotation such as a storage-ref), as described in TEP-0192’s “Integration with Tekton Chains” section.
Type hinting: keep working and merge/dedupe with native artifacts (same uri+digest once). Do not remove type-hint support in this work; prefer documenting Artifacts as the recommended path and deprecate type hints later after catalog/tasks migrate.
Non-goals
- Removing or breaking existing type-hinted results
- Inventing a new SLSA provenance schema / predicate
- Implementing Pipelines Artifacts storage/transport (Pipelines + TEP-0193)
- Landing support solely for the TEP-0147
$(step.artifacts.path)/buildOutputAPI
Dependencies
- TEP-0192 accepted and Pipelines API/status shape available for Chains to consume
- Vendor / bump
github.com/tektoncd/pipelineonce types stabilize (subjectvs legacybuildOutput, etc.)
Acceptance criteria
- Native artifact inputs appear in
resolvedDependencies - Outputs marked as attestation subjects (
subject: trueper TEP-0192) appear insubject - Non-subject outputs appear in
byProducts - OCI subjects from artifacts are picked up for OCI storage/signing
- Existing type-hinted results still work; duplicates are not double-counted
- Docs describe Artifacts as the preferred signal path alongside type hints
- Work is usable by the future
slsa/v2beta1formatter (Promote SLSAv1.0 offering of Chains format tobeta#1160)
Related
- Parent / beta: #1160
- Closed TEP-0147 attempt: #1841
- TEP-0192: TEP-0192: Tekton Artifacts API community#1298
- TEP-0147 (superseded user API): https://github.com/tektoncd/community/blob/main/teps/0147-tekton-artifacts-phase1.md
Activity
eshaanjain26 commentedon Dec 1, 2026
The mapping in this proposal looks right to me, and keeping the existing SLSA v1.0 fields instead of inventing a new predicate is the correct call. Verifiers downstream already know how to read subject, resolvedDependencies and byProducts, so Chains gains a better input signal without forcing anyone else to change.
The part I would settle early is how merging and deduplication behave in practice. Type hinting stays supported, so the same artifact can now arrive twice, once as a hinted result and once as a declared artifact. Matching on uri plus digest sounds simple, but it needs a rule for the messy cases: the same digest under two different uris, the same uri with digests written in different forms, and an output marked subject true that also shows up as a hinted result. My view is that digest should be the deciding key for identity, the declared artifact should win for placement in subject or byProducts, and a conflict between the two paths should be visible in logs rather than silently resolved.
I would also define the fallback clearly. If a TaskRun has no artifacts section at all, provenance should look exactly as it does today. If it has one that is present but empty, that is a different signal and should not quietly produce provenance with no subjects.
If it helps, I can write up a worked example for the maintainers: one TaskRun carrying both hinted results and declared artifacts, including a duplicate and a non subject output, with the exact provenance Chains should emit for it.
Eshaan Jain, independent researcher (IEEE Senior Member)