Witness
$ witness Foundation Med RiskWitness (witness) wraps CI/build steps with witness run to emit DSSE-signed in-toto attestations (git, environment, SLSA, SPDX, OCI, SARIF) and verifies signed policies via witness verify. It supports local PEM keys, Cloud KMS, and Sigstore Fulcio keyless OIDC, plus optional Archivista attestation storage.
brew install witness Supply-chain attestation wrapping (witness run -- <cmd>) and cryptographic policy verification (witness verify) must run directly in the local build environment.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Outputs DSSE/in-toto JSON attestations and runs headlessly with explicit flags, though CLI output logs are text-based unless configured.
- Produces structured in-toto JSON attestations (
-o) - Non-interactive
verifyandrunwith--command delimiter
witness verify is strictly read-only, while witness run executes arbitrary wrapped commands and optionally uploads to Archivista (--enable-archivista).
- Handles private keys/KMS and executes wrapped build commands during
run
Single static Go binary via Homebrew, go install, and GitHub releases across macOS, Linux, and Windows.
- Zero-dependency Go binary
Rich pluggable attestors (git, environment, maven, sarif, spdx, oci) for SLSA provenance and policy enforcement.
- End-to-end attestation generation + Rego policy verification
CNCF / in-toto official project (in-toto/witness) under Apache-2.0.
- Hosted under
in-totoGitHub org
Official docs at witness.dev/docs cover attestors, signers, and policy creation.
- Official docs at witness.dev/docs/
Security, Auth & Guardrails
Reads .witness.yaml, signing keys via -k/--signer-file-key-path, Cloud KMS URIs (--signer-kms-ref), or ephemeral Sigstore Fulcio OIDC tokens.
100% free and open-source (Apache-2.0); optional KMS or hosted Archivista services follow their own pricing.
# Witness Agent Rules - Separate `witness run` flags from the wrapped command with `--` and never pass unreviewed build commands. - Omit `--enable-archivista` unless the user explicitly wants attestations uploaded to an Archivista server. - Never commit private signing keys (`-k`); prefer short-lived OIDC/KMS signers or CI secrets.
Agent-Ready Command Recipes
Safe Read-Only Queries
witness verify -a build-attestation.json -p policy-signed.json -k pub.pem
Cryptographically verifies the attestation bundle against the policy and public key without executing builds.
Controlled Writes & Previews
witness run -s build -a git -k key.pem -o build-attestation.json -- go build -o app .
Executes the wrapped go build step and writes a DSSE-signed in-toto JSON attestation to build-attestation.json.
Strengths for Agents
- + CNCF in-toto provenance CLI emitting standard DSSE JSON attestations with Rego-backed policy verification.
- + Flexible signers: local PEM files, Cloud KMS (
--signer-kms-ref), and Sigstore Fulcio keyless OIDC.
Caveats & Pitfalls
- ! Keyless Fulcio signing can trigger browser OIDC flows unless an ambient OIDC token (
--signer-fulcio-token) is provided. - !
witness verifyrequires a signed Rego policy file, adding policy-authoring setup overhead.