Skip to main content

Crate powdb_auth

Crate powdb_auth 

Source
Expand description

powdb-auth — argon2id password hashing and a persisted user/role store.

Provides PowDB’s RBAC primitives: the role permission lattice, the hash argon2id password hashing, and the persisted store::UserStore. These are live in production: powdb-server loads the store::UserStore at startup and enforces the role lattice on every query (crates/server/src/handler.rs), and powdb-cli manages users via the useradd/passwd/userdel subcommands.

Re-exports§

pub use error::AuthError;
pub use hash::hash_password;
pub use hash::verify_password;
pub use role::Permission;
pub use role::Role;
pub use store::User;
pub use store::UserStore;

Modules§

error
hash
Argon2id password hashing.
role
Permission and role model for PowDB RBAC.
store
Persisted user/role store backed by auth.json.