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.

docs/configuration.md +8−3

@@ -51,7 +51,10 @@ listeners on loopback until you have chosen how to expose the service.
51 51 also where generated clone URLs point.
52 52 - `"socket"` puts the system sshd in front: it authenticates the key and runs a
53 53 forced command that reaches `vole serve` over `ssh_socket`, and this process
54 binds no TCP port. `ssh_addr` then only names the host and port clone URLs
54 binds no TCP port. The package ships the sshd drop-in at
55 `/usr/share/vole/sshd/vole.conf` and does not install it;
56 [Put sshd in front of Vole](deploy/index.md#put-sshd-in-front-of-vole) has the
57 four steps. `ssh_addr` then only names the host and port clone URLs
55 58 carry (sshd on 22 makes the port disappear), `ssh_user` names the account sshd
56 59 runs, and `ssh_public_host_key_file` is sshd's public key, which a CI job
57 60 verifies instead of Vole's own.
@@ -59,8 +62,10 @@ listeners on loopback until you have chosen how to expose the service.
59 62 anonymous clone over HTTP keep working.
60 63
61 64 The `socket` mode expects sshd to run `vole ssh-authorized-keys` for a dedicated
62 `git` account whose shell is `vole ssh-shell`. That sshd configuration is the
63 operator's, not the package's, and it is not installed for you.
65 `git` account whose shell is `vole ssh-shell`. The package creates that account
66 and ships the sshd configuration; it does not install it, because editing
67 somebody's sshd is their decision. If the machine already has a `git` account, the
68 package leaves it alone and you set `ssh_user` to an account you create.
64 69
65 70 ## Public URL
66 71