feat: multi-box deployment#1
Merged
Merged
Conversation
…edge
Reshapes albatross from a self-contained full Frigate node into an
edge consumer of kingfisher's bitcoind/fulcrum/ZMQ over a private
WireGuard mesh. Sidesteps the 866 GB pool capacity problem on
albatross (bitcoind+txindex+fulcrum already runs over ~950 GB) without
giving up the second public TLS endpoint.
hosts/_mesh.nix
Shared peer registry (kingfisher 10.42.0.1, albatross 10.42.0.2 on
10.42.0.0/24). Imported by both hosts' wireguard.nix. Public keys
are PLACEHOLDERs — real keys go in before deploy per the plan.
hosts/kingfisher/
+ wireguard.nix — wg-mesh participant + per-host private key
M frigate.nix — adds exposeBackends so bitcoind RPC, ZMQ
sequence, and fulcrum bind on the wg
interface in addition to loopback, scoped to
albatross's mesh IP via interface firewall.
rpcauth HMAC committed (one-way derived);
plaintext is the edge consumer's secret.
hosts/albatross/
+ wireguard.nix — wg-mesh participant
M frigate.nix — drops bitcoind/fulcrum/bootstrap toggle,
consumes frigate-edge against 10.42.0.1
M hardware-configuration.nix — incidental nixfmt drift
secrets/
+ bitcoind-rpc-creds.age — `user:password` for albatross to
auth against kingfisher bitcoind
+ wireguard-{kingfisher,albatross}.age — WG private keys, per-host
M secrets.nix — recipient registry entries
flake.nix — kingfisher adds wireguard-mesh module; albatross
swaps `nixosModules.default` for
`nixosModules.frigate-edge` + `wireguard-mesh`.
.github/workflows/check.yml — adds albatross to the build matrix.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Resolves every placeholder put down with the initial multi-box commit: flake.lock — bump roost to b9c80be (multi-box merged) hosts/_mesh.nix — real WG public keys for kingfisher + albatross hosts/kingfisher/frigate.nix — real rpcauth HMAC for the frigate-edge user secrets/secrets.nix — real recipient pubkeys (josie age + two host SSH) The three encrypted .age blobs at secrets/*.age still contain placeholder bytes; those get rewritten with the actual ciphertext by josie locally before deploy (the private keys never touch this commit). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replaces the three plaintext placeholder .age files with real
ciphertext from `agenix -e`. Each secret is encrypted to josie's
age key plus the SSH host key of whichever box decrypts it at
activation:
bitcoind-rpc-creds.age → josie + albatross
contains `frigate-edge:<password>`,
read by frigate-edge via LoadCredential
and matched against kingfisher's
rpcauth HMAC on bitcoind.
wireguard-kingfisher.age → josie + kingfisher
contains the WG private key matching
the public key in hosts/_mesh.nix.
wireguard-albatross.age → josie + albatross
same shape, albatross side.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Reshape albatross from a self-contained Frigate node into an edge consumer of kingfisher's bitcoind/fulcrum/ZMQ over a private WireGuard mesh. Sidesteps the 866 GB pool capacity problem on albatross (bitcoind+txindex+fulcrum already runs over ~950 GB) without giving up the second public TLS endpoint.
hosts/_mesh.nix— shared peer registry for the WireGuard mesh.hosts/kingfisher/:wireguard.nix— mesh participant + per-host private key.frigate.nix— addsexposeBackendsso bitcoind RPC, ZMQ sequence and fulcrum bind on the wg interface in addition to loopback, scoped to albatross's mesh IP via interface firewall. Additive — existing public-frigate behavior unchanged.hosts/albatross/:wireguard.nix— mesh participant.frigate.nix— drops bitcoind/fulcrum/bootstrap toggle; consumesroost.nixosModules.frigate-edgeagainst10.42.0.1.secrets/— agenix-encrypted bitcoind RPC creds and per-host WG private keys, with recipient list insecrets.nix.flake.lock— pinned to merged roost main (b9c80be) which carries the wg-mesh + frigate-edge modules..github/workflows/check.yml— albatross added to the build matrix.Test plan
🤖 Generated with Claude Code