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/deploy/runner.md +19−5
| @@ -5,8 +5,9 @@ and can read every secret its jobs declare, so it should not share storage or | |||
| 5 | 5 | credentials with the account database and SSH host key. | |
| 6 | 6 | ||
| 7 | 7 | You need a running Vole instance, an instance-admin SSH key, and an Ubuntu 24.04 | |
| 8 | or Debian 13 machine that can reach the instance on TCP port 2222. These | ||
| 9 | instructions install the same Vole package as the server but enable only | ||
| 8 | or Debian 13 machine that can reach the instance's SSH port: 2222 with Vole's own | ||
| 9 | listener, or 22 with the [sshd front door](index.md#put-sshd-in-front-of-vole). | ||
| 10 | These instructions install the same Vole package as the server but enable only | ||
| 10 | 11 | `vole-runner.service`. | |
| 11 | 12 | ||
| 12 | 13 | ## Create a runner with cloud-init | |
| @@ -18,10 +19,15 @@ From a Vole source checkout on your computer: | |||
| 18 | 19 | ```sh | |
| 19 | 20 | cd deploy/cloud-init | |
| 20 | 21 | FORGE_HOST=forge.example.com \ | |
| 22 | SSH_PORT=22 \ | ||
| 21 | 23 | VOLE_PACKAGE_URL=https://rodent.software/vole/releases/v0.2.0/artifacts/vole_0.2.0-1_amd64.deb \ | |
| 22 | 24 | ./render.sh runner > runner-user-data.yaml | |
| 23 | 25 | ``` | |
| 24 | 26 | ||
| 27 | Use the same `SSH_PORT` as the forge: `22` for its sshd front door, `2222` for | ||
| 28 | Vole's own listener. The rendered runner takes its remote and its `ssh-keyscan` | ||
| 29 | from it, so a mismatch fails the first lease. | ||
| 30 | |||
| 25 | 31 | `render.sh` requires `envsubst`, provided by `gettext-base` on Debian and Ubuntu | |
| 26 | 32 | or `gettext` on other distributions. Inspect the rendered file before using it. | |
| 27 | 33 | ||
| @@ -50,7 +56,8 @@ fingerprint through a trusted channel. Replace the file if it does not match. | |||
| 50 | 56 | ||
| 51 | 57 | | Variable | Default | Purpose | | |
| 52 | 58 | |---|---|---| | |
| 53 | | `FORGE_HOST` | required | Forge DNS name; port 2222 is used for SSH | | ||
| 59 | | `FORGE_HOST` | required | Forge DNS name; `SSH_PORT` decides what SSH means | | ||
| 60 | | `SSH_PORT` | `2222` | `22` reaches the instance through its sshd, with no port in the remote | | ||
| 54 | 61 | | `VOLE_PACKAGE_URL` | required | Debian package for the runner's architecture | | |
| 55 | 62 | | `RUNNER_HOSTNAME` | `vole-runner` | Machine host name | | |
| 56 | 63 | | `RUNNER_RUNTIME` | `podman` | OCI runtime | | |
| @@ -85,14 +92,21 @@ sudo -u ci-runner ssh-keygen -q -t ed25519 -N '' \ | |||
| 85 | 92 | ``` | |
| 86 | 93 | ||
| 87 | 94 | Pin the forge's host key. Confirm the fingerprint through a trusted channel | |
| 88 | before relying on it: | ||
| 95 | before relying on it. Without the front door Vole's own listener answers on 2222; | ||
| 96 | with it, sshd answers on 22 and the entry is a plain host name: | ||
| 89 | 97 | ||
| 90 | 98 | ```sh | |
| 91 | 99 | ssh-keyscan -p 2222 forge.example.com \ | |
| 92 | 100 | | sudo tee /etc/vole/runner_known_hosts | |
| 93 | 101 | ``` | |
| 94 | 102 | ||
| 95 | Write `/etc/vole/runner.env`: | ||
| 103 | ```sh | ||
| 104 | ssh-keyscan forge.example.com \ | ||
| 105 | | sudo tee /etc/vole/runner_known_hosts | ||
| 106 | ``` | ||
| 107 | |||
| 108 | Write `/etc/vole/runner.env`. Drop the port from `--remote` on a front-door | ||
| 109 | instance: | ||
| 96 | 110 | ||
| 97 | 111 | ```sh | |
| 98 | 112 | sudo tee /etc/vole/runner.env >/dev/null <<'EOF' | |