AuthNexus is a multi-tenant authentication & operations backend for SaaS. Mutual TLS, four-channel architecture, fail-closed security model — built for high-security scenarios.
Designed for security and performance at every layer, from protocol to deployment
Both client and server verify certificates, eliminating MITM attacks. CA chain + URI SAN semantics + cert binding triple validation.
Command, Event SSE, DB Delta, OCSP — four independent channels with isolated responsibilities and fault domains.
CP server, node client, TCP server, app client — four CAs managed independently, minimizing blast radius.
Sandboxed Lua 5.4 runtime with IO/OS/debug disabled. Dedicated thread pool with backpressure, isolated from the critical path.
IO / Logic / DB / Crypto / CloudFunction — five thread domains physically isolated, independently scalable.
No ports opened without PKI init, connections refused on CA failure, handshakes rejected on OCSP revocation — secure by default.
Nodes proactively fetch OCSP responses and staple them to TLS handshakes. SDK must-staple verification for real-time revocation.
SQLite for lightweight deployments / PostgreSQL for scale. Unified abstraction layer, seamless switching. Separate Control & Runtime DBs.
Three-process separation + four-channel communication, with single-responsibility components and isolated fault domains
Measured on real hardware, not theoretical values
| Metric | Value | Details |
|---|---|---|
| Token Login | <3ms | Incl. DB query + HMAC-SHA256 + token issue |
| Heartbeat | <0.3ms | Session update + state sync |
| TLS Handshake | <15ms | mTLS mutual auth + OCSP stapling verification |
| Cloud Function | <5ms | Lua 5.4 sandbox, incl. serialization overhead |
| Password Hash | <0.1ms | HMAC-SHA256 high-speed versioned scheme |
Every design decision prioritizes security over convenience
PKI not initialized? Ports stay closed. CA validation failed? Connection refused. Certificate revoked? Handshake rejected. The default state is closed — services only open with correct, explicit configuration.
Four independent CAs, each governing its own domain. mTLS handshake validates CA trust chain + clientAuth EKU + URI SAN semantics + CP binding — all four constraints must pass.
Nodes proactively fetch OCSP responses, stapled to every TLS handshake. SDK enforces must-staple. Revocation → all new connections immediately rejected, no cache window risk.
Five thread domains share nothing. SSE long connections get a dedicated pool, never starving short CP requests. Cloud functions have backpressure, never impacting the auth hot path.
Read the docs to see how AuthNexus delivers enterprise-grade authentication for your multi-tenant SaaS.