~bigbes/sr-ht-spec

ref: 636dc7a8d00c0f988b5afa2d715ab1140fd6d912 sr-ht-spec/authn/provenance.go -rw-r--r-- 11.8 KiB
be33cce1 — Eugene Blikh 9 days ago
instconf: one reading of this instance's origins
fe913656 — bigbes 27 days ago
feat(authn): unified-login identity, agent token validation, provenance trailers

Cookie identity is fail-open to anonymous: a missing, tampered or
foreign-key cookie yields no user rather than an error, so anonymous
browsing never breaks on a bad cookie.

Agent tokens are the opposite. A bad bearer is a permanent 401, a store
outage a transient 503, and revoked rows are returned so operators can
distinguish a killed token from one that never existed.

TokenStore is declared here rather than imported from db/, so the two
packages can be built in parallel and service/ wires them together.