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.