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.
Restructure documentation around reader tasks
348a43c364fbb04be834af44a7cd43a0931fa280 · Keenan Nemetz · 20d ago · parent b7383c19
Restructure documentation around reader tasks Group the site by getting started, collaboration, CI, publishing, and administration. Rewrite the guides as executable procedures and move issue formats, merge semantics, configuration defaults, customization, and access-control mechanics into dedicated references. Verify the quickstart and review flow against a throwaway instance, execute the service recipe, inspect the rendered site, and run the complete verify workflow. Closes: 01M7B6X6RDYBAP3JVA5SYSA1K8
docs/quickstart.md +75−66
| @@ -1,15 +1,12 @@ | |||
| 1 | 1 | # Quickstart | |
| 2 | 2 | ||
| 3 | This takes an installed `vole` to a repository you can clone, in about five | ||
| 4 | minutes. If you have not installed it yet, do that first: [Install](install.md). | ||
| 5 | |||
| 6 | The whole page is one path, so work down it in order. Each step prints what it | ||
| 7 | did; nothing is silent. | ||
| 3 | Create a local Vole instance, push a first commit, and open an issue. You need an | ||
| 4 | installed `vole`, Git configured with your author name and email, and an SSH | ||
| 5 | public key. Start in an empty workspace and follow the steps in order. | ||
| 8 | 6 | ||
| 9 | 7 | ## 1. Create an instance | |
| 10 | 8 | ||
| 11 | An instance is a configuration file and a directory of state. Pick a directory | ||
| 12 | for it and let Vole create both: | ||
| 9 | An instance is a configuration file and a data directory: | ||
| 13 | 10 | ||
| 14 | 11 | ```sh | |
| 15 | 12 | mkdir forge | |
| @@ -17,124 +14,136 @@ cd forge | |||
| 17 | 14 | vole admin init --dir . | |
| 18 | 15 | ``` | |
| 19 | 16 | ||
| 20 | ```text | ||
| 21 | vole.toml settings | ||
| 22 | data/users.db accounts, SSH keys, access rules, and locks | ||
| 23 | data/repos/ your Git repositories | ||
| 24 | data/audit.log a record of privileged actions | ||
| 25 | ``` | ||
| 17 | Vole writes `vole.toml` and `data/`. The configuration uses absolute paths, so | ||
| 18 | you can return to this directory and start the server later. | ||
| 26 | 19 | ||
| 27 | `vole admin init` writes an absolute path into `vole.toml`, so you can start Vole | ||
| 28 | from another directory later. If you initialise into `~/.vole`, commands run from | ||
| 29 | anywhere find that instance. For any other location, pass `--config` or set | ||
| 30 | `VOLE_CONFIG` (see [Configuration](configuration.md#which-config-vole-reads)). | ||
| 20 | Commands find `./vole.toml` automatically. If you initialize the instance | ||
| 21 | somewhere else, pass `--config <path>` or set `VOLE_CONFIG`; see | ||
| 22 | [Which config Vole reads](configuration.md#which-config-vole-reads). | ||
| 31 | 23 | ||
| 32 | 24 | ## 2. Create your account | |
| 33 | 25 | ||
| 34 | An account is always created with a credential — an SSH key, or a passkey | ||
| 35 | enrollment link — never as a bare name, so a name cannot be claimed by somebody | ||
| 36 | who cannot sign in. For Git, an SSH key is the one you want: | ||
| 26 | Register the SSH key you will use for Git: | ||
| 37 | 27 | ||
| 38 | 28 | ```sh | |
| 39 | 29 | vole admin account create you --key ~/.ssh/id_ed25519.pub | |
| 40 | 30 | ``` | |
| 41 | 31 | ||
| 42 | Use `vole admin account add-key` later to attach more keys. The name is permanent, | ||
| 43 | and a contributor's branches live under `refs/heads/contrib/<name>/`. | ||
| 32 | Replace `you` with an account name and the key path if yours differs. The output | ||
| 33 | names the account and key fingerprint: | ||
| 34 | |||
| 35 | ```text | ||
| 36 | you | ||
| 37 | key SHA256:<fingerprint> | ||
| 38 | ``` | ||
| 39 | |||
| 40 | To create a browser-only account instead, omit `--key`. Vole then prints a | ||
| 41 | one-time passkey enrollment token, or an enrollment link when `public_url` is | ||
| 42 | configured. You do not need that account for this quickstart. | ||
| 44 | 43 | ||
| 45 | 44 | ## 3. Create a repository | |
| 46 | 45 | ||
| 47 | 46 | ```sh | |
| 48 | vole admin repo create --owner you demo | ||
| 47 | vole admin repo create demo --owner you | ||
| 49 | 48 | ``` | |
| 50 | 49 | ||
| 51 | You are its admin, because you are its owner. New repositories are private: the | ||
| 52 | web page and the anonymous clone URL stay unreadable until you say otherwise. | ||
| 50 | The repository starts private, with `you` as its admin. That is enough for an | ||
| 51 | SSH clone. To allow anonymous reads, publish it: | ||
| 53 | 52 | ||
| 54 | 53 | ```sh | |
| 55 | 54 | vole admin acl set-default-role demo read | |
| 56 | 55 | ``` | |
| 57 | 56 | ||
| 58 | That makes `demo` publicly readable. Skip it if the repository should stay | ||
| 59 | private; the SSH clone below works either way. | ||
| 57 | Skip that command if you want `demo` to remain private. | ||
| 60 | 58 | ||
| 61 | 59 | ## 4. Start the server | |
| 62 | 60 | ||
| 61 | From the instance directory, run: | ||
| 62 | |||
| 63 | 63 | ```sh | |
| 64 | 64 | vole serve | |
| 65 | 65 | ``` | |
| 66 | 66 | ||
| 67 | Leave it running and open a second terminal. By default Vole listens on: | ||
| 67 | Leave this process running and open a second terminal. The default listeners | ||
| 68 | are: | ||
| 68 | 69 | ||
| 69 | - `127.0.0.1:2222` for SSH, which is how you push and authenticate. | ||
| 70 | - `127.0.0.1:8080` for the web interface and anonymous cloning. Reads are open | ||
| 71 | to everyone; writes need a passkey session. | ||
| 70 | - `127.0.0.1:2222` for authenticated Git over SSH; | ||
| 71 | - `127.0.0.1:8080` for the web interface and read-only Git over HTTP. | ||
| 72 | 72 | ||
| 73 | Both are bound to loopback, which is what you want on a laptop. For a machine | ||
| 74 | other people reach, see [Deploying](deploy/index.md). | ||
| 73 | Both listeners use loopback, so other machines cannot connect to this local | ||
| 74 | instance. | ||
| 75 | 75 | ||
| 76 | 76 | ## 5. Clone and push | |
| 77 | 77 | ||
| 78 | From a workspace in the second terminal: | ||
| 79 | |||
| 78 | 80 | ```sh | |
| 79 | 81 | git clone ssh://git@127.0.0.1:2222/demo.git | |
| 80 | 82 | cd demo | |
| 81 | 83 | ``` | |
| 82 | 84 | ||
| 83 | The clone is read and write, using the key you registered. (The web interface | ||
| 84 | serves the same repository read-only at `http://127.0.0.1:8080/demo.git`, with no | ||
| 85 | credentials; you do not need it for this walkthrough.) | ||
| 86 | |||
| 87 | The new repository is empty, so make the first commit and push it: | ||
| 85 | The repository is empty. Create a commit on `main` and push it: | ||
| 88 | 86 | ||
| 89 | 87 | ```sh | |
| 90 | echo "# demo" > README.md | ||
| 88 | printf '# demo\n' > README.md | ||
| 91 | 89 | git add README.md | |
| 92 | 90 | git commit -m "Start the repository" | |
| 93 | git push -u origin HEAD | ||
| 91 | git branch -M main | ||
| 92 | git push -u origin main | ||
| 94 | 93 | ``` | |
| 95 | 94 | ||
| 96 | `HEAD` is the branch you are on; Vole names it from the push. Then confirm which | ||
| 97 | account your key resolved to, and the role it holds here: | ||
| 95 | Confirm which account and role your SSH key has on this repository: | ||
| 98 | 96 | ||
| 99 | 97 | ```sh | |
| 100 | 98 | vole whoami | |
| 101 | 99 | vole whoami --role | |
| 102 | 100 | ``` | |
| 103 | 101 | ||
| 102 | ```text | ||
| 103 | you | ||
| 104 | admin | ||
| 105 | ``` | ||
| 106 | |||
| 104 | 107 | ## 6. Open an issue | |
| 105 | 108 | ||
| 106 | Issues are written to the repository's `vole` branch, so this works from the same | ||
| 107 | clone, over the same key: | ||
| 109 | Run this from the clone: | ||
| 110 | |||
| 111 | ```sh | ||
| 112 | vole issue new --title "Write the introduction" \ | ||
| 113 | -m "Explain what a new reader can do with demo." | ||
| 114 | vole issue list --format '%(number) %(state) %(author) %(title)' | ||
| 115 | ``` | ||
| 116 | |||
| 117 | ```text | ||
| 118 | #1 open you Write the introduction | ||
| 119 | ``` | ||
| 120 | |||
| 121 | The CLI writes the issue to the repository's `vole` branch and pushes it over | ||
| 122 | SSH. Inspect both source and issue history with: | ||
| 108 | 123 | ||
| 109 | 124 | ```sh | |
| 110 | vole issue new --title "Docs are blank" -m "The index page renders nothing." | ||
| 111 | vole issue list | ||
| 112 | 125 | git log --all --oneline -3 | |
| 113 | 126 | ``` | |
| 114 | 127 | ||
| 115 | The last command shows it: the issue is a commit of its own, not a row somewhere | ||
| 116 | else. The branch is called `vole`, and the CLI keeps it in your clone. | ||
| 128 | A clone therefore contains the issue as well as the code. [Issues](issues.md) | ||
| 129 | explains identifiers, comments, and triage. | ||
| 117 | 130 | ||
| 118 | ## 7. The browser comes next | ||
| 131 | ## Enable browser sign-in | ||
| 119 | 132 | ||
| 120 | The web interface serves reads to everyone, but signing in needs a passkey, and a | ||
| 121 | passkey needs HTTPS. On a loopback instance with no `public_url`, Vole starts with | ||
| 122 | browser sign-in disabled — that is deliberate, and it is why this page stops at the | ||
| 123 | command line. | ||
| 133 | This local server allows anonymous reads, but browser sign-in is disabled. | ||
| 134 | Passkeys require an HTTPS `public_url`, so the startup log reports `browser login | ||
| 135 | disabled` for this configuration. | ||
| 124 | 136 | ||
| 125 | When you give the instance a name and a certificate, sign-in turns on: | ||
| 137 | To use browser writes, deploy Vole behind HTTPS and enroll a passkey: | ||
| 126 | 138 | ||
| 127 | - [Deploying](deploy/index.md) puts an instance behind HTTPS on a server. | ||
| 128 | - [Configuration § Automatic HTTPS with ACME](configuration.md#automatic-https-with-acme) | ||
| 129 | enables it on an existing one. | ||
| 130 | - [Accounts and access](accounts-and-access.md) issues the enrollment link that | ||
| 131 | registers the first passkey. | ||
| 139 | 1. [Deploy a server](deploy/index.md) or | ||
| 140 | [enable automatic HTTPS](configuration.md#automatic-https-with-acme). | ||
| 141 | 2. [Create an enrollment link](accounts-and-access.md#browser-sign-in). | ||
| 142 | 3. Open that link and register the passkey. | ||
| 132 | 143 | ||
| 133 | ## Where to go next | ||
| 144 | ## Next | ||
| 134 | 145 | ||
| 135 | - [Accounts and access](accounts-and-access.md) — more accounts, roles, and administration from another machine. | ||
| 136 | - [Issues](issues.md) and [Change requests](change-requests.md) — the everyday loop. | ||
| 137 | - [Workflows](workflows.md) and [Runners](runner.md) — run CI. | ||
| 138 | - [Sites](sites.md) — publish a website from a branch. | ||
| 139 | - [Configuration](configuration.md) — change addresses, limits, and the public URL. | ||
| 140 | - [Operations](operations.md) — back the instance up. Do this before you rely on it. | ||
| 146 | - [Change requests](change-requests.md) — propose and review the next commit. | ||
| 147 | - [Workflows](workflows.md) — test every push in a container. | ||
| 148 | - [Operations](operations.md#back-up-an-instance) — back up an instance before | ||
| 149 | relying on it. | ||