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.

Name role capabilities consistently

cc5123a549d8d0991e74a88fff8208b5071d1192 · Keenan Nemetz · 1d ago · parent 648cd81b

docs/accounts-and-access.md +25−24

@@ -11,7 +11,7 @@ Instance admins create accounts on the host or through remote administration.
11 11 For Git access, register an SSH public key:
12 12
13 13 ```sh
14 vole admin account create alice --key alice.pub --role contribute
14 vole admin account create alice --key alice.pub --role contributor
15 15 ```
16 16
17 17 For a browser-first account, omit `--key`:
@@ -72,10 +72,11 @@ repositories; an instance admin administers every repository.
72 72 | Role | Capabilities |
73 73 |---|---|
74 74 | `none` | No repository access |
75 | `read` | Clone, fetch, and browse |
76 | `contribute` | Read, discuss, push the account's own contributor branches, and open requests from them |
77 | `maintain` | Contribute, push shared branches, triage, approve requests, and manage repository secrets |
78 | `admin` | Maintain, manage access, push protected branches, override locks, and repair metadata |
75 | `reader` | Clone, fetch, and browse |
76 | `contributor` | Read, discuss, push the account's own contributor branches, and open requests from them |
77 | `runner` | Contributor, plus run jobs, report checks that count, and publish sites and artifacts |
78 | `maintainer` | Runner, plus push shared branches, triage, approve requests, and manage repository secrets |
79 | `admin` | Maintainer, plus manage access, push protected branches, override locks, and repair metadata |
79 80
80 81 A new repository is private: its default role is `none` and it has no account
81 82 entries, so only instance admins can read it. Anonymous visitors receive `404`
@@ -84,7 +85,7 @@ for private repositories. Create one public with `--visibility public`.
84 85 Publish a repository by giving everyone read access:
85 86
86 87 ```sh
87 vole admin acl set-default-role demo read
88 vole admin acl set-default-role demo reader
88 89 ```
89 90
90 91 Make it private again with `none`. Explicit account entries remain unchanged.
@@ -95,27 +96,27 @@ Inspect and change repository rules with:
95 96
96 97 ```sh
97 98 vole admin acl show demo
98 vole admin acl set-role demo alice maintain
99 vole admin acl set-role demo bob contribute
100 vole admin acl set-role demo carol read
99 vole admin acl set-role demo alice maintainer
100 vole admin acl set-role demo bob contributor
101 vole admin acl set-role demo carol reader
101 102 vole admin acl set-role demo carol none
102 103 ```
103 104
104 105 `none` removes the explicit repository entry. It does not lower an instance-wide
105 role. The accepted role names are `none`, `read`, `contribute`, `runner`,
106 `maintain`, and `admin`; `contributor` and `contrib` alias `contribute`, while
107 `write` is the historical alias for `maintain`.
106 role. The accepted role names are `none`, `reader`, `contributor`, `runner`,
107 `maintainer`, and `admin`. The older spellings `read`, `contribute`, and
108 `maintain` are still accepted, as are `contrib` and the historical `write`.
108 109
109 `runner` sits between `contribute` and `maintain`. It is the CI identity: it may
110 lease and run jobs, report checks that count, and publish the repository's site
111 and declared artifacts. It implies read and contribute, so it can clone and use
112 its own contributor branch, but it cannot push a shared branch, triage, or
113 approve. Maintainers and admins are runners implicitly.
110 `runner` sits between `contributor` and `maintainer`. It is the CI identity: it
111 may lease and run jobs, report checks that count, and publish the repository's
112 site and declared artifacts. It is above `reader` and `contributor`, so it can
113 clone and use its own contributor branch, but it cannot push a shared branch,
114 triage, or approve. Maintainers and admins are runners implicitly.
114 115
115 116 Set an instance-wide role on the account instead:
116 117
117 118 ```sh
118 vole admin account role alice maintain
119 vole admin account role alice maintainer
119 120 vole admin account role bob none
120 121 ```
121 122
@@ -161,7 +162,7 @@ That account can then administer the instance over SSH:
161 162 vole admin --remote ssh://git@forge.example.com:2222 account create bob --key bob.pub
162 163 vole admin --remote origin repo create demo
163 164 vole admin --remote origin acl set-role demo bob admin
164 vole admin --remote origin acl set-default-role demo read
165 vole admin --remote origin acl set-default-role demo reader
165 166 vole admin --remote origin --json account list
166 167 ```
167 168
@@ -186,14 +187,14 @@ Create a bot when automation needs an attributable identity:
186 187
187 188 ```sh
188 189 vole admin account create coding-agent \
189 --bot --key agent.pub --role contribute
190 --bot --key agent.pub --role contributor
190 191 ```
191 192
192 193 A bot cannot sign in to the browser or become an instance admin. Its repository
193 role otherwise works like a person's: a `contribute` bot uses contributor
194 branches and waits for CI approval, a `runner` bot runs this repository's jobs and
195 publishes their declared outputs without gaining shared-branch write, and a
196 `maintain` bot can push shared branches and receive declared secrets.
194 role otherwise works like a person's: a `contributor` bot uses contributor
195 branches and waits for CI approval, a `runner` bot runs this repository's jobs
196 and publishes their declared outputs without gaining shared-branch write, and a
197 `maintainer` bot can push shared branches and receive declared secrets.
197 198
198 199 A workflow with `acts-as: coding-agent` receives a credential created for that
199 200 run instead of using the bot's long-lived key. A runner process uses its bot's