mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
* feat(ec2): config toggle to report the AWS-faithful private IP (#1983) DescribeInstances reported the Docker container's bridge IP as PrivateIpAddress, disagreeing with CloudFormation's subnet-allocated IP. Rather than force a fidelity-vs-reachability tradeoff, this adds an opt-in: ec2.aws-faithful-private-ip (default false) Default (false) is unchanged: the reported private IP is the reachable container bridge IP, so instances can reach each other at that address on the shared Docker network. When true, the CFN/subnet-allocated private IP set at launch is reported instead (AWS-faithful); routing and IMDS always use the container bridge IP (tracked separately as containerBridgeIp) regardless of the flag. Wired via a new awsFaithful overload of exposeReachablePrivateAddress; the three call sites pass the config flag. Test covers both modes. Fixes #1983. * docs(ec2): list aws-faithful-private-ip in application.yml and the config table Every other floci.services.ec2 knob appears in both application.yml files and the docs configuration table; this one was declared only on EmulatorConfig, so a user-facing flag was undiscoverable.