All adversarial demonstrations

A trusted TLS proxy can read a JWT

A synthetic proxy certificate is trusted explicitly, so the proxy sees the bearer token inside TLS.

Setup

The test creates a synthetic EdDSA JWT and a local HTTPS endpoint. The endpoint certificate is signed by a newly generated test authority. The client is configured to trust that authority, which models an installed interception root or an explicitly configured proxy trust relationship.

Observed result

The TLS connection succeeds, and the endpoint reads the complete synthetic Authorization: Bearer value. The runnable case is TestAdversarialTrustedTLSProxyCanCaptureBearerJWT in the Go SDK proxy tests (opens in a new tab).

This shows how TLS protects traffic according to configured trust: an endpoint trusted by the client can terminate the session and see its HTTP contents. The companion untrusted certificate test rejects a different test authority.

The test uses generated keys, a synthetic JWT, and a local loopback listener.

SDK example: Run the tls-trusted-interception case in the SDK source tree (opens in a new tab).

Run the tests and inspect your own logs (opens in a new tab) · View all reports