Skip to content
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

feat: add magicsock opt to block direct endpoints #44

Merged
merged 6 commits into from
Feb 14, 2024

Conversation

deansheather
Copy link
Member

@deansheather deansheather commented Nov 21, 2023

Previously, BlockEndpoints was only implemented on Coder's side in the coordination protocol and by removing STUN servers from the DERP map. This had some gaps though... local endpoints gathered from interfaces on the PC would still be gathered and could still be sent to the other peer using disco call-me-maybe packets.

This disables storing (and therefore sending) any endpoints using a runtime-controllable setting on magicsock.

The UDP socket and portmapper are still created (for now) as removing them fully did not seem trivial without causing many bugs in the process.

Updates coder/coder#10791

@deansheather
Copy link
Member Author

Tests fail due to outdated fork doing curl requests to the upstream repo that don't exist... but I ran go test ./... on main and this branch and the exact same tests fail so I'm going to merge.

@deansheather deansheather merged commit 3788ab8 into main Feb 14, 2024
7 of 33 checks passed
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.

2 participants