mirror of
https://github.com/floci-io/floci.git
synced 2026-12-03 18:18:02 -05:00
A task under security-group enforcement started without AWS_CONTAINER_CREDENTIALS_RELATIVE_URI and kept Floci's baseline identity, because its containers share the firewall helper's namespace and had no route to the proxy holding 169.254.170.2. The helper already joins the ECS Docker network the proxy sits on. It now takes the task's one link-local address, which every container in the namespace shares, and the compiled nftables table allows TCP to 169.254.170.2:80. AWS security groups do not filter the ECS task metadata endpoints, and the exception covers that one listener only. The protected namespace is now built inside the launch cleanup, once the credentials are issued, as a shared task network's is. Its helper is removed by name, and confirmed gone, before the task's link-local address goes back to the pool. A helper Docker keeps leaves the task's cleanup pending, to be retried. Closes #4503 Co-authored-by: lex00 <121451605+lex00@users.noreply.github.com>