Skip to main content

Module users

Module users 

Source
Expand description

TOML-based user store for SCRAM authentication.

Structs§

Role
A named role with a fixed set of permissions.
UserConfig
Top-level TOML user configuration.
UserEntry
A single user entry in the TOML config.
UserRecord
Parsed user record ready for authentication.

Functions§

admin_role
Return the built-in admin role (read, write, admin).
builtin_role
Look up a built-in role by name.
hash_password
Create a password hash string from a plaintext password.
load_users_from_str
Load user records from TOML content string.
load_users_from_toml
Load user records from a TOML configuration file path.
operator_role
Return the built-in operator role (read, write).
parse_password_hash
Parse a password hash string into SCRAM credentials.
resolve_permissions
Resolve the effective permissions for a user entry.
viewer_role
Return the built-in viewer role (read).