fabro/lib/crates/fabro-server/src/lib.rs
Bryan Helmkamp 1e03216161
feat(server): add IP allowlist middleware with GitHub webhook support
Introduces a configurable IP allowlist applied to the main API router
and the GitHub webhook listener. Supports CIDR literals plus a
`github_meta_hooks` keyword that resolves live against GitHub's meta
API for the webhooks override. Adds trusted-proxy handling for
X-Forwarded-For, validation that rejects Unix socket listeners without
a trusted proxy count, and deep-merge logic for the new
server.ip_allowlist and per-integration override layers.
2026-04-19 09:47:22 -04:00

25 lines
515 B
Rust

#![cfg_attr(
test,
allow(clippy::absolute_paths, clippy::await_holding_lock, clippy::float_cmp)
)]
pub mod bind;
pub mod csp;
#[allow(clippy::wildcard_imports, clippy::absolute_paths)]
mod demo;
pub mod diagnostics;
pub mod error;
pub mod github_webhooks;
pub mod ip_allowlist;
pub mod jwt_auth;
mod run_manifest;
pub mod security_headers;
pub mod serve;
pub mod server;
mod server_secrets;
mod settings_view;
pub mod static_files;
pub mod tls;
pub mod web_auth;
pub use error::{ApiError, Error, Result};