Chainloop — Attestation Control Plane Fix (contributor)

Live

Merged fix for a slice-out-of-range panic in Chainloop's (Go, Apache 2.0) attestation state decryption: truncated ciphertext now returns an error instead of crashing the control plane. Commits are SSH-signed with DCO sign-off.

Oct 2026 – now· Open source· 0 views

Overview#

Chainloop is supply-chain and agentic-SDLC infrastructure: signed records of what CI/CD pipelines and AI coding agents did, checked against policies as code, built on Sigstore and in-toto.

Contribution#

  • #3615 — fix(controlplane): return error on short attestation state ciphertext (fixes #3600).
  • decrypt checked the salt and IV lengths but not the remaining payload before comparing it with the magic prefix. A stored value of 32–44 bytes passed the early checks and panicked. The fix adds the missing length check and a table-driven regression test for truncated inputs.
  • Merged on 2026-10-15. Before merge, main moved: rebased onto a concurrent fix that created the same test file and kept both test suites.

What I learned#

  • Projects with supply-chain focus expect verified commits: commits are SSH-signed and carry a DCO Signed-off-by trailer.
  • In a monorepo, integration tests that need Docker run only in CI; the local loop uses SKIP_INTEGRATION=true.

Tech stack: Go, cryptography (state encryption), Sigstore ecosystem

More projects