mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
With security-group enforcement on, the socat publisher was switched off, so an application port a security group opened was never reachable from the host. Docker can replace a host client's address (Docker Desktop shows every client as its gateway), so no rule narrower than the whole internet can be judged on it. Host-published access now counts as traffic from outside the VPC: with enforcement on, a port is published only when an ingress rule opens it to 0.0.0.0/0, or failing that ::/0, which admit a client whatever address it arrives with. The sidecar dials the instance through its protected namespace's helper, on the helper's network: on its IPv4 address, or on its Docker IPv6 address for a port only ::/0 opens, which is not published on a network without IPv6. A client's family is still seen on the host, so a port only one family's rule opens binds only that family's host addresses. A port whose rules move family is republished, the family is persisted for restore, and a restart brings each running instance's forwards in line with its current rules. Ports opened after launch publish and revoking removes them, as with enforcement off; a port only a narrower CIDR, a prefix list or a group reference opens stays reachable on the direct container path. Also brings Ec2ServiceTest's never-allocates check onto the three-argument allocatePrivateIp that #8598 introduced, which left main's tests not compiling after #8576.