Download the PHP package k2gl/slsa-provenance without Composer
On this page you can find all versions of the php package k2gl/slsa-provenance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download k2gl/slsa-provenance
More information about k2gl/slsa-provenance
Files in k2gl/slsa-provenance
Package slsa-provenance
Short Description SLSA Provenance predicates (v1 and v0.2) for PHP
License MIT
Homepage https://github.com/k2gl/slsa-provenance
Informations about the package slsa-provenance
k2gl/slsa-provenance
Typed SLSA Provenance predicates for PHP, both the current v1 and the legacy v0.2 that most real-world bundles still carry. Built on in-toto attestations.
SLSA Provenance describes how an artifact was built — the build definition (inputs)
and the run details (who built it, when, and what came out). This package models that
predicate as typed value objects and plugs it straight into an in-toto Statement, ready
to sign with k2gl/dsse.
Install
Requires PHP 8.1+. Pulls in k2gl/in-toto-attestation and k2gl/dsse.
Usage
Parsing back (after verifying the envelope's signatures):
SLSA Provenance v0.2
Most provenance found in real Sigstore bundles is the older v0.2 predicate
(https://slsa.dev/provenance/v0.2), which has a different shape from v1. It lives
under K2gl\Slsa\V02 with its own typed value objects:
Building one wraps it in an in-toto Statement v0.1 by default — the version real-world v0.2 provenance is paired with. The two versions are orthogonal, so the Statement version can be overridden:
Verification Summary (VSA)
Where provenance says how an artifact was built, a Verification Summary Attestation
(https://slsa.dev/verification_summary/v1) records that a verifier checked it against a
policy — which SLSA levels it reached and whether it passed. This is the attestation a
verifier emits, carried by an in-toto Statement v1. The same predicate covers the
Build track and the Source track approved in SLSA v1.2:
Parsing back (after verifying the envelope's signatures):
Predicate registry
Register the SLSA predicate types so in-toto's Statement::predicate() returns a typed
object instead of a raw array:
License
MIT — see LICENSE. Independent, clean-room implementation of the SLSA Provenance specification.