Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Document the front door and the way back

bca53bdad334204063f07158d6885e22c5eb69ff · Keenan Nemetz · 16d ago · parent 09610c0f

Document the front door and the way back

The feature works and the package ships it, and nothing tells anyone. This is the
deploy page's half: what the front door is, the four steps that turn it on, how to
move an existing instance onto it, and how to move back.

The cloud-init templates needed a fix before they could be documented. SSH_PORT
alone only changed the port in the rendered configuration, so SSH_PORT=22 produced
a machine whose Vole tried to bind 22 itself and lost to sshd on first boot. The
render now derives the mode as well: ssh_listen = "socket", sshd's public host key,
and a guarded block in the first-boot script that appends the Include, runs sshd
-t and reloads. It checks for the drop-in before writing anything, so a package
without it leaves the machine alone with the reason in the log.

The rest is prose that had to become true: the port table, the troubleshooting
rows, the clone-URL examples, the runner's remote and ssh-keyscan in both shapes,
the backup gaining /etc/ssh/ssh_host_ed25519_key, the quickstart saying why a
development instance stays on 2222, and the architecture page naming one SSH
endpoint per instance as a choice.

check-deploy renders both flavours and fails if the front-door one still names
2222, keeps Vole's own listener, or omits any of the three settings that make the
mode work.

The design document itself is not here: #268 has not landed, so there is no
docs/design/sshd-front-door.md on main to mark accepted, and a link to it would be
a dead relative link that check-links rejects.

ARCHITECTURE.md +9

@@ -23,6 +23,14 @@ and access rules, approval files, locks and CI records are keyed by it.
23 23 - an **SSH key** for Git over SSH, administration, and CI;
24 24 - a **passkey** for browser sessions.
25 25
26 The SSH endpoint may be Vole's own listener or the system sshd in front of it, and
27 the key resolves to an account the same way in both. With sshd in front, sshd keeps
28 the host key and runs a short forced command as an account that cannot read
29 `/var/lib/vole`; that command hands the session to `vole serve` over a local
30 socket, so the process that authenticates and the process that writes stay
31 separate, and the writer is still one. See
32 [Deploy a server](docs/deploy/index.md#put-sshd-in-front-of-vole).
33
26 34 There is no password database. The browser performs a WebAuthn ceremony, Vole
27 35 stores only the credential's public half, and the resulting session is an opaque
28 36 token whose hash alone is in `instance.db`.
@@ -134,6 +142,7 @@ and the clone URL share a name.
134 142 |---|---|
135 143 | Use the Git command-line tool | Full push behavior and hooks without reimplementing Git |
136 144 | SSH for Git writes, passkeys for the browser | Each transport gets the credential it can actually use, and both resolve to one account |
145 | One SSH endpoint per instance | Vole's listener or the system sshd in front of it — one setting — and either way `vole serve` is the only writer |
137 146 | Check everything before accepting a change | The push boundary and the narrow web writers share the same metadata validation |
138 147 | Store metadata in Git, rules in SQLite | Repository content travels with clones; local settings stay local. Release channels are the deliberate server-side exception: they are consumed from the public URL, so they live in `data/instance.db` rather than a clone. |
139 148 | Passkeys, not passwords | No shared secret to phish, reset, or store; recovery is an instance-admin-issued enrollment link |