mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-29 06:36:51 +00:00
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.
25 lines
515 B
Rust
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};
|