https://github.com/mjl-/xgosumdb
xgosumdb is a basic Go sumdb server, storing sums in its database, and reading unknown modules from a configurable proxy
https://github.com/mjl-/xgosumdb
golang goproxy gosum
Last synced: over 1 year ago
JSON representation
xgosumdb is a basic Go sumdb server, storing sums in its database, and reading unknown modules from a configurable proxy
- Host: GitHub
- URL: https://github.com/mjl-/xgosumdb
- Owner: mjl-
- License: bsd-3-clause
- Created: 2024-09-08T21:07:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-12T10:37:32.000Z (over 1 year ago)
- Last Synced: 2025-02-17T05:13:21.924Z (over 1 year ago)
- Topics: golang, goproxy, gosum
- Language: Go
- Homepage:
- Size: 1.41 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.BSD
Awesome Lists containing this project
README
xgosumdb is a basic Go sumdb server that serves requests from its database,
and reads unknown modules from a Go module proxy adding them to its database
for future requests.
Starting for the first time:
$ xgosumdb -init localhost
A new signer key is generated, a database with empty tree initialized, and a
new go sumdb server started on http://localhost:3080. The GOSUMDB environment
variable value to use in "go get" and "go install" invocations is printed.
After the initial run, leave out "-init localhost".
Example with other flags:
$ xgosumdb -loglevel debug -proxy https://proxy.golang.org
See the help output for using a different database path, listener address, etc.
The suggested GOSUMDB variable would look like this:
GOSUMDB='localhost+b24f3ed0+AZwJvAwnQwYfoytqj3/oISb+LdzvA4aE3C4qc/i88Yar http://localhost:3080'
While you're testing with a localhost sumdb, you may want to clean the cached
sumdb state in between resetting key and/or database. Otherwise you will get
errors about a misbehaving transparency log:
rm -r $HOME/go/pkg/mod/cache/download/sumdb/localhost $HOME/go/pkg/sumdb/localhost
Compile:
GOBIN=$PWD go install github.com/mjl-/xgosumdb@latest
Download binary:
https://beta.gobuilds.org/github.com/mjl-/xgosumdb@latest