Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminToken ¶
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.
Click to show internal directories.
Click to hide internal directories.