Restrict outbound network for the deploy runner #11

Open
opened 2026-11-26 02:15:17 +01:00 by claude-bot · 0 comments

The deploy runner holds the SSH key to docker. If anything on it were compromised, blocking outbound internet stops data from leaving and stops second-stage downloads.

Enterprise practice: network-isolated build and deploy agents with an egress allow-list.

Depends on #5 (plain git checkout, so the runner no longer needs GitHub).

Steps

  • Enable the Proxmox firewall for the ansible LXC (Datacenter, node and the container's network device)
  • Set its outbound policy to DROP and allow only: DNS to the local resolver, Gitea HTTP(S) and SSH on docker, NTP
  • Decide how OS updates reach it: a small apt cache (apt-cacher-ng) on the LAN, or a temporary allow rule during updates
  • Verify: Check Connectivity still passes; curl https://example.com from the LXC fails
  • Document the rule set and the update procedure in the README

Tools

Proxmox VE firewall, optionally apt-cacher-ng.

Done when

The deploy runner reaches only Gitea and the hosts it deploys to, and the pipeline still passes.

The deploy runner holds the SSH key to `docker`. If anything on it were compromised, blocking outbound internet stops data from leaving and stops second-stage downloads. **Enterprise practice:** network-isolated build and deploy agents with an egress allow-list. Depends on #5 (plain git checkout, so the runner no longer needs GitHub). ## Steps - [ ] Enable the Proxmox firewall for the `ansible` LXC (Datacenter, node and the container's network device) - [ ] Set its outbound policy to DROP and allow only: DNS to the local resolver, Gitea HTTP(S) and SSH on `docker`, NTP - [ ] Decide how OS updates reach it: a small apt cache (apt-cacher-ng) on the LAN, or a temporary allow rule during updates - [ ] Verify: Check Connectivity still passes; `curl https://example.com` from the LXC fails - [ ] Document the rule set and the update procedure in the README ## Tools Proxmox VE firewall, optionally apt-cacher-ng. ## Done when The deploy runner reaches only Gitea and the hosts it deploys to, and the pipeline still passes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/homelab-ansible#11