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.

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/quickstart.md +12−4

@@ -44,17 +44,25 @@ configured. You do not need that account for this quickstart.
44 44 ## 3. Create a repository
45 45
46 46 ```sh
47 vole admin repo create demo --owner you
47 vole admin repo create demo
48 48 ```
49 49
50 The repository starts private, with `you` as its admin. That is enough for an
51 SSH clone. To allow anonymous reads, publish it:
50 The repository starts private. Grant your account access before cloning; `admin`
51 lets you push to `main` and manage the repository:
52
53 ```sh
54 vole admin acl set-role demo you admin
55 ```
56
57 To also allow anonymous reads, publish it:
52 58
53 59 ```sh
54 60 vole admin acl set-default-role demo read
55 61 ```
56 62
57 Skip that command if you want `demo` to remain private.
63 Skip the publish step if you want `demo` to remain private. Creating it with
64 `--visibility public` makes it readable by anyone from the start; push access is
65 still a role.
58 66
59 67 ## 4. Start the server
60 68