Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Witness

$ witness Foundation Med Risk
in-toto · Security & Secrets · Apache-2.0 · macos / linux / windows

Witness (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.

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
brew install witness
CLI vs MCP Decision CLI Only

Supply-chain attestation wrapping (witness run -- <cmd>) and cryptographic policy verification (witness verify) must run directly in the local build environment.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

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 verify and run with -- command delimiter
Trust & Safety 20 / 25

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
Setup & Portability 14 / 15

Single static Go binary via Homebrew, go install, and GitHub releases across macOS, Linux, and Windows.

  • Zero-dependency Go binary
Utility & Efficiency 12 / 15

Rich pluggable attestors (git, environment, maven, sarif, spdx, oci) for SLSA provenance and policy enforcement.

  • End-to-end attestation generation + Rego policy verification
Maintenance & Lineage 9 / 10

CNCF / in-toto official project (in-toto/witness) under Apache-2.0.

  • Hosted under in-toto GitHub org
Docs & Verifiability 7 / 10

Official docs at witness.dev/docs cover attestors, signers, and policy creation.

  • Official docs at witness.dev/docs/

Security, Auth & Guardrails

Auth Modes
No Auth Config File OS Keychain OAuth Browser
Credential Storage

Reads .witness.yaml, signing keys via -k/--signer-file-key-path, Cloud KMS URIs (--signer-kms-ref), or ephemeral Sigstore Fulcio OIDC tokens.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

100% free and open-source (Apache-2.0); optional KMS or hosted Archivista services follow their own pricing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Verify build attestations against a signed policy
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

Wrap a build command and emit a signed attestation
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 verify requires a signed Rego policy file, adding policy-authoring setup overhead.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI