Overview
go-vcs
A light, secure Git forge for people and agents, written in Go: repository hosting, a web UI, an administration API over gRPC, and Actions runners scheduled through GARM.
It is early. The admin gRPC API and its CLI, and read-only
git clone and git fetch over SSH and smart HTTP (protocol v2), are
implemented (milestone 2), as are OIDC sign-in and a read-only web UI
(milestone 3). git push over SSH is served too (milestone 4, forge v0.1.0).
In actions, the expression evaluator and the workflow parser are merged; the
planner is not. This site says which is which; it does
not describe the design as if it were running.
Why it exists
go-vcs is written to replace a Forgejo install whose security design conflicts with ours: an OAuth2 client secret that can only be given on a command line or a web form, server secrets held inline in one configuration file, and OAuth2 auto-registration that ignores the switch meant to disable registration. Each conflict is cited to the source line it was read in, in the design document.
It is designed from its own stated semantics, not for compatibility with Gitea or Forgejo. The one deliberate compatibility is with existing runners and runner managers, because that saves building them.
Invariants
These are meant to hold for every component and to be tested, not only documented.
- No secret in argv, environment or URL. Secrets come from systemd credentials, a file descriptor or a no-echo prompt.
- Nobody gets an account by signing in. Accounts exist only through the admin API, against an allowlist.
- Identities are never linked by e-mail. An external identity is bound to an account by an explicit admin act.
- Every parser of untrusted input is fuzzed, with its corpus committed, and every input has a size, depth and time bound that a test proves is refused.
- No component trusts another through a shared static token, and there are no git hooks calling back into the server.
- Performance is measured against git itself, single core.
What is here
- Design — a summary of the design, with the milestones and what is built.
- Forge push — push over SSH: what is refused, the limits, what is not done yet.
- Actions — the expression evaluator and the workflow parser, and what is coming.
- Modules — every repository in go-vcs, with its source and its reference.