hyperlane-plugin-security 22.14.0

A zero-allocation security hardening plugin for the Hyperlane framework providing prebuilt HSTS/CSP/COOP/COEP/CORP/Referrer headers, stateless HMAC-SHA256 CSRF protection, host/URI/body/path-traversal guards, and extensible SecurityRule hooks.
Documentation

hyperlane-plugin-security

HTTP Security Headers & CSRF Guard Plugin

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs


Overview

Opt-in security middleware injecting CSP, HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, and origin/CSRF protections.

This crate is a member of the hyperlane unified Rust 2024 workspace. All plugin crates are opt-in and transparent (Status::Continue) when unconfigured.

Responsibilities & Module Layout

  • struct / enum / trait / impl — Security policy presets and response header hook

Installation

cargo add hyperlane-plugin-security

Verification

Run crate-scoped formatting, lint, and test gates from the workspace root:

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-security --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-security --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.