Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Answer whoami --role from the repository's rules

eec0e60344bf5686fc278ba5a8415dc0777ba9e2 · Keenan Nemetz · 6d ago · parent f422c24f

Answer whoami --role from the repository's rules

A role is per repository, so whoami cannot print one truth without knowing which repository is meant. Keep the default answer name-only, for the scripts that call it, and make the role an explicit query on the remote's repository.

The server's vole-whoami verb now accepts a repository path and returns the effective role after the same private-repository rule as a fetch. A run credential may ask only about its own repository. Update the CLI help and the contributor and account docs to point at the new query.

docs/cli.md +7−1

@@ -110,7 +110,7 @@ vole admin account revoke-admin <name>
110 110 vole admin account show <name>
111 111 vole admin account list
112 112 vole admin account backup <path>
113 vole whoami [--remote <name>]
113 vole whoami [--remote <name>] [--role]
114 114 ```
115 115
116 116 Omitting `--key` creates a browser-only account and prints a one-time enrollment
@@ -125,6 +125,12 @@ The account name is the only identifier an account has. It cannot be changed: it
125 125 is the folder a `contribute` account's branches live under, so it is fixed at
126 126 creation and never reissued.
127 127
128 `vole whoami` prints the account name. With `--role` it prints the effective role
129 on the repository named by the remote: the repository's default and per-account
130 rules, with the account's instance-wide role applied where the repository is
131 public. A private repository the account cannot read is reported as not found,
132 the same as a fetch.
133
128 134 ### Repositories
129 135
130 136 ```sh