Commit graph

2 commits

Author SHA1 Message Date
Anthony Ettinger
d74cc1a8d6 feat(podguard): PODGUARD_ALLOW4 ip.port pairs pods may reach inside BLOCK4
c0mpute.com (and infernetprotocol.com) live on dev2, which BLOCK4 drops for
pods, so the new "Use c0mpute network" hub entry (#183) could not connect from
a pod. ALLOW4 lets an operator open exactly one public port on a blocked box
(bbs: 23.95.228.174 . 443). dev2 has no allowlist trusting the bbs IP on 443
(its Caddy only allows 127.0.0.1); SSH and every other port stay dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:37:05 +00:00
e68938fa0e
security: pod egress guard + remove banned members' pods (#172)
Member pods egress through pasta as the host. A pod could reach every
0.0.0.0 listener on the BBS host (ufw does not filter local delivery;
pasta maps the host at 169.254.1.2) and could open SSH to other fleet
servers from the BBS IP. On 2026-11-19 an attacker with a pod did both.

- deploy/podguard.sh: nftables table matched by socket cgroup (the
  service user's slice), so the agentbbs daemon is unaffected. Pods may
  only use the host's public ports + DNS; servers listed in
  /etc/agentbbs/podguard.env are dropped. Loaded after user@<uid> and
  every 5 minutes (nft binds the cgroup id at load time).
- pods.Manager.Remove + reapBannedPods: a banned member's pod is removed
  at start and every 2 minutes (it previously kept running for days).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 23:49:00 -08:00