Skip to content

feat: clear no-proxy envs for child process#182

Merged
evgeniy-scherbina merged 2 commits intomainfrom
yevhenii/no-proxy-env
Feb 20, 2026
Merged

feat: clear no-proxy envs for child process#182
evgeniy-scherbina merged 2 commits intomainfrom
yevhenii/no-proxy-env

Conversation

@evgeniy-scherbina
Copy link
Collaborator

@evgeniy-scherbina evgeniy-scherbina commented Feb 20, 2026

Summary

In Landjail, corporate envs often set no_proxy (e.g. .internal.cloud). The target then bypasses Boundary’s proxy for those hosts and connects directly; Landlock blocks those connections.

Clear no_proxy and NO_PROXY in the env we pass to the child (and thus the target) so all traffic goes through Boundary’s proxy.

Changes

  • landjail/child.go: In getEnvsForTargetProcess(), set no_proxy="" and NO_PROXY="" in the merge map so they override the parent’s values.

Parent env is unchanged; only the child and target get the cleared proxy-bypass vars.

@evgeniy-scherbina evgeniy-scherbina marked this pull request as ready for review February 20, 2026 21:31
@evgeniy-scherbina evgeniy-scherbina merged commit 5cbbfd6 into main Feb 20, 2026
5 checks passed
@evgeniy-scherbina evgeniy-scherbina deleted the yevhenii/no-proxy-env branch February 20, 2026 21:52
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