machine: make each machine the source of truth for its configuration, sync it to cluster store

This commit is contained in:
Pasha Sviderski
2026-06-19 20:51:19 +10:00
parent 0c42a7df65
commit 23d6b4409a
16 changed files with 1107 additions and 868 deletions
+3 -1
View File
@@ -22,7 +22,9 @@ type Config struct {
MTU int `json:",omitempty"`
PrivateKey secret.Secret
PublicKey secret.Secret
Peers []PeerConfig `json:",omitempty"`
// Endpoints are this machine's own WireGuard endpoints advertised to other machines.
Endpoints []netip.AddrPort `json:",omitempty"`
Peers []PeerConfig `json:",omitempty"`
}
type PeerConfig struct {