Skip to main content

Module state

Module state 

Source
Expand description

Composed engine state.

EngineState<S> bundles the per-module contexts. Phase 3 composed workflow + dashboard. Phase 8 adds an optional AuthCtx field (gated on the auth Cargo feature) and an axum::FromRef impl so the auth router’s handlers can extract AuthCtx directly via State<AuthCtx>. The AdminApiKeys value flows through the same seam so admin endpoints (/admin/oidc/*, /admin/auth/*) can enforce the configured bearer-token allowlist.

Structs§

AdminApiKeys
Bearer token guard for /admin/* routes. Compared in constant time against the configured admin keys list. Operators rotate keys via the engine config (auth.admin_api_keys).
EngineState