Zero-trust network access in pure Go: SPA stealth, NAT traversal, and replayable SSH sessions
Part 4 of the GoWind architecture series. The first three posts covered the framework philosophy, YAML-based assembly, and plugin development. This one covers a different corner of the stack entirely: GoWind SDP, a Softw
Part 4 of the GoWind architecture series. The first three posts covered the framework philosophy, YAML-based assembly, and plugin development. This one covers a different corner of the stack entirely: GoWind SDP, a Software Defined Perimeter for private deployments โ our take on zero-trust network access built into the same Go ecosystem.
The problem with the traditional remote-access story
A salesperson needs ERP on the road. The classic answer is a VPN โ which means ports exposed to the public internet, scanned daily, and a broad tunnel that grants "inside the network" status once and trusts it forever. Zero-trust flips the model: services stay invisible by default; access is granted per identity and per context.
GoWind SDP implements that model around a WireGuard data plane, with no drivers and no admin rights required on the client:
- SPA network stealth โ gateways expose no ports at all. Access opens with a Single Packet Authorization "knock": a signed, time-windowed packet with anti-replay protection. Handshakes that fail the knock are silently dropped โ to a scanner, the gateway simply does not exist.
- Dynamic contextual admission โ beyond the password: location, device fingerprint, time of day, and terminal posture feed a live risk score resolving to ALLOW / DENY / STEP_UP_MFA. Crucially, evaluation is continuous โ mid-session risk changes take effect immediately, so there is no "log in once, trusted forever".
- NAT traversal with a three-level fallback โ STUN detection with P2P direct connections for cone NATs (WireGuard endpoint hot-swap, no engine restart); when holes can't be punched, gateway relay (RELAY) โ clustered TURN keeps the link alive, even for a factory IoT gateway buried deep inside carrier-grade symmetric NAT on high-latency cellular.
What ops and compliance teams actually ask for
The features below came from real delivery requirements, and they're the reason SDP exists as a product rather than a config template:
JIT temporary access. A contractor needs three days of access. Instead of a long-lived account, they submit a time-boxed request from the client; a manager approves, access expires automatically at 72 hours, and every connection during the window is in the audit ledger. Privileges never linger.
Replayable SSH/RDP sessions. Compliance reviews increasingly demand that all operations be traceable. SDP records every SSH and RDP session end to end, auto-archives recordings to object storage, and lets auditors search by time and replay sessions like security-camera footage. The management plane keeps metadata only โ the recordings live on the gateway and object storage (minimal-knowledge auditing).
One-click device kill switch. A lost laptop: one click revokes the device certificate โ cascaded revoke means session eviction + admission denial + forced disconnect, cutting off all internal access immediately.
Micro-segmentation wired into RBAC. Policies compile into gateway-side ACL rules with layer-7 drill-down (TLS SNI / HTTP Host / Path matching, with unparseable traffic falling back to L4 rather than false-killing). A sales laptop reaches ERP and GitLab but never the IoT segment.
Clientless web entry. Internal web apps published by domain, reachable from a plain browser through an SNI/Host-routed reverse proxy โ nothing to install, an optional shared passphrase guards the entrance.
Architecture in one paragraph
A virtual overlay network = address plan + members (cloud gateways, office egress, edge IoT gateways, terminals) + policies. Virtual IPs are assigned automatically and WireGuard configs are pushed over MQTT signaling. The data plane is a user-space WireGuard engine; the control plane integrates with GoWind Admin RBAC so subject labels and roles come from the same permission model as the rest of the product family. Gateways run primary/standby with automatic failover โ access has no single point of failure.
Everything above is implemented and verified by end-to-end test runs; the honest label is that the product is in rapid iteration and the multi-platform clients keep improving.
When does this shape make sense?
SDP is built for private deployments โ the enterprise data stays inside the enterprise boundary, on-prem or in your own cloud. The typical fits:
- Field & remote staff reaching internal ERP / IM / GitLab โ straight from the browser, clientless
- Multi-branch HQ + branches + cloud in one encrypted overlay with zero public exposure
- Ops auditing & compliance needing SSH/RDP replay, JIT access, full audit trails
- Remote IoT โ edge gateways phone home through SPA stealth with relay fallback, no on-site public-network config
If you're evaluating against hosted mesh-VPN products, the differentiator to weigh is the delivery model: SDP is closed-source commercial, delivered on-premises with offline licensing (Ed25519-based, no phone-home), which is what regulated environments usually require.
Part of a family
SDP shares the stack with the rest of GoWind: the client embeds GoWind IM, and combining SDP + IM + ERP into one zero-trust remote-work bundle is the common delivery. Product overview and capability tables: gowind.cloud/en/sdp/intro.html.
Trials and private deployment: [email protected] ยท GitHub org with the open-source side of the family: github.com/tx7do.
Next in the series: change data capture without the JVM โ a pure-Go CDC pipeline covering MySQL binlog, PostgreSQL WAL, SQL Server, Oracle, and MongoDB.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.