Repository navigation
presets/wireguard: require the host argument of nix-bitcoin-wg-connect - #267
Merged
Merged
Conversation
viberaven
reviewed
Nov 16, 2026
viberaven
left a comment
Contributor
There was a problem hiding this comment.
Reviewed 96a7b9a06295.
No actionable findings. The missing-host path exits before reading keys or invoking a network lookup, explicit hosts retain the existing configuration format, and the config-version notice covers users of the preset. Checked the updated documentation and call sites, including retention of lndconnect in the CVE scan node. Local module-config and mdBook builds pass. I inspected the VM regression test and successful CI results; I did not rerun the WireGuard VM locally.
Review performed with Codex (GPT-6 Astra).
ostermayer
force-pushed
the
wg-connect-require-host
branch
from
November 18, 2026 00:19
96a7b9a to
6a1305d
Compare
Without a host, nix-bitcoin-wg-connect ran lndconnect to find the node's external IP. lndconnect does this through go-external-ip, which queries third-party IP lookup services over clearnet. That revealed the node's public IP to them, also on a node that otherwise uses only Tor. Make the host required. Without it, the command prints a usage message that says which address to pass and fails. A config version 0.2.0 notice tells users of the preset, since a call that used to work now fails. The docs, the upgrade notes and the release notes describe the change. The VM test checks the usage message, and an eval test checks the notice. Fixes bitcoinix#67. Assisted-by: Claude Code (Claude Opus 5.5)
ostermayer
force-pushed
the
wg-connect-require-host
branch
from
November 18, 2026 01:01
6a1305d to
d329bab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #67.
Without a host,
nix-bitcoin-wg-connectranlndconnectto find the node's external IP.lndconnectdoes this throughgo-external-ip, which queries third-party IP lookup services over clearnet. That revealed the node's public IP to them, also on a node that otherwise uses only Tor. #201 documented the lookup, but the command still did it.This makes the host required. Without it, the command prints a usage message and exits with status 1:
The rest of the command works as before. The preset no longer references the
lndconnectpackage.A call that used to work now fails, so this adds a config version 0.2.0 notice for configs that import the preset (
modules/versioning/0.2.0/wireguard-connect-host.nix).docs/upgrading.mdanddocs/release-notes.mdget 0.2.0 entries. The note from #201 indocs/services.mdnow says that the address is required and how to find it. The dev topicdev/topics/lndconnect-and-wireguard.shpasses a host.Testing
wireguard-lndconnectpasses. A new subtest runs the command without a host and checks that it fails with the usage message and prints no config.checks.x86_64-linux.module-configpasses. The newtestVersioningWireguardConnectHostchecks that the notice fires for an older config with the preset and not without the preset, and that a config at 0.2.0 doesn't get it once 0.2.0 is released. Without the notice file, it fails.checks.x86_64-linux.test-runnerandnix eval .#ciTestInfopass.shellcheckpasses ondev/topics/lndconnect-and-wireguard.sh.test/ci/scan-node.nix) gotlndconnectthrough the preset before. It now enablesservices.lnd.lndconnect.enable, so the scan still coverslndconnect. It evaluates, withlndconnectin its closure.module-config,test-runner,ci-workflows,shellcheckandwireguard-lndconnectpass on the KVM host.acknowledgedreplacescurrent, because master now rejects config version 0.2.0 before the release. It checks that a config at 0.2.0 doesn't get the notice once 0.2.0 is released. On master, the notice is a warning until 0.2.0 is released, and the tests pass withversion.nixat 0.1.6 and at 0.2.0.Models
Claude Opus 5.5 wrote the change. Codex GPT-5.6 Sol, Codex GPT-6 Astra (two passes), Kimi K3.1 Pro (two passes), DeepSeek V4.1 Flash 1017 and GLM 5.3 reviewed it. Claude Opus 5.5 rebased it onto #224 and #283.