Three-layer zero-trust security gateway — TCP/HTTP/UDP with mTLS mutual authentication + fine-grained RBAC + AIC capability verification.
⚠️ Preview — Not for production use. APIs and features may change before official release.
Three-layer zero-trust security gateway integrating TCP/HTTP/UDP protocols with mTLS mutual authentication and fine-grained access control.
go build -o gateway .
cat > config.json <<EOF
{
"listeners": [{
"name": "https",
"listen": ":443",
"protocol": "http2",
"tls": {
"mode": "mtls",
"cert_file": "server.pem",
"key_file": "server-key.pem",
"ca_cert_file": "ca.pem"
},
"routes": [
{ "path": "/", "target": "http://127.0.0.1:8080" }
]
}]
}
EOF
gateway --config config.jsongo build -o gateway .| Layer | Protocol | Capabilities |
|---|---|---|
| L4 | TCP | Transparent proxy + mTLS |
| L7 | HTTP | Reverse proxy + path-level RBAC |
| L3 | UDP | DTLS/QUIC + rate limiting |
Common: CRL/OCSP real-time revocation, AIC capability verification, structured logging (slog), Prometheus metrics, hot reload (SIGHUP), management API.
graph LR
client["User / AI Agent"] -->|mTLS| gw["gateway<br/>TCP/HTTP/UDP"]
gw -->|mTLS| core["core<br/>PKI CA"]
gw --> gwcore["gateway-core<br/>Security Engine"]
gateway is the frontend access layer of the varwof ecosystem. This project is a member of the Open Invention Network.
Code contributions are welcome and go through pull requests. This
repository is Apache-2.0, so contributions require a DCO sign-off (a
Signed-off-by line in the commit message, e.g. git commit -s). See
the org-wide CONTRIBUTING
for details.
| Homepage | https://varwof.com |
| Community | https://varwof.org |
| IETF Draft | draft-wei-aic-identity-cert |
| License | Apache-2.0 |
| Member | Open Invention Network |