Skip to content

Commit 015e1f2

Browse files
committed
HTTP/2 CONNECT proxy with mTLS client auth and policy enforcement
Proxy accepts HTTP/2 CONNECT requests over mTLS, extracts a custom X.509 extension from the client certificate, and evaluates it against a TOML policy to authorize connections to requested destinations. Allowed connections are tunneled as opaque TCP via bidirectional byte copy. Includes structured logging (tracing), OpenTelemetry export, Prometheus metrics, and a comprehensive test suite (38 integration + 8 e2e tests covering tunnel success, policy denial, extension enforcement, mTLS fail-closed, unreachable destinations, and method rejection).
0 parents  commit 015e1f2

16 files changed

Lines changed: 4683 additions & 0 deletions

.devcontainer/devcontainer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "agent-gateway",
3+
"image": "mcr.microsoft.com/devcontainers/rust:1-bookworm",
4+
"runArgs": [
5+
"--userns=keep-id"
6+
],
7+
"containerUser": "vscode",
8+
"updateRemoteUserUID": false,
9+
"containerEnv": {
10+
"HOME": "/home/vscode"
11+
}
12+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
.cursor/
3+
INBOX.md

0 commit comments

Comments
 (0)