Vole docs Source

Accounts and access#

Vole uses one account identity across transports: SSH keys authenticate Git, remote administration, and runners; passkeys authenticate browser sessions. Create the account first, then grant instance-wide or repository-specific access.

Create an account#

An instance admin can create accounts on the host or through remote administration. Choose the credential the person needs first; they can add the other credential later.

For Git access, register an SSH public key:

vole admin account create alice --key alice.pub

For browser-first access, omit --key:

vole admin account create alice

Vole prints a one-time enrollment link when public_url is configured, or an enrollment token otherwise. Send it through a private channel so Alice can register her first passkey.

To issue a replacement link later:

vole admin account invite alice

A new link invalidates the previous one, and each link expires after one use.

Creating an account does not grant access to a private repository. Continue with Grant repository access, or add --role <role> to the creation command for an instance-wide role that applies to public repositories.

Account names are permanent

Names appear in contributor branches, access rules, approvals, locks, and metadata authorship. Choose carefully; there is no rename command.

Browser sign-in#

Browser sign-in requires an HTTPS origin:

public_url = "https://forge.example.com"

To enroll and sign in:

  1. An instance admin creates the account and sends its enrollment link, or the instance enables open registration.
  2. The account owner opens the link and registers a passkey such as Touch ID, Windows Hello, a phone, or a security key.
  3. The owner signs in with that passkey. Vole creates an HttpOnly, Secure session cookie and stores only the session token's hash.

From Account, a signed-in person can add, rename, or remove passkeys; add or remove SSH keys; and review sessions. Removing the last passkey is refused when it is the account's only credential. An SSH key preserves Git access but not browser sign-in.

If every passkey is lost, an instance admin issues a fresh enrollment link. There is no password reset. See Browser credential security for token, rate-limit, and cloned-passkey protections.

Roles#

A role can be instance-wide or attached to one repository. The effective role is the highest of the repository default, the account's repository entry, and its instance-wide role. Instance-wide roles other than admin apply only to public repositories; an instance admin administers every repository.

Role Capabilities
none No repository access
reader Clone, fetch, and browse
contributor Read, discuss, push the account's own contributor branches, and open requests from them
runner Contributor, plus run jobs, report checks that count, and publish sites and artifacts
maintainer Runner, plus push shared branches, triage, approve requests, and manage repository secrets
admin Maintainer, plus manage access, push protected branches, override locks, and repair metadata

A new repository is private: its default role is none and it has no account entries, so only instance admins can read it. Anonymous visitors receive 404 for private repositories. Create one public with --visibility public.

Publish a repository by giving everyone read access:

vole admin acl set-default-role demo reader

Make it private again with none. Explicit account entries remain unchanged.

Grant repository access#

Inspect and change repository rules with:

vole admin acl show demo
vole admin acl set-role demo alice maintainer
vole admin acl set-role demo bob contributor
vole admin acl set-role demo carol reader
vole admin acl set-role demo carol none

none removes the explicit repository entry. It does not lower an instance-wide role. Use the role names shown in the table above.

runner sits between contributor and maintainer. It is the CI identity: it may lease and run jobs, report checks that count, and publish the repository's site and declared artifacts. It is above reader and contributor, so it can clone and use its own contributor branch, but it cannot push a shared branch, triage, or approve. Maintainers and admins are runners implicitly.

Set an instance-wide role on the account instead:

vole admin account role alice maintainer
vole admin account role bob none

Repository admins can use Settings → General for repository fields and visibility. Instance admins use Settings → Access for role entries, branch protection, required issues, and runner roles. Maintainers use Settings → Secrets for repository secret names and versions; values are never displayed there.

Contributors and their branches#

A contributor's Git branches live below their account namespace:

refs/heads/contrib/<account>/<branch>

For example, alice can push refs/heads/contrib/alice/fix-docs, including rebases and deletion within that namespace. The account cannot push main, tags, shared branches, or another account's namespace.

Contributors can also write permitted issue and change-request records on the vole branch. Pre-receive validates those files against the same authorship and capability rules as the browser.

Contributor CI runs the proposed code

CI waits until a maintainer chooses Allow CI for the exact commit. That decision executes the proposed workflow and image builds and delivers any declared repository secrets. Review all of them before allowing a run. Every new tip needs a new decision.

Remote administration#

Grant the first instance admin on the host:

vole admin account grant-admin alice

