<p>Let's say I have a Kubernetes Job that makes https requests to changing URLs and I want to allow specific URLs only and block all other requests. My idea is deploy an <em>Https-Proxy-Pod</em> and use NetworkPolicies to make sure the <em>Job-Pod</em> can only communicate with the <em>Https-Proxy-Pod</em>. See following sketch for better understanding:
<a href="https://i.stack.imgur.com/EDzyV.jpg" rel="nofollow noreferrer">sketch of https-proxy sidecar deployment</a></p>

<p>I know how to do that but have no idea what Https Proxy to use. As far as I understood envoy is not a suitable solution for what I want to do: <a href="https://github.com/envoyproxy/envoy/issues/1606" rel="nofollow noreferrer">https://github.com/envoyproxy/envoy/issues/1606</a></p>

<p>Does anyone has a better solution or can tell me which proxy to use?</p>

rabenhorst
<p><a href="https://mitmproxy.org/" rel="nofollow noreferrer">Mitmproxy</a> is an open source tool that you can use to filter HTTP and HTTPS requests transparently using the Python scripting language.</p>

<p>There's also a quite detailed <a href="https://cloud.google.com/community/tutorials/transparent-proxy-and-filtering-on-k8s" rel="nofollow noreferrer">tutorial</a> on how to use it </p>
