Skip to content

fix(proxies): let fenced tunnels resolve names by giving them the fence's DNS - #270

Merged
GeiserX merged 2 commits into
mainfrom
fix/fenced-tunnel-dns
Nov 7, 2026
Merged

GeiserX merged 2 commits into
mainfrom
fix/fenced-tunnel-dns

Conversation

@GeiserX

@GeiserX GeiserX commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

With LAN isolation on, a proxied earner's tunnel joins the fenced network, but it never got the fence's public resolvers (1.1.1.1 and 9.9.9.9). Every other fenced container gets them through isolate(); the tunnel's create options picked the network by hand and skipped that call. The fence drops the daemon's LAN resolver, so the tunnel was left with resolvers it cannot reach.

sidecarCreate now builds its host config on bridge and passes it through isolate(), the same path as every bridge earner. With isolation off, the tunnel stays on the default bridge with the daemon's resolvers, as before.

Test: TestFencedSidecarGetsTheFencesDNS failed on main (DNS [], want the fence's [1.1.1.1 9.9.9.9]) and passes here. go test ./internal/runtime/ ./internal/services/ passes.

Web had the same gap in sidecar_kwargs; fixed in GeiserX/CashPilot#649.

sidecarCreate picked the fenced network itself and skipped isolate(), so a
tunnel on the fence kept the daemon's resolvers, which the fence drops.
It now goes through isolate() like every bridge earner.
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4ba80bc and a493ba7.

Files selected for processing: 2

  • internal/runtime/proxied.go
  • internal/runtime/proxied_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.29%. Comparing base (4ba80bc) to head (a493ba7).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #270      +/-   ##
==========================================
- Coverage   77.29%   77.29%   -0.01%     
==========================================
  Files          81       81              
  Lines       12567    12565       -2     
==========================================
- Hits         9714     9712       -2     
  Misses       2048     2048              
  Partials      805      805              
Files with missing lines Coverage Δ
internal/runtime/proxied.go 64.96% <100.00%> (-0.11%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@GeiserX
GeiserX merged commit 8b9cada into main Nov 7, 2026
9 checks passed
@GeiserX
GeiserX deleted the fix/fenced-tunnel-dns branch November 7, 2026 22:01
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