Overview
The OpenBotAuth Proxy is a reverse proxy that sits in front of your backend and automatically verifies RFC 9421 HTTP message signatures from AI bots.
Why Use the Proxy?
Zero-code integration - No changes to your application code
Language agnostic - Works with any HTTP backend (Node.js, Python, Go, PHP, etc.)
Easy deployment - Available as npm package, Docker image, or GitHub Container Registry
Gradual rollout - Observe mode lets you monitor before enforcing
How It Works
┌────────────┐ ┌────────────┐ ┌──────────────┐
│ AI Bot │─────→│ Proxy │─────→│ Verifier │
│ (Signed) │ │ (OBA) │ │ Service │
└────────────┘ └────────────┘ └──────────────┘
│
↓
┌──────────────┐
│ Backend │
│ (Your App) │
└──────────────┘AI bot sends a signed HTTP request to the proxy
Proxy extracts RFC 9421 signature headers
Proxy calls the verifier service to validate the signature
Proxy adds
X-OBAuth-*headers with verification resultsProxy forwards the request to your backend
Your backend reads the headers to make access decisions
Installation Options
Headers Injected
The proxy adds these headers to every request forwarded to your backend:
X-OBAuth-Verified
true if signature verified, false otherwise
true
X-OBAuth-Agent
Bot's client name (if verified)
MyAIBot
X-OBAuth-JWKS-URL
Bot's JWKS URL
https://registry.openbotauth.org/jwks/bot.json
X-OBAuth-Kid
Key ID used for signing
key-abc123
X-OBAuth-Error
Error message (on failure)
signature_expired
Modes
Observe Mode (Default)
All requests pass through to backend. Use for:
Logging and analytics
Gradual rollout
Testing before enforcement
Require-Verified Mode
Protected paths return 401 if verification fails:
Configuration
All configuration is via environment variables:
PORT
8088
Proxy listen port
UPSTREAM_URL
http://localhost:8080
Backend server URL
OBA_VERIFIER_URL
https://verifier.openbotauth.org/verify
Verifier service endpoint
OBA_MODE
observe
observe or require-verified
OBA_TIMEOUT_MS
5000
Verifier request timeout
OBA_PROTECTED_PATHS
/protected
Comma-separated paths requiring verification
Backend Integration
Your backend reads the X-OBAuth-* headers to make access decisions:
Node.js / Express
Python / Flask
Go
PHP
Health Check
The proxy exposes a health check endpoint:
Response:
When to Use Proxy vs SDK
Backend is not Node.js or Python
Need fine-grained control
Want zero-code integration
Integrating with auth system
Need language-agnostic solution
Building custom middleware
Prefer infrastructure approach
Want to avoid extra hop
Links
GitHub Container Registry: https://github.com/OpenBotAuth/openbotauth/pkgs/container/openbotauth-proxy
Last updated