Skip to main content

Module admin

Module admin 

Source

Structs§

KeyAdminState

Functions§

generate_key
Generate a random sk--prefixed secret (32 bytes of entropy, hex-encoded). Used for both admin tokens and virtual API keys.
key_admin_routes
Build admin key management routes, protected by admin token auth.
load_stored_keys
Load keys from storage and merge with TOML config keys. TOML keys take precedence on name conflicts.