That account can then administer the instance over SSH:

vole admin --remote ssh://git@forge.example.com:2222 account create bob --key bob.pub
vole admin --remote origin repo create demo
vole admin --remote origin acl set-role demo bob admin
vole admin --remote origin acl set-default-role demo reader
vole admin --remote origin --json account list

An instance admin can manage every account and repository. Vole refuses to remove or retire the last active instance admin. Backups, garbage collection, and index rebuilds remain host-only operations.

In the browser, instance admins use Admin for status, accounts, runners, configuration, and the audit log. The account directory's Manage action opens role, credential, session, enrollment, and retirement controls.

From a repository clone, check the account and effective role for your current key:

vole whoami
vole whoami --role

Use --remote <name-or-ssh-url> outside a clone or when origin is not the instance you want to inspect.

Bot accounts#

Create a bot when automation needs an attributable identity:

vole admin account create coding-agent \
  --bot --key agent.pub --role contributor

A bot cannot sign in to the browser or become an instance admin. Its repository role otherwise works like a person's: a contributor bot uses contributor branches and waits for CI approval, a runner bot runs this repository's jobs and publishes their declared outputs without gaining shared-branch write, and a maintainer bot can push shared branches and receive declared secrets.

A workflow with acts-as: coding-agent receives a credential created for that run instead of using the bot's long-lived key. A runner process uses its bot's ordinary key to lease work; jobs cannot use a per-run credential to lease more work. See acts-as and The runner's account.

Manage credentials and sessions#

Instance admins can inspect and revoke credentials:

vole admin account list
vole admin account add-key alice --key alice-work.pub
vole admin account rm-key alice SHA256:<fingerprint>
vole admin account credentials alice
vole admin account rm-credential alice <credential-id>
vole admin account sessions alice
vole admin account revoke-sessions alice
vole admin account revoke-sessions --all
vole admin account retire alice

Retirement immediately disables keys and deletes sessions while preserving the account's name and history. Revoke all sessions after restoring an old account database.

Account data lives in data/instance.db, with the access rules and release channels. Back up and restore copies it consistently and includes the secrets key.

Profiles and the user directory#

/-/u lists accounts, and /-/u/<name> shows an account's activity. Counts and events include only repositories the current reader may access. Retired profiles remain available because issues and reviews still refer to their names.

Writing @name in an issue, comment, change request, or release note links to that profile. Unknown names and mentions inside code samples remain plain text. See Profiles and privacy.

Access-control details#

This section defines credential storage, browser-session protections, profile privacy, and concurrent access-rule behavior.

Identity and credential storage#

An account's permanent name is its identity. Access rules, contributor refs, approval paths, file locks, CI records, and metadata authors all use that name. There is no separate mutable display identifier. Retiring an account keeps its row and reserves the name so historical references cannot resolve to a new person.

data/instance.db stores accounts, instance roles, SSH keys, passkeys, enrollment links, browser sessions, repository access rules, file locks, and release channels. SSH and passkey credentials store public keys. Session and enrollment tokens are stored only as hashes.

Vole reloads the roster every few seconds, so key changes and retirement take effect without restarting the server. Git commit author fields are text supplied by the committer; they do not prove an account and are not used for access control.

Browser credential security#

New passkeys are discoverable credentials and require user verification. The username field supports WebAuthn conditional UI through autocomplete="username webauthn"; the username-first form remains available for unsupported browsers and older credentials.

Enrollment links are single-use and expire. Issuing another link invalidates the previous one. The token travels in the URL fragment:

https://forge.example.com/-/invite#<token>

Browsers do not send fragments to the server, proxy access logs, or referrers. Older /-/invite/<token> links redirect into this form, and Vole redacts the old path in its logs.

Session cookies are HttpOnly and Secure, and the database stores only token hashes. Retiring an account deletes its sessions. Removing a passkey deletes sessions created by that passkey, including the session used for removal. Renaming a passkey changes only its display label. Removing a final credential is refused; an SSH key counts as a remaining Git credential even though it does not provide browser sign-in.

Sign-in, registration, enrollment, and passkey creation are rate-limited by client address, with an additional account-name budget for sign-in. Ceremonies expire after five minutes and their in-flight store is bounded. Excess requests receive 429 and Retry-After. Behind a trusted proxy, configure git_http_client_ip_header so limits use visitor addresses rather than the proxy's address.

