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.

deploy/cloud-init/render.sh +10−2

@@ -50,15 +50,23 @@ case "$SSH_PORT" in
50 50 exit 2
51 51 ;;
52 52 22)
53 # The system sshd authenticates and Vole answers on a Unix socket, which is the
54 # only way 22 can be Vole's without fighting sshd for it.
55 ssh_listen="socket"
56 ssh_public_host_key_file="/etc/ssh/ssh_host_ed25519_key.pub"
57 ssh_front_door="true"
53 58 ssh_url_port=""
54 59 ssh_scan_args=""
55 60 ;;
56 61 *)
62 ssh_listen="tcp"
63 ssh_public_host_key_file=""
64 ssh_front_door="false"
57 65 ssh_url_port=":$SSH_PORT"
58 66 ssh_scan_args="-p $SSH_PORT"
59 67 ;;
60 68 esac
61 export ssh_port="$SSH_PORT" ssh_url_port ssh_scan_args
69 export ssh_port="$SSH_PORT" ssh_listen ssh_public_host_key_file ssh_front_door ssh_url_port ssh_scan_args
62 70
63 71 case "$what" in
64 72 vole)
@@ -86,7 +94,7 @@ vole)
86 94 export tls_mode="$TLS_MODE"
87 95 export vole_package_url="$VOLE_PACKAGE_URL"
88 96
89 render vole.yaml hostname admin_account admin_ssh_key admin_email instance_name tls_mode vole_package_url ssh_port ssh_url_port
97 render vole.yaml hostname admin_account admin_ssh_key admin_email instance_name tls_mode vole_package_url ssh_port ssh_listen ssh_public_host_key_file ssh_front_door ssh_url_port
90 98 ;;
91 99 runner)
92 100 : "${FORGE_HOST:?set FORGE_HOST to the instance's DNS name}"