chore: make noopManager
a no-op, even if a DNS config is supplied
#63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Re: coder/coder#14718
The Tailscale DNS manager that's used when you don't supply one to the wireguard engine (
noopManager
) returns false for whether it supports split DNS. If split DNS isn't supported, and a non-empty DNS config is supplied, the wireguard engine will try and get the base DNS config, which the no-op manager also doesn't support, and then logs an error, which fails a heap ofcoder/coder
tests.To address this, we can modify the default configurator to perform a no-op, even if a dns config is supplied.
We could also just set the DNS config conditionally (i.e. only for CoderVPN, or if a host has been supplied to the
tailnet.Conn
), but doing the plumbing for that seems not-great compared to just making this a no-op.