A stolen GitHub account shouldn't be able to ship to production.
shipgate is a deploy gate. It refuses to run code in production unless every change was signed with a physical security key, approved by a second enrolled person, and verified at deploy time against a policy that lives outside the code forge.
Status: pre-alpha. Everything in v0.1 is implemented, and every gittuf step has been run against gittuf v0.18 with software keys. It has not yet been run end to end with hardware keys and a real cluster, so keep the webhook in audit mode. Everything fails closed. See docs/issues.md for the v0.1 plan.
In November 2026 an attacker used a compromised employee GitHub account at 1Password to push malicious code into backend services, which then pulled customer metadata. Vault contents stayed safe, but a valid GitHub session was the only thing between the attacker and production. Most pipelines work the same way.
Branch protection and required reviews are configured by GitHub accounts, so a stolen admin account can relax them. Keyless signing binds to the same login that was stolen. shipgate requires something a stolen token can't produce, and checks it with something the stolen account can't reconfigure.
| Attack step | shipgate control |
|---|---|
| Session or token stolen | Commits signed with a FIDO2 key, touch + PIN required (shipgate enroll) |
| Push from the stolen account | Second enrolled person approves with their own key (shipgate approve) |
| Build and deploy | Admission webhook verifies provenance and gittuf policy outside GitHub (shipgate webhook-serve) |
| Policy tampering | Trust root changes need M-of-N hardware signatures (gittuf root) |
shipgate builds on gittuf (policy and reference state log), in-toto (attestations) and Sigstore/SLSA (build provenance). It is an opinionated layer on top of them, not a replacement.
Needs the gittuf CLI and a repo set up with
shipgate init(see Get started).
# author
git commit # touch + PIN, signed with author's key
git push origin feature-x
gittuf rsl record feature-x --remote-name origin # touch + PIN
# reviewer: reads the diff in the GitHub PR as usual, then
shipgate approve feature-x # touch + PIN, signed with reviewer's key
# either of them
shipgate merge feature-x # checks approvals, merges, records it, pushesshipgate approve creates a signed attestation, made with the reviewer's own
security key, approving the change from the current tree of main to the
proposed tree. It is stored in gittuf's refs (refs/gittuf/*), not in GitHub.
Before you touch the key, it shows the commits, their signers and the diffstat.
shipgate merge builds a merge commit with exactly the approved tree, runs
gittuf verify-ref locally, and pushes the branch and the RSL entry together.
If the remote moved in the meantime, nothing is pushed.
- The approver must be a different enrolled person than the author.
- The approval is bound to the exact tree. Any new commit or force-push voids it.
- It requires a physical touch and PIN.
Why not GitHub's Approve button? A GitHub approval is an action taken by a session. Admins can bypass required reviews, and two stolen accounts can approve each other. shipgate needs two people's physical keys and PINs.
Teams keep using GitHub PRs for reading code and discussion. shipgate approve
is the step that makes the approval count.
Read this before deploying it.
- Reading source code with a stolen token. Use short-lived tokens and keep secrets out of repos.
- A malicious workflow stealing CI secrets on an unprotected branch. Scope secrets to protected environments.
- Malware on a developer's machine waiting for a legitimate key touch. PIN-required keys reduce this; they don't eliminate it.
- Rubber-stamped reviews, insider collusion and poisoned dependencies.
See docs/threat-model.md.
shipgate enroll --comment you@example.com # each person: hardware key + git signing
shipgate init propose --person alice=alice.pub --person bob=bob.pub # one person
shipgate init sign # the other person reviews and co-signs
shipgate init apply # turns the gate on for main
helm install shipgate oci://ghcr.io/hsouf/charts/shipgate \
--namespace shipgate-system --create-namespace --set 'repos[0]=github.com/acme/app'The full walkthrough, including building images with provenance, is in docs/getting-started.md.
- v0.1: enroll, init, approve, merge, verify, admission webhook in audit mode (done, untested with hardware); "stolen token" e2e demo (#18).
- Later: break-glass, merge bot with HSM key, Argo CD / Flux plugins, eBPF egress allowlist, GitHub audit-log detection.
Start with docs/issues.md. Issues labelled spike come first
because their answers can change the design. good-first-issue: #9, #17.
Apache-2.0
