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/runner.md +17

@@ -18,6 +18,10 @@ vole runner --remote ssh://git@host:2222 --label linux --label arm64
18 18 vole runner --remote ssh://git@host:2222 --repos demo --repos docs
19 19 ```
20 20
21 These examples use Vole's own SSH listener on 2222. On an instance with the
22 [sshd front door](deploy/index.md#put-sshd-in-front-of-vole) the remote has no
23 port — `--remote ssh://git@host` — and nothing else about these commands changes.
24
21 25 `--label` advertises machine labels; a job must find every label in its
22 26 `runs-on`. `--repos` narrows the repositories the account may already serve and
23 27 cannot grant access. `--dir` selects checkout and cache storage, and `--once`
@@ -66,6 +70,19 @@ ssh-keyscan -p 2222 host >> ~/.ssh/known_hosts
66 70 vole runner --remote ssh://git@host:2222 --known-hosts ~/.ssh/known_hosts
67 71 ```
68 72
73 When sshd is the front door the port is sshd's, and neither the scan nor the
74 remote names one:
75
76 ```sh
77 ssh-keyscan host >> ~/.ssh/known_hosts
78 vole runner --remote ssh://git@host --known-hosts ~/.ssh/known_hosts
79 ```
80
81 The entry for that is a plain `host`; the `[host]:2222` form belongs to Vole's own
82 listener and is unused in front-door mode. Pin the form the instance actually
83 answers on: a runner that scanned the wrong one refuses to connect rather than
84 trusting it.
85
69 86 `--known-hosts` selects another file. `--insecure-host-key` accepts any host and
70 87 is only for throwaway tests. `VOLE_KNOWN_HOSTS` and `VOLE_INSECURE_HOST_KEY`
71 88 apply the corresponding policy to other Vole remote commands too.