Skip to content

fix: add soft isolation mode and windows impl #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 24, 2025

Conversation

deansheather
Copy link
Member

  • Changes interface detection in Tailscale to use Coder IPs (thanks @ethanndickson)
  • Adds new switch to netns called SetCoderSoftIsolation
  • Adds a branch to the windows socket control function to determine whether soft isolation can be used for the given socket

macOS impl to come later

deansheather and others added 2 commits July 23, 2025 03:51
Co-authored-by: than Dickson <ethan@coder.com>
- Adds new switch to netns called SetCoderSoftIsolation
- Adds a branch to the windows socket control function to determine
  whether soft isolation can be used for the given socket
@deansheather deansheather requested a review from a team as a code owner July 23, 2025 04:01
@@ -281,7 +281,7 @@ func TestConnMemoryOverhead(t *testing.T) {
growthTotal := int64(ms.HeapAlloc) - int64(ms0.HeapAlloc)
growthEach := float64(growthTotal) / float64(num)
t.Logf("Alloced %v bytes, %.2f B/each", growthTotal, growthEach)
const max = 2000
const max = 2500

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did we increase the limit for the test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was using 2018 bytes per run, no idea why

Copy link
Member

@ethanndickson ethanndickson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, though I might have more thoughts once I'm done with the mac impl

@deansheather deansheather merged commit 4941977 into main Jul 24, 2025
43 of 52 checks passed
@deansheather deansheather deleted the dean/windows-vpn-fix branch July 24, 2025 01:54
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.

3 participants