Page:
Home
Pages
Admin Routes Reference
Anti Replay Protection
Automatic Certificate Renewal (ACME)
CLI Reference
CSRF Protection
Connection Pooling & Client Certificates (mTLS to Backends)
Connection Pooling & Client Certificates (mTLS to Backends)
Database Backed Users
Dynamic Tags in Pages
Error Pages: How Templating & Injection Work
Error Pages: How Templating & Injection Work
Group and Role Based Access Control
HTTP Compression Support (gzip / deflate / brotli)
Home
How a Token Is Built and Verified
Installation & Deployment Guide
Load Balancing & Failover
Logging
Optimized Memory Usage
Passing User Identity to Your Backend (x-user/x-user-roles)
Password Reset & First‐Login Forced Change
Rate Limiting
Roadmap: The Future of ProxyAuth
Roadmap: The Future of ProxyAuth
SSO Across Multiple Instances (GPG Key Export/Import)
Security Model: Why secret Alone Isn't Enough
TLS & Certificates
TOTP (2FA) Enrollment & Reset — Admin Guide
Token Revocation & Multi-Instance Sync (LMDB + Redis)
config.json Reference
routes.yml Reference
No results
18
Home
vBlackOut edited this page 2026-08-26 07:48:04 +02:00
ProxyAuth Wiki
Welcome to the ProxyAuth documentation. This wiki covers configuration, request handling, security mechanisms, and operations for running ProxyAuth in production.
If you're setting up ProxyAuth for the first time, start with Installation & Deployment Guide.
🚀 Getting Started
| Page | What it covers |
|---|---|
| Installation & Deployment Guide | End-to-end setup - bare-metal, Docker, systemd, multi-instance clusters, and a post-install checklist. |
| config.json Reference | Every server-wide configuration option, field by field. |
| routes.yml Reference | Every per-route option - access control, path handling, filters, backends. |
| CLI Reference | proxyauth prepare, sync export, stats, reset-password/reset-otp, and running the server itself. |
🔑 Authentication & Sessions
| Page | What it covers |
|---|---|
| How a Token Is Built and Verified | The full cryptographic lifecycle of a session token - hashing, signing, encryption, validation. |
Security Model: Why secret Alone Isn't Enough |
The threat-model reasoning behind the two-part token design - what it protects against, its real entropy, and its honest limits. |
| TOTP (2FA) Enrollment & Reset - Admin Guide | Enrolling users into 2FA, resetting a lost/compromised OTP secret, why it takes effect without a restart, and the opt-in allow_totp_reenroll self-service bypass. |
| Password Reset & First-Login Forced Change | Self-service password reset via email, forcing a user to change a temporary password on first login, and the POST /reset-password endpoint. |
| Database-Backed Users | Sharing one user base across every instance via PostgreSQL/MySQL — schema, the sync model, connection lifecycle, deletion detection, the local fallback cache. |
| CSRF Protection | Token format, single-use enforcement, and where CSRF checks apply. |
| Anti-Replay Protection (plugin_anti_replay) | Request signing with HMAC-SHA256, per-account secrets, and the ProxyAuth browser extension. |
| Group- and Role-Based Access Control | Route access via groups/roles as an alternative to per-route username lists, the "all empty" gotcha, and the routes-audit/check-access/check-routes CLI tools. |
| Token Revocation & Multi-Instance Sync (LMDB + Redis) | How revoking a token works, and what's needed for revocation to propagate across a cluster. |
🌐 Traffic & Routing
| Page | What it covers |
|---|---|
| Load Balancing & Failover | Weighted round-robin backend selection, cooldowns, and failover behavior. |
| Connection Pooling & Client Certificates (mTLS to Backends) | How outbound connections to backends are pooled and reused, and how per-route client certificates (mTLS) work. |
| Rate Limiting | How the rate-limit key is derived per user/IP/route, and tuning guidance. |
| Error Pages: How Templating & Injection Work | The {{ error }} / {{ csrf_token }} placeholders used to render login-flow errors on your own page. |
| Dynamic Tags in Pages | {{ username }} / {{ csrf_token }} / {{ proxyauth_version }} / {{ proxyauth_id }} in static files and proxied responses, gated by tag_proxyauth. |
| Passing User Identity to Your Backend (x-user/x-user-roles) | How ProxyAuth injects x-user/x-user-roles on authenticated requests, why a client can't spoof them, and the network assumption this relies on. |
| HTTP Compression Support (gzip / deflate / brotli) | Compressing responses on any route — algorithm negotiation, per-route overrides, what's never compressed, and the upstream_identity gotcha. |
🛠️ Operations
| Page | What it covers |
|---|---|
| Admin Routes Reference | Every /adm/* endpoint - stats, logs, revocation, OTP reset. |
| Logging | The access log — configurable line format, per-vhost/per-route disabling — plus the four transport modes and what /adm/logs needs to return anything. |
| TLS & Certificates | Certificate file locations and automatic hot-reload on renewal. |
| Automatic Certificate Renewal (ACME) | Native Let's Encrypt integration — certbot_renew: true obtains and renews certificates with no external tool needed. |
🔗 Multi-Instance / Advanced
| Page | What it covers |
|---|---|
| SSO Across Multiple Instances (GPG Key Export/Import) | Why a shared secret alone isn't enough for tokens to work across instances, and how sync export fixes that. |
🗺️ Roadmap
| Page | What it covers |
|---|---|
| Roadmap: The Future of ProxyAuth | What's planned beyond 1.0.0 - account administration, pluggable databases, FIDO2/WebAuthn, OIDC/SAML, LDAP - and why, in that order. |
Optimization
| Page | What it covers |
|---|---|
| Optimized Memory Usage | Reducing ProxyAuth's resident memory (RSS) on Linux by tuning Transparent Huge Pages to madvise - up to ~75% lower RSS observed in testing. |
Quick links by task
- I'm deploying ProxyAuth for the first time -> Installation & Deployment Guide
- I need to know what a config option does -> config.json Reference / routes.yml Reference
- I want to bind both IPv4 and IPv6 (or more than one address) -> config.json Reference § Network / server (
hostaccepts an array) - A user is locked out of 2FA -> TOTP (2FA) Enrollment & Reset
- A user forgot their password, or I need to set a temporary one -> Password Reset & First-Login Forced Change
- I need to understand why
secretalone can't forge tokens -> Security Model - I want every request from a client individually signed and replay-proof -> Anti-Replay Protection
- I want to grant a route to a team instead of listing every username -> Group- and Role-Based Access Control
- I need to revoke a token right now -> Admin Routes Reference / Token Revocation & Multi-Instance Sync
- I'm running more than one instance -> SSO Across Multiple Instances + Token Revocation & Multi-Instance Sync
- I want the same users on every instance without hand-editing each
config.json-> Database-Backed Users (PostgreSQL/MySQL), or shareconfig.jsonitself over NFS — see Installation & Deployment Guide § Sharing users across instances /adm/logsis returning nothing -> Logging- I want to choose exactly what goes in each log line -> Logging § Placeholders
- One endpoint is flooding my logs -> Logging § Turning the access log off (
log: falseon the route) - I want gzip/brotli on my responses -> HTTP Compression Support
- I enabled compression but nothing is compressed -> HTTP Compression Support §
upstream_identity - My certificate renewed but I'm not sure it's applied -> TLS & Certificates
- I want ProxyAuth to get and renew Let's Encrypt certificates itself, no certbot -> Automatic Certificate Renewal (ACME)
- My backend needs to know who's calling -> Passing User Identity to Your Backend
📖 Wiki Home · 💻 Source Code · 🐛 Report an Issue · 📜 License
Found an error or something outdated on this page? Open an issue or submit a PR against the wiki repository.