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
server/ssh/repos_filter_test.go +3−2
| @@ -14,6 +14,7 @@ import ( | |||
| 14 | 14 | ||
| 15 | 15 | "rodent.software/vole/ci/runs" | |
| 16 | 16 | "rodent.software/vole/core/id" | |
| 17 | "rodent.software/vole/forge/repo" | ||
| 17 | 18 | ) | |
| 18 | 19 | ||
| 19 | 20 | func TestNarrowCanOnlySubtract(t *testing.T) { | |
| @@ -60,7 +61,7 @@ func TestARequestCannotLeaseBeyondTheAllowlist(t *testing.T) { | |||
| 60 | 61 | // A second repository the writer's account is not a runner for. Its ACL gives the | |
| 61 | 62 | // writer write access, which is exactly the distinction that matters: writing to a | |
| 62 | 63 | // repository is not permission to execute its code. | |
| 63 | other, err := h.repos.Create("other", h.writerID, "") | ||
| 64 | other, err := h.repos.Create("other", repo.CreateOptions{Owner: h.writerID}) | ||
| 64 | 65 | if err != nil { | |
| 65 | 66 | t.Fatal(err) | |
| 66 | 67 | } | |
| @@ -122,7 +123,7 @@ func TestARepoFilterTakesOnlyWhatItNames(t *testing.T) { | |||
| 122 | 123 | for _, name := range []string{"demo", "second"} { | |
| 123 | 124 | m, err := h.repos.Open(name) | |
| 124 | 125 | if err != nil { | |
| 125 | m, err = h.repos.Create(name, h.writerID, "") | ||
| 126 | m, err = h.repos.Create(name, repo.CreateOptions{Owner: h.writerID}) | ||
| 126 | 127 | if err != nil { | |
| 127 | 128 | t.Fatal(err) | |
| 128 | 129 | } | |