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.
Correct the front-door steps the deployment proved wrong
8a4af42e3ce2baa444d46b048c55c6dd90298ca7 · Keenan Nemetz · 16d ago · parent 16a92c6f
Correct the front-door steps the deployment proved wrong Two things in the steps only fail on a real machine. `systemctl reload sshd` is not a unit on Ubuntu 24.04: the service is `ssh`. The deploy page and the drop-in's own header now reload `ssh` and say that the unit is `sshd` on RHEL, because a person following the steps stops here. And a repository-scoped command needs the repository in its remote. `vole whoami --remote ssh://host` answers "names no repository"; so do `vole secret` and `vole run`. The examples now name the repository, and say plainly that `vole admin` and `vole runner` take the instance alone — that difference is real and was invisible in a block of look-alike commands. Both were found by following the page on the forge and the runner today, not by reading it.
docs/deploy/index.md +14−9
| @@ -232,7 +232,7 @@ The package creates the `git` account and ships the drop-in at | |||
| 232 | 232 | ||
| 233 | 233 | ```sh | |
| 234 | 234 | echo 'Include /usr/share/vole/sshd/vole.conf' | sudo tee -a /etc/ssh/sshd_config | |
| 235 | sudo sshd -t && sudo systemctl reload sshd | ||
| 235 | sudo sshd -t && sudo systemctl reload ssh # on RHEL the unit is sshd | ||
| 236 | 236 | ``` | |
| 237 | 237 | ||
| 238 | 238 | 3. Set the three settings in `/etc/vole/vole.toml`: | |
| @@ -257,24 +257,28 @@ Then check the three answers that matter: | |||
| 257 | 257 | ||
| 258 | 258 | ```sh | |
| 259 | 259 | ssh git@forge.example.com # refused: this account runs no shell | |
| 260 | vole whoami --remote ssh://git@forge.example.com | ||
| 260 | vole whoami --remote ssh://git@forge.example.com/demo.git | ||
| 261 | 261 | git clone ssh://git@forge.example.com/demo.git | |
| 262 | 262 | ``` | |
| 263 | 263 | ||
| 264 | 264 | `vole whoami` returning your account name means sshd resolved your key to it and | |
| 265 | 265 | the forced command reached the service. | |
| 266 | 266 | ||
| 267 | Every remote command takes the same portless URL, because they all use the same | ||
| 268 | SSH endpoint: | ||
| 267 | The port disappears from every remote the same way, because they all use the same | ||
| 268 | SSH endpoint. A command that acts on a repository names it in the URL; | ||
| 269 | `vole admin` and `vole runner` name only the instance: | ||
| 269 | 270 | ||
| 270 | 271 | ```sh | |
| 272 | vole whoami --role --remote ssh://forge.example.com/demo.git | ||
| 273 | vole secret list demo --remote ssh://forge.example.com/demo.git | ||
| 274 | vole change show 42 --remote ssh://forge.example.com/demo.git | ||
| 275 | vole run list --remote ssh://forge.example.com/demo.git | ||
| 271 | 276 | vole admin --remote ssh://forge.example.com account invite admin | |
| 272 | vole secret list demo --remote ssh://forge.example.com | ||
| 273 | vole change show 42 --remote ssh://forge.example.com | ||
| 274 | vole run list --remote ssh://forge.example.com | ||
| 275 | 277 | vole runner --remote ssh://forge.example.com | |
| 276 | 278 | ``` | |
| 277 | 279 | ||
| 280 | Inside a clone, `--remote origin` is the shorter form of the repository ones. | ||
| 281 | |||
| 278 | 282 | A `:2222` in an example elsewhere on this site belongs to Vole's own listener; | |
| 279 | 283 | drop it for an instance whose sshd is the front door. | |
| 280 | 284 | ||
| @@ -300,8 +304,9 @@ drop it for an instance whose sshd is the front door. | |||
| 300 | 304 | survive a restore, and `data/ssh_host_ed25519_key` is only used by direct mode. | |
| 301 | 305 | ||
| 302 | 306 | To go back, reverse the four steps: set `ssh_listen = "tcp"` and `ssh_addr` to the | |
| 303 | built-in listener's address, remove the `Include` line, `sshd -t`, reload sshd, | ||
| 304 | restart Vole, and put `:2222` back in the remotes and runner arguments. | ||
| 307 | built-in listener's address, remove the `Include` line, `sshd -t`, reload the SSH | ||
| 308 | service (`ssh` on Debian and Ubuntu, `sshd` on RHEL), restart Vole, and put | ||
| 309 | `:2222` back in the remotes and runner arguments. | ||
| 305 | 310 | ||
| 306 | 311 | ## Troubleshoot | |
| 307 | 312 | ||