Skip to content

examples: add mutual-TLS HTTP CONNECT proxy example - #3607

Open
bryce-anderson wants to merge 1 commit into
apple:mainfrom
bryce-anderson:bl_anderson/proxy-example
Open

examples: add mutual-TLS HTTP CONNECT proxy example#3607
bryce-anderson wants to merge 1 commit into
apple:mainfrom
bryce-anderson:bl_anderson/proxy-example

Conversation

@bryce-anderson

Copy link
Copy Markdown
Contributor

Motivation

ServiceTalk supports layered TLS through an HTTP CONNECT proxy - mutual TLS to the proxy itself, then a tunneled TLS handshake with the origin - but there was no example or documentation showing how to configure a client for it.

Modifications

  • Add servicetalk-examples/http/https-proxy with client example and a server that it can be run against.
  • Add a ProxyTunnel.startProxy(int port) overload so examples can bind fixed ports.
  • Add an "HTTPS Proxy" entry to the HTTP examples catalog.

Result

A runnable example and catalog entry demonstrating mutual TLS through a CONNECT proxy. Existing behavior is unchanged; the ProxyTunnel overload is backward compatible.

Motivation

ServiceTalk supports layered TLS through an HTTP CONNECT proxy - mutual TLS
to the proxy itself, then a tunneled TLS handshake with the origin - but there
was no example or documentation showing how to configure a client for it.

Modifications

- Add `servicetalk-examples/http/https-proxy` with client example and a
  server that it can be run against.
- Add a `ProxyTunnel.startProxy(int port)` overload so examples can bind fixed ports.
- Add an "HTTPS Proxy" entry to the HTTP examples catalog.

Result

A runnable example and catalog entry demonstrating mutual TLS through a CONNECT
proxy. Existing behavior is unchanged; the `ProxyTunnel` overload is backward
compatible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant