hyperlane-plugin-auth 22.13.0

A zero-external-crypto-dependency authentication and RBAC plugin for the Hyperlane framework providing pure-Rust HS256 JWT with kid rotation, API key and HTTP Basic authenticators, extensible async Authenticator traits, and constant-time verification.
Documentation

hyperlane-plugin-auth

Authentication & Identity Guard Plugin

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs · Agent Engineering Rules


Overview

Opt-in authentication middleware supporting Bearer/JWT/API-key extraction, principal attachment into Context attributes, and fail-closed rejection.

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 / trait / impl — Opt-in OnceLock configuration, authenticator trait, and ServerHook guard

Installation

cargo add hyperlane-plugin-auth

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-auth --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-auth --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.