A connector with no declared egress is confined anyway and given a proxy nothing serves #2152

Closed
opened 2026-11-27 09:06:40 +00:00 by sam · 1 comment
Owner

A connector that declares no egress is put in a network namespace holding only
loopback and given HTTP_PROXY/HTTPS_PROXY/ALL_PROXY pointing at
127.0.0.1:3128, where nothing listens, because the relay is only started when
egress is non-empty. Such a connector reaches nothing at all, and any client
that honours the proxy variables reports a refused dial to the relay instead of
the real problem. Observed with the host connector: its filesystem lookup
failed with reach <host>: dial tcp 127.0.0.1:3128: connect: connection refused
and no SSH connection was ever attempted.

Why: modules/connectors/internal/host/host.go confines every extension and
only makes the relay conditional. The near-duplicate at
internal/infrastructure/extension branches to openCommand for this case, so
the two copies disagree about what a package with no egress is.

Complete when: a package that declares no egress runs on the host's network with
no proxy environment, a package that declares egress is still confined behind
its relay, a test proves both, and a connector that reaches an
operator-configured host does so on a deployment.

A connector that declares no egress is put in a network namespace holding only loopback and given `HTTP_PROXY`/`HTTPS_PROXY`/`ALL_PROXY` pointing at `127.0.0.1:3128`, where nothing listens, because the relay is only started when egress is non-empty. Such a connector reaches nothing at all, and any client that honours the proxy variables reports a refused dial to the relay instead of the real problem. Observed with the host connector: its filesystem lookup failed with `reach <host>: dial tcp 127.0.0.1:3128: connect: connection refused` and no SSH connection was ever attempted. Why: `modules/connectors/internal/host/host.go` confines every extension and only makes the relay conditional. The near-duplicate at `internal/infrastructure/extension` branches to `openCommand` for this case, so the two copies disagree about what a package with no egress is. Complete when: a package that declares no egress runs on the host's network with no proxy environment, a package that declares egress is still confined behind its relay, a test proves both, and a connector that reaches an operator-configured host does so on a deployment.
sam added the highbug labels 2026-11-27 09:06:42 +00:00
sam closed this issue 2026-11-27 09:06:49 +00:00
Author
Owner

Fixed in 95ce309b3: a package that declares no egress now runs on the host's network with no proxy environment, and a test proves both halves (it fails on the old branch). Verified on the staging deploy at v1.63.0-222-g95ce309b3: the host connector's filesystem_usage lookup returned real numbers over SSH, and its delete_files action was judged and held for approval.

Fixed in 95ce309b3: a package that declares no egress now runs on the host's network with no proxy environment, and a test proves both halves (it fails on the old branch). Verified on the staging deploy at v1.63.0-222-g95ce309b3: the host connector's filesystem_usage lookup returned real numbers over SSH, and its delete_files action was judged and held for approval.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#2152