feat(kubernetes): support corporate upstream proxy - #2633
Open
loveRhythm1990 wants to merge 1 commit into
Open
Conversation
|
All contributors have signed the DCO ✍️ ✅ |
loveRhythm1990
marked this pull request as ready for review
August 6, 2026 13:48
loveRhythm1990
requested review from
a team,
derekwaynecarr,
maxamillion and
mrunalp
as code owners
August 6, 2026 13:48
loveRhythm1990
force-pushed
the
2624-kubernetes-corporate-proxy/lr
branch
from
August 6, 2026 13:52
bf55d03 to
26493d1
Compare
Signed-off-by: loveRhythm1990 <qiuweimin@126.com>
loveRhythm1990
force-pushed
the
2624-kubernetes-corporate-proxy/lr
branch
from
August 6, 2026 13:52
26493d1 to
78250e4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Kubernetes support for the existing supervisor corporate HTTP forward-proxy path. This lets sandboxes in proxy-only clusters reach policy-approved TLS destinations through an operator-managed proxy without allowing workloads to choose, bypass, or observe the upstream route.
The Kubernetes driver previously had no configuration or Secret-projection path for the shared supervisor feature that Podman already uses. This PR adds that driver-level plumbing while preserving direct egress as the default when no proxy is configured.
Related Issue
Closes #2624
Changes
https_proxy,no_proxy, proxy credential Secret name/key, insecure Basic-auth acknowledgement, and CONNECT-by-hostname mode. The URL remains intentionally limited tohttp://forward proxies; HTTPS-to-proxy support is out of scope.upstreamProxyvalues, while keeping it deployment-owned rather than allowing per-sandboxdriver_configoverrides.topology = \"sidecar\"whenever proxy credentials are configured. Combined topology shares a container filesystem with the workload, and workspacefsGroupcan make an otherwise root-only Secret mount group-readable; rejecting this combination avoids a credential disclosure path. Credential-free proxy configuration can still use Combined topology.network-initnever receives proxy configuration and the agent container never receives the credential mount.Testing
mise run pre-commitpassesNO_PROXYbypasses only the corporate proxy; policy-denied traffic remains deniedmise run testhas one unrelated environment-dependent DNS failure:test_forward_public_ip_allowed_without_allowed_ipsresolveddns.googleto198.18.1.240, which the SSRF guard correctly rejects. All Kubernetes proxy-specific checks above passed.Checklist