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.
|
09610c0f
Keenan Nemetz
16d ago
|
1 | # The system sshd as Vole's front door. |
| 2 | # | |
|
883ffcc9
Keenan Nemetz
12d ago
|
3 | # This file is rendered, not installed: Vole never edits /etc/ssh. To enable the |
| 4 | # front door: | |
|
09610c0f
Keenan Nemetz
16d ago
|
5 | # |
| 6 | # 1. Append this line at the END of /etc/ssh/sshd_config. It must be last: a | |
| 7 | # Match block applies to everything after it, so an Include placed above | |
| 8 | # other settings would silently scope them to the matched user. | |
| 9 | # | |
| 10 | # Include /usr/share/vole/sshd/vole.conf | |
| 11 | # | |
|
8a4af42e
Keenan Nemetz
16d ago
|
12 | # 2. sshd -t && systemctl reload ssh # the unit is sshd on RHEL |
|
09610c0f
Keenan Nemetz
16d ago
|
13 | # |
| 14 | # 3. In /etc/vole/vole.toml set: | |
| 15 | # | |
| 16 | # ssh_listen = "socket" | |
| 17 | # ssh_addr = "0.0.0.0:22" | |
|
883ffcc9
Keenan Nemetz
12d ago
|
18 | # ssh_socket = "/run/vole/ssh.sock" |
|
09610c0f
Keenan Nemetz
16d ago
|
19 | # ssh_public_host_key_file = "/etc/ssh/ssh_host_ed25519_key.pub" |
| 20 | # | |
| 21 | # ssh_addr is what generated clone URLs carry: port 22 is omitted, so the | |
| 22 | # URL is ssh://git@host/repo.git. | |
| 23 | # | |
| 24 | # 4. systemctl restart vole | |
| 25 | # | |
| 26 | # If this instance uses a different ssh_user, change the Match line below to | |
| 27 | # name it, and create that account with this file as its shell: | |
| 28 | # | |
| 29 | # useradd --system --shell /usr/lib/vole/ssh-shell ... | |
| 30 | # | |
|
883ffcc9
Keenan Nemetz
12d ago
|
31 | # AuthorizedKeysCommandUser is the service account. |
| 32 | # | |
| 33 | # That account reads the roster and mints a session token. The forced command | |
| 34 | # runs as git, which has no access to the instance's data directory. | |
| 35 | # AuthorizedKeysFile none means sshd never reads an authorized_keys file on this | |
| 36 | # machine: the only keys it accepts are the ones Vole answers for. | |
|
09610c0f
Keenan Nemetz
16d ago
|
37 | |
| 38 | Match User git | |
| 39 | AuthorizedKeysFile none | |
| 40 | AuthorizedKeysCommand /usr/bin/vole ssh-authorized-keys --config /etc/vole/vole.toml --fingerprint %f --type %t --key %k --connection %C | |
| 41 | AuthorizedKeysCommandUser vole | |
| 42 | PasswordAuthentication no | |
| 43 | KbdInteractiveAuthentication no | |
| 44 | DisableForwarding yes | |
| 45 | PermitTTY no | |
| 46 | PermitUserRC no |