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.

Replace the runner allowlist with a runner role

648cd81bde97042f682a528ebb9ce6353b95bf3f · Keenan Nemetz · 1d ago · parent ea92d754

docs/cli.md +9−15

@@ -107,7 +107,7 @@ See [Quickstart](quickstart.md), [Packages](packaging.md).
107 107 ```sh
108 108 vole admin account create [--key <file|->] [--role <role>] [--bot] <name>
109 109 vole admin account invite <name>
110 vole admin account role <name> <none|read|contribute|maintain|admin>
110 vole admin account role <name> <none|read|contribute|runner|maintain|admin>
111 111 vole admin account credentials <name>
112 112 vole admin account rm-credential <name> <credential-id>
113 113 vole admin account sessions <name>
@@ -141,7 +141,7 @@ sets the account's instance-wide role; it applies to public repositories, while
141 141 |---|---|---|
142 142 | `-c, --config <path>` | all | the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml |
143 143 | `-k, --key <file\|->` | create, add-key | the public key to use; - reads standard input |
144 | `--role <role>` | create | instance-wide role: none, read, contribute, maintain, or admin |
144 | `--role <role>` | create | instance-wide role: none, read, contribute, runner, maintain, or admin |
145 145 | `--bot` | create | an automation account: no browser sign-in, and a key is required |
146 146 | `--all` | revoke-sessions | revoke every account's sessions, not just one account's |
147 147
@@ -173,8 +173,8 @@ See [Accounts and access](accounts-and-access.md).
173 173
174 174 ```sh
175 175 vole admin acl show <repo>
176 vole admin acl set-role <repo> <account> <none|read|contribute|maintain|admin>
177 vole admin acl set-default-role <repo> <none|read|contribute|maintain|admin>
176 vole admin acl set-role <repo> <account> <none|read|contribute|runner|maintain|admin>
177 vole admin acl set-default-role <repo> <none|read|contribute|runner|maintain|admin>
178 178 vole admin acl set-approvals <repo> <n>
179 179 vole admin acl checks enable <repo>
180 180 vole admin acl checks disable <repo>
@@ -185,16 +185,10 @@ vole admin acl protect add <repo> <ref-pattern>...
185 185 vole admin acl protect remove <repo> <ref-pattern>...
186 186 vole admin acl protect set <repo> <ref-pattern>...
187 187 vole admin acl protect clear <repo>
188 vole admin acl runners list <repo>
189 vole admin acl runners add <repo> <account>...
190 vole admin acl runners remove <repo> <account>...
191 vole admin acl runners set <repo> <account>...
192 vole admin acl runners clear <repo>
193 188 ```
194 189
195 190 `set-role` and `set-default-role` accept `none` to remove access. `protect set`
196 and `runners set` replace the whole list; the `add` and `remove` forms change one
197 entry at a time.
191 replaces the whole list; the `add` and `remove` forms change one entry at a time.
198 192
199 193 A protected ref pattern is either an exact ref (`refs/heads/main`) or a ref
200 194 prefix ending in one `*` (`refs/heads/release/*`), the two shapes the hook
@@ -547,14 +541,14 @@ vole runner --remote ssh://git@host[:port] [--once] [--jobs <n>] [--dir <path>]
547 541
548 542 Leases CI jobs from a Vole instance and runs them. Authentication is the SSH
549 543 key you would push with, so there is no token to configure. A runner may only
550 run jobs for repositories whose runner allowlist its account is on (admins are
551 implicit): running a job executes that repository's code, which is a bigger
552 power than writing to it.
544 run jobs for repositories where its account holds the runner role (maintainers
545 and admins are implicit): running a job executes that repository's code, which
546 is a bigger power than writing to it.
553 547
554 548 Every finished attempt commits a record to the repository's metadata branch,
555 549 together with the artifacts the build published, in one push: the runner is the
556 550 party that did the work, so the runner is the party that states the result. The
557 push authenticates with the same key, and pre-receive checks the allowlist.
551 push authenticates with the same key, and pre-receive checks the role.
558 552
559 553 Host key. A runner executes repository code, so the instance it trusts is a
560 554 security boundary. The SSH host key is verified against your known_hosts, and an