in-toto attestations in PHP?
Yes. k2gl/in-toto-attestation builds and
parses in-toto attestation Statements in PHP — the
subject + predicateType + predicate structure that tools like cosign and the
GitHub attestations API expect.
The Statement is a wrapper
An in-toto Statement carries a predicate about one or more subjects. In PHP:
- The predicate — e.g.
k2gl/slsa-provenancefor build provenance, or any custom predicate (SBOM, test results). - The Statement —
k2gl/in-toto-attestationwraps the predicate around its subjects. - The signature —
k2gl/dsseenvelopes the Statement;k2gl/sigstore-signproduces a full bundle, andk2gl/sigstore-verifyverifies it (this is exactly what GitHub build-provenance attestations are).
Install
composer require k2gl/in-toto-attestation
See the supply-chain overview.