feat: the Instance menu offers an overlay network screen, this node only #13
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Keel-Linux/confconsole!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/overlay-screen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The console half of step 2 of handbook decision 0020. It adds an Overlay network (WireGuard) entry to the Instance menu. The keel half is Keel-Linux/keel#49; this screen needs keel 0.11.
What the screen does
keel network wireguard key, which makes the key pair on first use, on this machine, and prints only the public key.keel network wireguard suggest-address(a random ULA,::1on its /64). Other nodes take::2,::3on the same /64. Add and Remove appear once an address exists.allowed_ips), its endpoint ([2001:db8::20]:51820, blank if that node reaches this one) and a keepalive (25 by default). A peer whose key is already listed is replaced.How a change is applied
keel spec validateand commits it, as the database screens do. Then it runskeel spec apply --system-only --defer-certificate. Unlike the database screens (#12), it does not pass--skip-network: bringing the overlay up is what it is for.keel network confirmfrom here. keel accepts that from a real console, and refuses it from an SSH session opened before the change (decision 0018).Tests
FakeConsole.menuanswers from amenusqueue when a test scripts one. It still fails when a test opens a menu it did not script.keel spec validateof keel#49. Bad values (port, key, endpoint without brackets, address, keepalive) are each reported by keel. These two tests run when keel 0.11+ is on PATH or named byKEEL; otherwise they skip.