hyperlane-plugin-tenant 23.3.0

A zero-allocation multi-tenant resolution and isolation plugin for the Hyperlane framework supporting X-Tenant-Id header, Host subdomain, and path-prefix extraction, XxHash3_64 tenant registry, pluggable TenantResolver, and prebuilt 400/403/404 wire responses.
Documentation

hyperlane-plugin-tenant

Multi-tenant resolution and isolation middleware for Hyperlane.

Features

  • Extracts tenant identifiers from X-Tenant-Id header, Host subdomains (<tenant>.example.com), or path prefixes (/t/<tenant>/...).
  • Static XxHash3_64 tenant directory plus pluggable TenantResolver trait.
  • Prebuilt 400, 403, and 404 wire responses for missing, suspended, and unknown tenants.
  • Attaches TenantContext to Hyperlane Context.
  • Opt-in and transparent (Status::Continue) when unconfigured (#[hyperlane::request_middleware(-98)]).