agentguard_server/lib.rs
1//! `agentguard-server` — AuthZEN HTTP PDP with an optional repository-defined
2//! gRPC mirror.
3//!
4//! Embedders can mount the AuthZEN HTTP surface inside an existing axum
5//! app via [`build_router`], or run it as a standalone service via
6//! [`run`]. The request-shape helpers ([`evaluation_request_to_agent`],
7//! [`build_request_entities`]) and the [`MAX_BATCH_EVALUATIONS`] budget
8//! are re-exported for downstream consumers that want to keep request
9//! shaping aligned with the PDP's expectations.
10//!
11//! See `docs/architecture.md` for the standalone-versus-embedded
12//! configuration boundary and `docs/production.md` for the supported
13//! deployment contract.
14
15pub mod audit;
16pub mod auth_layer;
17pub mod authzen;
18pub mod grpc;
19pub mod listener;
20pub mod proto;
21pub mod server;
22
23pub use audit::{AsyncAuditAppender, AuditAppender};
24pub use auth_layer::AuthLayer;
25pub use authzen::{
26 build_request_entities, build_state, build_state_with_cache, build_state_with_options,
27 evaluation_request_to_agent, AppState, AppStateOptions, MAX_BATCH_EVALUATIONS,
28};
29pub use listener::{AuthConfig, ServerConfig};
30pub use server::{build_router, run};