Files
floci/src/test/java
Allen Sanborn 1883855c94 fix(core): give launched containers the port Floci listens on (#5577)
ContainerReachableEndpoint.baseUrl() took the port from floci.base-url, which
advertises the host-facing address. Under a port mapping such as
`docker run -p 4811:4566 -e FLOCI_BASE_URL=http://localhost:4811`, Lambda, ECS,
Flink, MWAA, EC2 and CloudFormation custom-resource containers got an
AWS_ENDPOINT_URL on port 4811, which is refused inside the Docker network where
Floci listens on 4566.

The port is now the one Floci listens on: quarkus.http.port, which defaults to
floci.port but can be overridden on its own, or floci.port when TLS is on,
since the HTTP server then moves to a loopback-only internal port and
TlsProxyServer serves clients on floci.port. URLs returned to host clients
still come from base-url.

ContainerReachableEndpointTest covers the embedded DNS and Docker host paths,
a custom listen port and hostname, quarkus.http.port overridden alone, and
TLS; ContainerLauncherTest asserts a launched function gets the listen port
when base-url advertises another. SidecarContainersProfile sets floci.port and
quarkus.http.port alongside the test port.

Closes #4987
2026-10-14 18:31:17 -05:00
..