zeph-gateway 0.12.1

HTTP gateway for webhook ingestion with bearer auth for Zeph
Documentation

zeph-gateway

Crates.io docs.rs License: MIT MSRV

HTTP gateway for webhook ingestion with bearer auth for Zeph.

Overview

Exposes an axum 0.8 HTTP server that accepts incoming webhooks, validates bearer tokens, and forwards payloads into the agent loop. Includes a /health endpoint for liveness probes. Feature-gated behind gateway.

Key Modules

  • serverGatewayServer startup and graceful shutdown
  • handlers — request handlers for webhook and health routes
  • router — axum router construction with auth middleware
  • errorGatewayError error types

Authentication

GatewayServer supports bearer token authentication via the with_auth() builder method. When auth_token is None, the server emits a tracing::warn! at startup indicating that the endpoint is unauthenticated.

GatewayServer::new(addr, sender)
    .with_auth(Some("secret-token".to_string()))
    .serve()
    .await?;

Token comparison uses subtle::ConstantTimeEq to prevent timing attacks.

Installation

cargo add zeph-gateway

Enabled via the gateway feature flag on the root zeph crate.

License

MIT