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.
Replace the runner allowlist with a runner role
648cd81bde97042f682a528ebb9ce6353b95bf3f · Keenan Nemetz · 1d ago · parent ea92d754
docs/runner.md +28−21
| @@ -37,28 +37,36 @@ key option and its default. | |||
| 37 | 37 | ||
| 38 | 38 | ## The runner's account | |
| 39 | 39 | ||
| 40 | The SSH account behind a runner is its identity in the allowlist, logs, and run | ||
| 41 | records. Create a bot and trust it per repository: | ||
| 40 | The SSH account behind a runner is its identity in logs, run records, and the | ||
| 41 | runner role. Create a bot and grant it the role per repository: | ||
| 42 | 42 | ||
| 43 | 43 | ```sh | |
| 44 | 44 | vole admin account create ci-runner-1 --bot --key ci-runner-1.pub | |
| 45 | vole admin acl runners add demo ci-runner-1 | ||
| 46 | vole admin acl set-role demo ci-runner-1 read | ||
| 45 | vole admin acl set-role demo ci-runner-1 runner | ||
| 47 | 46 | ``` | |
| 48 | 47 | ||
| 49 | The allowlist authorizes its results. The `read` grant lets it clone a private | ||
| 50 | repository without giving it write access; a public repository does not need | ||
| 51 | that explicit grant. Admins are implicitly trusted reporters, but bots cannot be | ||
| 52 | instance admins, preventing a runner key from bypassing repository allowlists. | ||
| 48 | The runner role authorizes the account's results, lets it lease jobs, and lets it | ||
| 49 | publish the site and artifacts its jobs declare. It implies `read` and | ||
| 50 | `contribute`, so the bot can clone a private repository and use its own | ||
| 51 | contributor branch. It is below `maintain`, so it cannot move a shared branch, | ||
| 52 | triage, or approve. Maintainers and admins are runners implicitly, but bots | ||
| 53 | cannot be instance admins, preventing a runner key from acquiring instance-wide | ||
| 54 | trust. | ||
| 55 | |||
| 56 | A repository whose workflow declares `pages:` or `artifacts:` requires this role | ||
| 57 | for the runner that builds it. The old `acl runners` allowlist is gone; an | ||
| 58 | existing entry moves to the runner role when the rules are read. | ||
| 53 | 59 | ||
| 54 | 60 | Keep one long-lived key per runner machine, readable only by its service user. | |
| 55 | 61 | Remove the key or retire the account to revoke the machine. This key belongs to | |
| 56 | 62 | the runner process. A job using `acts-as:` receives a separate per-run credential | |
| 57 | that cannot lease work. | ||
| 63 | that cannot lease work. The site, artifact, and release writes after the steps run | ||
| 64 | in the runner process, so they use the runner account's role; the `acts-as` | ||
| 65 | credential covers the job's own steps, not those uploads. | ||
| 58 | 66 | ||
| 59 | A runner can read every secret declared by its jobs. The allowlist therefore | ||
| 60 | trusts both the machine and the people controlling it, not only its container | ||
| 61 | runtime. | ||
| 67 | A runner can read every secret declared by its jobs. Granting the runner role | ||
| 68 | therefore trusts both the machine and the people controlling it, not only its | ||
| 69 | container runtime. | ||
| 62 | 70 | ||
| 63 | 71 | ## Host key verification | |
| 64 | 72 | ||
| @@ -279,19 +287,18 @@ about to run. A value of `0` disables the size cap. | |||
| 279 | 287 | ||
| 280 | 288 | ## Who can run jobs and report results | |
| 281 | 289 | ||
| 282 | Manage the trusted-runner allowlist with: | ||
| 290 | Grant the runner role per repository: | ||
| 283 | 291 | ||
| 284 | 292 | ```sh | |
| 285 | vole admin acl runners list demo | ||
| 286 | vole admin acl runners set demo ci-runner-1 | ||
| 287 | vole admin acl runners add demo ci-runner-2 | ||
| 288 | vole admin acl runners remove demo ci-runner-1 | ||
| 289 | vole admin acl runners clear demo | ||
| 293 | vole admin acl set-role demo ci-runner-1 runner | ||
| 294 | vole admin acl set-role demo ci-runner-2 runner | ||
| 295 | vole admin acl set-role demo ci-runner-1 read # take the trust away | ||
| 290 | 296 | ``` | |
| 291 | 297 | ||
| 292 | Admins always count. Results from other accounts are recorded but do not satisfy | ||
| 293 | required checks unless the account is allowlisted and active. The run page shows | ||
| 294 | whether a result counts. | ||
| 298 | Maintainers and admins always count. Results from other accounts are recorded but | ||
| 299 | do not satisfy required checks unless the account holds the runner role and is | ||
| 300 | active. The runner role also authorizes the site branch and artifact uploads, so a | ||
| 301 | job that publishes either needs it. The run page shows whether a result counts. | ||
| 295 | 302 | ||
| 296 | 303 | The runner streams logs and finishes the attempt over the authenticated channel | |
| 297 | 304 | that leased it. The server checks that the account holds the lease, the record | |