hyperlane-plugin-auth 22.11.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
1
2
3
4
5
6
7
8
# hyperlane-plugin-auth

High-performance authentication and role-based access control (RBAC) plugin for Hyperlane.

- Pure-Rust FIPS 180-4 SHA-256, RFC 4231 HMAC-SHA256, RFC 4648 base64url, and constant-time comparison with zero extra cryptographic crate dependencies.
- HS256 JWT codec supporting `kid` key rotation, `exp`/`nbf`/`iat`/`iss`/`aud` validation with configurable leeway, and strict `alg == "HS256"` enforcement.
- Built-in `JwtAuthenticator`, `ApiKeyAuthenticator`, `BasicAuthenticator`, and `CompositeAuthenticator`, plus an extensible async `Authenticator` trait.
- Stores the verified `AuthPrincipal` in Hyperlane `Context` attributes and optionally enforces role requirements.