genkey

command
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL