powdb-auth 0.4.8

Argon2 password hashing and a persisted user/role store for PowDB RBAC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `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.

pub mod error;
pub mod hash;
pub mod role;
pub mod store;

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