Back to articles
Technology Insight

Architecting Zero-Trust Web Gateways: Implementing Passwordless Authentication on VPS via OpenGiti and WebAuthn

May 26, 2026

The Paradigm Shift: Why Modern Enterprises Demand Zero-Trust

The traditional corporate network perimeter is dead. With the rise of remote work, cloud migration, and decentralized infrastructure, relying on a simple firewall to protect internal corporate assets is no longer sufficient. Once an attacker breaches the perimeter, they gain unrestricted lateral access to critical business systems. To mitigate this risk, modern enterprises are rapidly shifting toward a Zero-Trust Architecture (ZTA).

The fundamental philosophy of Zero-Trust is simple yet uncompromising: "Never trust, always verify." Every access request, regardless of whether it originates from inside or outside the organizational network, must be fully authenticated, authorized, and encrypted before access is granted. One of the most effective ways to implement this framework for web-based corporate applications is by deploying a Zero-Trust Web Gateway.

In this comprehensive guide, we will explore how to architect and deploy a robust, cost-effective Zero-Trust Web Gateway on a Virtual Private Server (VPS) leveraging two powerful open-source and standard-based technologies: OpenGiti (as the secure reverse proxy and gateway controller) and WebAuthn (for cryptographically secure, passwordless authentication).

---

The Building Blocks: OpenGiti and WebAuthn

Understanding OpenGiti as an Access Gateway

OpenGiti serves as the central enforcement point for your Zero-Trust infrastructure. Functioning as an advanced reverse proxy, it intercepts all incoming HTTP/HTTPS traffic destined for your internal microservices, dashboards, or development environments. Unlike traditional reverse proxies, OpenGiti integrates deeply with identity providers to enforce strict, policy-based access control lists (ACLs) before traffic ever reaches your backend applications.

The Power of Cryptographic Passwordless Authentication (WebAuthn)

Passwords represent one of the weakest links in enterprise security. They are susceptible to phishing, credential stuffing, and brute-force attacks. WebAuthn (Web Authentication), a core component of the FIDO2 project, completely eliminates these vulnerabilities. It utilizes public-key cryptography to authenticate users via hardware tokens (like YubiKeys), platform authenticators (such as Apple Touch ID/Face ID, Windows Hello), or mobile devices.

When a user attempts to log in via WebAuthn, the gateway issues a cryptographic challenge. The user's device signs this challenge using a private key stored securely within its hardware security module (TPM or Secure Enclave). The gateway verifies this signature using the registered public key. Because the private key never leaves the user's device and is scoped strictly to a specific domain, WebAuthn is inherently phishing-resistant.

---

Prerequisites and Environment Preparation

Before initiating the deployment, ensure your environment meets the following baseline requirements:

  • Virtual Private Server (VPS): A clean installation of a stable Linux distribution (e.g., Ubuntu 22.04 LTS or Debian 12) with a public IPv4 address.
  • Domain Name: A registered domain name (e.g., gateway.yourcompany.com) with DNS A/AAAA records pointed to your VPS IP address.
  • SSL/TLS Certificates: Valid TLS certificates. WebAuthn strictly requires a secure context (HTTPS) to operate in production environments. We will utilize Let's Encrypt for automated certificate management.
  • Administrative Access: Root or sudo privileges on the target VPS.
---

Step-by-Step Implementation Guide

Step 1: System Optimization and Docker Deployment

To ensure scalability, isolation, and ease of management, we will deploy our gateway architecture using containerized environments. Begin by updating your system packages and installing the Docker engine:

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl git apt-transport-https ca-certificates gnupg lsb-release

Install Docker and Docker Compose using the official repository to guarantee you have the latest stable release featuring security patches.

Step 2: Configuring OpenGiti as the Reverse Proxy

Create a dedicated directory structure for OpenGiti and establish the core configuration files. The configuration will define how incoming traffic is routed and which paths require absolute authentication.

In your opengiti.conf or equivalent configuration file, establish the upstream backends and define the authentication middleware. A standard enterprise configuration follows this logical structure:

  • Inbound Listener: Listens on port 443 (HTTPS) with strict TLS 1.3 encryption protocols enabled.
  • Authentication Policy: Intercepts requests and evaluates session cookies. If no valid cryptographic session is detected, the user is seamlessly redirected to the centralized WebAuthn portal.
  • Protected Upstreams: Defines internal services (e.g., internal databases, analytics dashboards) that are completely hidden from the public internet.

Step 3: Integrating the WebAuthn Authentication Provider

Next, we deploy the standalone WebAuthn service module that interfaces directly with OpenGiti. This module acts as the identity verification engine. When a user is redirected here, the application communicates with the user's browser via the WebAuthn API.

Configure the WebAuthn provider with the following parameters:

  1. Relying Party (RP) ID: This must exactly match your primary domain name (e.g., gateway.yourcompany.com). If the domain does not match, the browser will refuse to invoke the security keys.
  2. RP Name: A human-readable identifier for your organization (e.g., "Enterprise Access Control").
  3. Attestation Preference: Set to 'indirect' or 'none' depending on your compliance requirements to protect user privacy while ensuring device authenticity.

Step 4: Provisioning Passkeys and User Onboarding

With the gateway and authentication services operational, administrative users must provision their initial hardware or platform keys. Access the administrative panel via your secure domain. The system will prompt you to register a new device.

During this phase, the browser requests biometric verification or a hardware button press. A unique public/private key pair is generated, and the public key is securely recorded in the gateway's database, mapped to your user profile. No passwords are ever created, stored, or transmitted.

---

Enterprise Benefits: Security and Operational Efficiency

Deploying this Zero-Trust Web Gateway introduces immediate, measurable advantages to your business operations:

Security MetricTraditional Perimeter (VPN/Password)Zero-Trust Web Gateway (OpenGiti + WebAuthn)
Phishing ResistanceVulnerable to social engineering.Inherent cryptographic protection.
Credential StuffingHigh risk due to password reuse.Completely mitigated; no passwords exist.
User ExperienceCumbersome login steps, frequent resets.Frictionless, instant biometric authentication.
Network VisibilityBroad internal network access once connected.Granular, per-application micro-segmentation.
---

Conclusion and Next Steps

Securing corporate infrastructure no longer requires cost-prohibitive, proprietary enterprise software suites. By combining the agility of a VPS, the robust reverse proxy and access control capabilities of OpenGiti, and the unbreakable cryptographic standard of WebAuthn, you can establish a sophisticated Zero-Trust Web Gateway that neutralizes modern vectors of cyberattacks.

As a next step, consider implementing continuous posture assessment—verifying not just who the user is, but ensuring their device complies with corporate security baselines before granting access to your most sensitive digital assets.

Architecting Zero-Trust Web Gateways: Implementing Passwordless Authentication on VPS via OpenGiti and WebAuthn | DPTCloud