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.
Let repo create choose visibility, not an owner
d74e7e231de16fa00366dc8ccc392fc9c637b52d · Keenan Nemetz · 3d ago · parent 3455902a
Let repo create choose visibility, not an owner A repository has no owner: the argument only seeded one admin entry in the ACL store, and instance admins can already administer every repository. The create command therefore asked for a fact the repository does not keep. Replace --owner with --visibility private|public on `vole admin repo create`, the remote admin command, and the web form. The initial rule set is written once, inside the store, so a public repository is never briefly private. An admin who wants to hand a repository to someone grants a role with the acl commands, exactly as for any later access change. closes: 01M82CC7G9W46PRP89GQ5CNMDE
docs/accounts-and-access.md +5−3
| @@ -77,8 +77,9 @@ repositories; an instance admin administers every repository. | |||
| 77 | 77 | | `maintain` | Contribute, push shared branches, triage, approve requests, and manage repository secrets | | |
| 78 | 78 | | `admin` | Maintain, manage access, push protected branches, override locks, and repair metadata | | |
| 79 | 79 | ||
| 80 | A new repository is private: its default role is `none` and its owner is an | ||
| 81 | admin. Anonymous visitors receive `404` for private repositories. | ||
| 80 | A new repository is private: its default role is `none` and it has no account | ||
| 81 | entries, so only instance admins can read it. Anonymous visitors receive `404` | ||
| 82 | for private repositories. Create one public with `--visibility public`. | ||
| 82 | 83 | ||
| 83 | 84 | Publish a repository by giving everyone read access: | |
| 84 | 85 | ||
| @@ -152,7 +153,8 @@ That account can then administer the instance over SSH: | |||
| 152 | 153 | ||
| 153 | 154 | ```sh | |
| 154 | 155 | vole admin --remote ssh://git@forge.example.com:2222 account create bob --key bob.pub | |
| 155 | vole admin --remote origin repo create demo --owner bob | ||
| 156 | vole admin --remote origin repo create demo | ||
| 157 | vole admin --remote origin acl set-role demo bob admin | ||
| 156 | 158 | vole admin --remote origin acl set-default-role demo read | |
| 157 | 159 | vole admin --remote origin --json account list | |
| 158 | 160 | ``` | |