Help us shape the future of Go! Take the 2026 Go Developer Survey

gen

command
v0.112.13 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Command gen regenerates the embedded auth-disabled API token (keyset/token.jwt), signed with the committed private keyset. Run from the repo root:

go run ./pkg/authmode/keyset/gen > pkg/authmode/keyset/token.jwt

The claims are fixed (see pkg/authmode/token.go) so the one token validates on every authdisabled instance. Only rerun this if the keyset or those claims change.

Jump to

Keyboard shortcuts

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