nixos/tailscale: Add option to disable upstream debug logging #432412
+9
−0
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.
Tailscale by default sends logs upstream to a centralized logging service. We can disable this by adding an env var
https://tailscale.com/kb/1011/log-mesh-traffic?tab=linux#opting-out-of-client-logging. This is especially useful when you're using Headscale and don't want to sent any data to Tailscale Inc. (the company).
Logs before this change when I wasn't connected to the internet:
Aug 09 23:49:10 niato tailscaled[1552]: logtail: upload: log upload of 1412 bytes compressed failed: Post "https://log.tailscale.com/c/tailnode.log.tailscale.io/redactedID": failed to resolve "log.tailscale.com": no DNS fallback candidates remain for "log.tailscale.com"
after connecting to the internet:
Aug 09 23:51:08 niato tailscaled[1552]: logtail: upload succeeded after 3 failures and 50s
and after applying this patch and setting this option to true:
Aug 10 05:14:00 niato tailscaled[245889]: 2025/08/10 05:14:00 You have disabled logging. Tailscale will not be able to provide support.
Things done
passthru.tests
.nixpkgs-review
on this PR. See nixpkgs-review usage../result/bin/
.Add a 👍 reaction to pull requests you find important.