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.
Publish repositories as Go modules and move the module path to rodent.software
d37d301fd4881ee37855387377db5a7aed843017 · Keenan Nemetz · 16h ago · parent 1c363d53
Publish repositories as Go modules and move the module path to rodent.software The module named a GitHub repository that does not exist, and a module path under the forge could not be fetched anyway: the go command resolves an import path by asking it for a go-import tag first, and the forge served only pages. Answer the <host>/<repository> discovery probe from the catch-all route with the repository's tag, naming its Git transport and that prefix, so a public repository is importable with no vanity service in front of the instance. Only a repository an anonymous reader can read answers: the tag is fetched without credentials, so a tag for a private repository would confirm its existence to anyone who guessed the name. The prefix host comes from public_url, never the request's Host header, for the same reason the clone URL does. With the path resolvable, rename the module to rodent.software/vole: imports, the build line in the getting-started guide, and the packaged units and metadata follow it. docs/go-modules.md explains the lookup, what the instance must have, and why a repository named after a route cannot claim the prefix.
server/ssh/server.go +8−8
| @@ -13,13 +13,13 @@ import ( | |||
| 13 | 13 | "crypto/x509" | |
| 14 | 14 | "encoding/pem" | |
| 15 | 15 | "fmt" | |
| 16 | "github.com/rodent-software/vole/internal/secure" | ||
| 17 | 16 | "io" | |
| 18 | 17 | "log/slog" | |
| 19 | 18 | "net" | |
| 20 | 19 | "os" | |
| 21 | 20 | "os/exec" | |
| 22 | 21 | "path/filepath" | |
| 22 | "rodent.software/vole/internal/secure" | ||
| 23 | 23 | "strconv" | |
| 24 | 24 | "strings" | |
| 25 | 25 | "sync" | |
| @@ -27,13 +27,13 @@ import ( | |||
| 27 | 27 | ||
| 28 | 28 | xssh "golang.org/x/crypto/ssh" | |
| 29 | 29 | ||
| 30 | "github.com/rodent-software/vole/ci/logs" | ||
| 31 | "github.com/rodent-software/vole/ci/runs" | ||
| 32 | "github.com/rodent-software/vole/core/lfs" | ||
| 33 | "github.com/rodent-software/vole/forge" | ||
| 34 | "github.com/rodent-software/vole/forge/access" | ||
| 35 | "github.com/rodent-software/vole/forge/identity" | ||
| 36 | "github.com/rodent-software/vole/forge/repo" | ||
| 30 | "rodent.software/vole/ci/logs" | ||
| 31 | "rodent.software/vole/ci/runs" | ||
| 32 | "rodent.software/vole/core/lfs" | ||
| 33 | "rodent.software/vole/forge" | ||
| 34 | "rodent.software/vole/forge/access" | ||
| 35 | "rodent.software/vole/forge/identity" | ||
| 36 | "rodent.software/vole/forge/repo" | ||
| 37 | 37 | ) | |
| 38 | 38 | ||
| 39 | 39 | const serverVersion = "SSH-2.0-vole" | |