acme-proxy-admin 0.6.1

The operation layer and web admin panel of acme-proxy (internal crate, no semver promise)
Documentation
//! Administrative operations, shared by both front ends and owned by neither.
//!
//! `cli` and [`crate::webadmin`] are the two front ends; everything
//! they can do lives here, so the password policy, the duplicate check and the
//! rehash-on-login cannot drift between a terminal and a browser.
//!
//! - [`ops`] — the operations themselves (accounts, orders, EAB, nonces, audit).
//! - [`render`] — one JSON renderer per shape, surfacing the admin-only fields
//!   (an order's revocation, an account's traceability columns) the ACME wire
//!   format deliberately does not carry. **JSON only**: both front ends parse
//!   these, so they are a wire format. The human-readable renderings have
//!   exactly one consumer and live in `cli::render`, which is where
//!   colour is woven in — and therefore cannot reach a `--json` shape.
//! - [`password`], [`users`] — the credential store and the KDF.
//! - [`changes`] — a change to an operator (by another, or their own contact
//!   address), with its audit rows and message, for both front ends.
//! - [`totp`], [`recovery`], [`mfa`] — the second factor: RFC 6238 over RFC 4226,
//!   single-use recovery codes, and where those two meet the database.
//! - [`prompt`] — confirmation, over an injectable reader so it is testable.
//! - [`subject`] — the one "not found" sentence per kind of row.
//!
//! **Destructive operations come in pairs**: a bare form, and a `confirm_*`
//! wrapper taking `assume_yes` and a reader. Those two arguments are a
//! terminal's concern, so the CLI calls the wrapper and the web calls the bare
//! form — rather than an HTTP caller passing `true` and an empty reader to
//! assert a confirmation that never happened.

pub mod changes;
pub mod mfa;
pub mod ops;
pub mod password;
pub mod prompt;
pub mod recovery;
pub mod render;
pub mod subject;
pub mod totp;
pub mod users;

pub use ops::*;
pub use prompt::*;
pub use render::*;

// `password`, `totp`, `recovery` and `users` are deliberately *not* re-exported
// flat. The three modules above hold one vocabulary between them, but
// `admin::password::verify` and `admin::users::create_user` read as what they
// are only with the module name attached -- a bare `admin::authenticate` says
// nothing about who, and a bare `admin::verify` says nothing about what.