Files
ARTEX/egress-guard/Dockerfile
Luis e91870a2ae feat: optional DNS-driven egress allowlist (separate compose file)
Add egress-guard, an opt-in Linux-only sidecar that permits outbound connections
from the ARTEX network only to the LLM endpoint, declared scope, and recon/package
sources, while auto-allowing discovered subdomains of in-scope domains so asset
discovery keeps working. Modes: monitor (default, log only) / enforce / off.

Shipped as docker-compose.egress.yml; the main compose file is untouched, so it is
fully opt-in. It needs NET_ADMIN and edits the host firewall (DOCKER-USER chain),
documented as Linux-only in egress-guard/README.md.
2026-11-20 10:47:36 -05:00

9 lines
515 B
Docker

# egress-guard: DNS-driven egress allowlist for the ARTEX network.
# Runs in the host network namespace (network_mode: host) with NET_ADMIN to manage
# an ipset + iptables rules in the DOCKER-USER chain. See README.md.
FROM alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc
RUN apk add --no-cache dnsmasq iptables ipset bash tini
COPY entrypoint.sh /usr/local/bin/egress-guard
RUN chmod +x /usr/local/bin/egress-guard
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/egress-guard"]