agentbbs/cmd/agentbbs
Anthony Ettinger 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
..
admin.go Merge remote-tracking branch 'origin/main' into feat/files-sftp 2026-06-23 10:42:32 +00:00
broadcast.go feat(messaging): group & broadcast messages + email-all 2026-06-27 12:18:41 +00:00
fileweb.go files: per-user public at ~name/public; home = member directory 2026-06-26 01:21:00 +00:00
games.go fix(games): reject duplicate queue entries (#117) 2026-08-12 21:20:18 -07:00
gamesws.go fix(games): reject duplicate queue entries (#117) 2026-08-12 21:20:18 -07:00
gitkey_test.go fix(agentgit): register the member's SSH key on every BBS login, not just at signup (#131) 2026-09-24 04:28:18 -07:00
health_test.go feat: public /api/health served by the agentbbs process (#143) 2026-10-06 11:47:35 -07:00
main.go security: pod egress guard + remove banned members' pods (#172) 2026-11-19 23:49:00 -08:00
main_test.go fix(config): reject non-positive integer settings (#102) 2026-07-30 18:41:57 -07:00
msg_test.go feat(messaging): group & broadcast messages + email-all 2026-06-27 12:18:41 +00:00
notifycreds.go Add notify-creds subcommand to (re)email members git + mailbox creds 2026-06-23 10:16:28 +00:00
provision.go fix: validate provisioned account kind (#112) 2026-08-10 20:18:44 -07:00
provision_test.go fix: validate provisioned account kind (#112) 2026-08-10 20:18:44 -07:00
qrypt.go feat(qrypt): qrypt.chat anonymous-invite issuer 2026-06-14 11:35:05 +00:00