Documentation
¶
Overview ¶
Command genkey mints an ES256 (P-256) signing key for the /auth/v1 surface.
Usage:
go run ./cmd/genkey # print a fresh signing key set go run ./cmd/genkey -kid my-key-1 # pin the key id go run ./cmd/genkey -verify-only # mint a key_ops ["verify"] key (rotation step 1)
The first block is the PRIVATE key set: paste it into
DILION_AUTH_JWT_KEYS='[...]' (or the upstream GOTRUE_JWT_KEYS)
The second block is the PUBLIC JWKS the server will publish at /auth/v1/.well-known/jwks.json — printed for eyeballing only; the server derives it from the private set.
To rotate, append the new key with key_ops ["verify"], deploy, then flip key_ops to ["sign"] on the new key and ["verify"] on the old one and deploy again (see auth.TokenService's rotation runbook).