Unknown, retired, and passkey-less account names receive the same initial assertion response as valid accounts. A generic failure appears only after the ceremony, preventing the first response from enumerating accounts.

A passkey signature counter must advance. A non-advancing nonzero counter can indicate a cloned credential, so Vole refuses sign-in and records auth.clone-warning. Authenticators with broken counters can remain locked out until an admin removes the credential. Synced passkeys that always report zero follow WebAuthn's separate rule and do not trigger this refusal.

Open registration creates an account and its first passkey without an admin. Its configured instance-wide role applies only to public repositories. Accepted self-registration roles are none, reader, and contributor; runner, maintainer, and admin require an explicit admin grant. Registration has no email verification.

Access-rule evaluation#

The effective repository role is the highest of:

Instance-wide reader, contributor, runner, and maintainer do not open private repositories. Instance-wide admin administers all repositories, including private ones. A repository entry can raise an instance-wide role but cannot lower it.

Access-rule updates use compare-and-swap. A command or browser form that read an older rule version cannot overwrite a newer change. Operations that own one field, such as visibility or one role entry, reread the row and modify only that field to preserve unrelated concurrent updates.

Repository visibility switches the default role between none and reader without changing explicit entries. Private repository paths return 404 to anonymous readers so existence is not disclosed.

Every push is checked before any ref moves. Browser metadata writes use the same capabilities and validators as pre-receive. These checks cover protected branches, approvals, required checks, file limits, locks, metadata rules, and runner role. Privileged overrides and merges through review are recorded in data/audit.log.

Protected refs and trusted runners#

A protected-branch pattern is an exact ref or a prefix ending in one *. protect and related commands use list, add, remove, set, and clear to inspect, change one entry, replace the list, or empty it. Admins can push protected refs directly.

The runner role is the CI trust decision. It is ordered between contributor and maintainer, so it may lease and run jobs, have its results satisfy required checks, and publish the repository's site and declared artifacts. It is above reader and contributor but below shared-branch writes, triage, and approval. Maintainers and admins are above it and count as runners implicitly. Retired accounts stop counting even if their role entries remain.

The retired runner allowlist is read once and folded into the role: an existing allowlist entry becomes runner unless the account already held something higher. The acl runners commands are gone; use acl set-role <repo> <account> runner instead.

Contributor metadata writes#

Contributors can push only their own refs/heads/contrib/<account>/ namespace and permitted metadata records. The metadata gate accepts issues, comments, and requests that the same account could create or manage in the browser. It rejects other paths and authorship changes.

CI allow decisions name the exact contributor head and are stored in the CI queue database. A replacement or force-pushed tip waits for another decision. Allowing a tip authorizes its workflow and image build and grants declared repository secrets to the job.

Bot capabilities#

Bots have permanent account kinds as well as permanent names. They cannot receive passkeys or enrollment links, sign in to the browser, or hold the instance-admin role. Their names are labeled as bots in profiles and the user directory.

Repository roles otherwise apply normally. A maintainer bot can push shared branches, trigger CI immediately, manage items permitted by its role, approve another account's request, and receive declared secrets. A runner bot can lease and run jobs, report checks, and publish sites and artifacts, but cannot push a shared branch or approve. A contributor bot is limited to its own namespace and maintainer-approved CI.

A runner uses the bot's ordinary SSH key to authenticate the runner process. By contrast, acts-as: gives a job a new credential scoped to that repository and run. The per-run credential cannot perform instance administration, read secret values directly, or lease work. It expires when the run ends.

Retiring a bot revokes its ordinary key and stops it leasing work. Its historical issues, changes, and run records retain the bot name.

Profiles and privacy#

The account directory and profiles are public, but repository-derived counts and activity are filtered for the current reader. Two readers can therefore see different totals for the same account. Private-repository activity contributes nothing to a reader who cannot open that repository.

Profiles are derived from data/index.db, which combines Git metadata and CI records; they are not additional account records in instance.db. Keys, passkeys, sessions, and instance roles are not public. An instance admin can see the role because that account can already manage it.

The directory supports name search, active or retired filters, sortable columns, and pagination. Filter, order, and page state lives in the URL so a link reproduces the same view. Both directory and profile pages ask crawlers not to index them.

@name links to an existing account profile in issue, comment, change-request, and release Markdown. Workflow mentioned filters use the same syntax. Unknown names and code samples are not mentions.

Next#

↑↓ to move Enter to open Esc to close