Documentation
¶
Overview ¶
Package token mints and verifies per-run bearer JWTs. The signing key is derived from the process-wide master key via HKDF so it's distinct from any other HMAC keys we might derive in the future.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer signs and verifies RunClaims tokens.
func New ¶
New derives a 32-byte HMAC signing key from the master key via HKDF-SHA256. The master key must be 32 bytes (validated at the secretstore layer).
func (*Signer) HashToken ¶
HashToken returns the hex-encoded sha256 of a bearer token. Deterministic across calls; stable for the same input.
Click to show internal directories.
Click to hide internal directories.