>_ saltlick serve
saltlick
A directory of how each organization can connect, checked before two of them build a link.
Advisory, never authoritative: being listed grants access to nothing.
An organization publishes what it can connect with: who it is, its trust anchor and what its fabric can do. The directory holds signed pointers to that, not permissions. The reader checks every signature and digest against keys it bound outside the directory.
$ make build && ./saltlick serve -db saltlick.dbcurl -s localhost:8080/v1/versiongrep MaxBodyBytes internal/httpapi/server.gogrep -A5 'offerMembers =' internal/pkgv1/package.gogrep -rh '^func Test' --include=*_test.go . | wc -lWhat it is
Modeled on PeeringDB, the database internet network operators consult before turning up a BGP session. Its only job is to stop two competent parties from misconfiguring each other.
Advisory, never authoritative. Being listed grants access to nothing.
Pointers, not permissions
The expected entry is a signed pointer record: where the party's signed package can be fetched, and that package's SHA-256. A counterparty fetches the package, verifies its signatures against its own trust store, and recomputes the digest. The directory is an input to none of those checks.
Writes are trust on first use
The first PUT for a sovereign_id binds the key it presents, the same shape as an SSH host key. It stops one party overwriting another's entry and establishes nothing about identity. Parties bind each other's keys over a channel they already trust.
Federation works with it switched off
Two parties compose independently with the same versioned tool and compare one digest. That needs no server and works with an entirely offline partner. Nothing in the federation mechanism may come to require the directory.
docs/figures/make-figures.py from the README and internal/pkgv1/package.go.What it refuses
Reachability, release sets, accepted limits and cut procedures are sovereign operational detail. They move directly between two parties, not through a directory that everyone can read. An entry carrying any of the three offer blocks is refused with HTTP 422 and a message saying so. There is no flag to relax it.
A pointer record carries exactly six members; anything else, such as a key, an identity, a contact or an offer, is refused with HTTP 422.
| Accepted in a recognition-only package | Refused |
|---|---|
spec, sovereign_id, issued, expires, signature | transport_offer: willing to connect |
identity: trust_domain, ca_fingerprint | data_offer: willing to exchange |
capabilities: transports, fabric_fips_image, pqc_capable, fabric_version | cut: contacts |
Not built, on purpose
- No ranking, matching or brokering: no "compatible partners" endpoint, no sort, no filter.
TestNoRankingOrMatchingEndpointExistsenforces it. - No accounts, organizations, roles or approval workflow.
- No enforcement: an expired package is still served, marked
X-Saltlick-Expired: true.
Run it
Go 1.25 to build. The SQLite driver is pure Go, so the binary is static and needs no cgo, no libc and no external database. serve binds 127.0.0.1:8080; the expected deployment puts it behind a public TLS proxy or load balancer.
make build # ./saltlick make check # gofmt, go vet, go test: the Go half of CI ./saltlick serve -db saltlick.db # binds 127.0.0.1:8080 saltlick keygen -out xaa # an Ed25519 keypair in the encoding the API expects saltlick sign -key xaa.key -package xaa.pointer.json -out xaa.pointer.signed.json
Publishing an entry · deploy/: compose and Caddy · terraform/ · API