bootstrap

package
v6.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminToken

func AdminToken(s store.Store, raw string) error

AdminToken reconciles the bootstrap admin token from CROW_ADMIN_TOKEN.

When raw is empty the feature is disabled and nothing happens. Otherwise it ensures a dedicated forge-less system admin user owns exactly one access token whose hash equals SHA256(raw): the token is created if missing and any other token owned by that user is deleted, so changing the secret rotates (and revokes) the previous credential.

Types

This section is empty.

Jump to

Keyboard shortcuts

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