Skip to content

Respect [HTTP(S)|NO]_PROXY envs when dialing directly to Kube via SPDY#30624

Merged
tigrato merged 2 commits intomasterfrom
tigrato/kube_service_respect_proxy_env_spdy
Aug 29, 2023
Merged

Respect [HTTP(S)|NO]_PROXY envs when dialing directly to Kube via SPDY#30624
tigrato merged 2 commits intomasterfrom
tigrato/kube_service_respect_proxy_env_spdy

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Aug 17, 2023

This PR enables support for proxy env's when dialing directly to the Kubernetes Cluster - kubernetes_service and legacy_proxy when the cluster is local - for the SPDY protocol used by kubectl exec and kubectl portforward.

PR #30583 introduced support for normal HTTP requests but missed support for SPDY requests.

Fixes #30550

@tigrato tigrato force-pushed the tigrato/kube_service_respect_proxy_env_spdy branch 3 times, most recently from e2363a4 to b4664b0 Compare August 28, 2023 11:10
@tigrato tigrato changed the title Add proxy support to Spdy roundtripper Respect [HTTP(S)|NO]_PROXY envs when dialing directly to Kube via SPDY Aug 28, 2023
@tigrato tigrato force-pushed the tigrato/kube_service_respect_proxy_env_spdy branch 2 times, most recently from 78c645e to 8e2c69d Compare August 28, 2023 11:38
@tigrato tigrato marked this pull request as ready for review August 28, 2023 11:57
@tigrato tigrato force-pushed the tigrato/kube_service_respect_proxy_env_spdy branch from 8e2c69d to c815528 Compare August 28, 2023 16:15
Comment thread lib/kube/proxy/roundtrip.go Outdated
This PR enables support for proxy env's when dialing directly to the Kubernetes Cluster - `kubernetes_service` and `legacy_proxy` when the cluster is local - for the SPDY protocol used by `kubectl exec` and `kubectl portforward`.

PR #30583 introduced support for normal HTTP requests but missed support for SPDY requests.

Fixes #30550

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato force-pushed the tigrato/kube_service_respect_proxy_env_spdy branch from c815528 to 80f32c3 Compare August 28, 2023 16:50
Comment thread lib/kube/proxy/forwarder.go Outdated
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from fspmarshall August 29, 2023 08:27
@tigrato tigrato added this pull request to the merge queue Aug 29, 2023
Merged via the queue into master with commit 3dfaa8f Aug 29, 2023
@tigrato tigrato deleted the tigrato/kube_service_respect_proxy_env_spdy branch August 29, 2023 08:47
@public-teleport-github-review-bot
Copy link
Copy Markdown

@tigrato See the table below for backport results.

Branch Result
branch/v13 Failed

tigrato added a commit that referenced this pull request Aug 29, 2023
…PDY (#30624)

* Respect `[HTTP(S)|NO]_PROXY` envs when dialing directly to Kube via SPDY

This PR enables support for proxy env's when dialing directly to the Kubernetes Cluster - `kubernetes_service` and `legacy_proxy` when the cluster is local - for the SPDY protocol used by `kubectl exec` and `kubectl portforward`.

PR #30583 introduced support for normal HTTP requests but missed support for SPDY requests.

Fixes #30550

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* add proxier helper

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Aug 29, 2023
…PDY (#30624) (#31133)

* Respect `[HTTP(S)|NO]_PROXY` envs when dialing directly to Kube via SPDY

This PR enables support for proxy env's when dialing directly to the Kubernetes Cluster - `kubernetes_service` and `legacy_proxy` when the cluster is local - for the SPDY protocol used by `kubectl exec` and `kubectl portforward`.

PR #30583 introduced support for normal HTTP requests but missed support for SPDY requests.

Fixes #30550



* add proxier helper

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kubernetes_service does not honour HTTP_PROXY for outbound requests to clusters

4 participants