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.
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.