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.

Code

527 commit(s) on main

Put job execution behind an interface Keenan Nemetz · 2h ago de3eec16
history blame raw 1.7 KiB
1# The system sshd as Vole's front door.
2#
3# This file is rendered, not installed: Vole never edits /etc/ssh. To enable the
4# front door:
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#
12# 2. sshd -t && systemctl reload ssh # the unit is sshd on RHEL
13#
14# 3. In /etc/vole/vole.toml set:
15#
16# ssh_listen = "socket"
17# ssh_addr = "0.0.0.0:22"
18# ssh_socket = "/run/vole/ssh.sock"
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#
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.
37
38Match 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
47