Files
NLnetLabs-krill/src/daemon/http/auth/mod.rs
T
Martin HoffmannandGitHub 35cd5d0bb2 Redesign the HTTP service. (#1264)
Initially, this PR was intended to more clearly separate code between Krill
“business logic” – now bundled in a KrillManager –, and the HTTP server code
that serves the API. The former now lives in the server module, the latter
in the daemon module together with all the code to spin up a Krill daemon
driving the HTTP server.

However, along the way it turned into a complete redesign of how the HTTP
server code works. Request handling has been split into three stages that
forces implementers to check for permissions (or actively choose to not
check), and read the body (or check that there isn’t one). Dispatching of
the request has been restructured which should make it easier to follow what
goes on where.

This PR increases the minimum Rust version to 1.81.
2025-04-14 11:17:08 +02:00

15 lines
310 B
Rust

pub use self::authorizer::{AuthInfo, Authorizer, LoggedInUser};
pub use self::permission::{Permission, PermissionSet};
pub use self::roles::{Role, RoleMap};
pub mod providers;
mod authorizer;
#[cfg(feature = "multi-user")] mod crypt;
mod permission;
mod roles;
#[cfg(feature = "multi-user")] mod session;