mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* feat(iot): configurable DescribeEndpoint address for published AWS IoT ports AWS IoT's DescribeEndpoint returns a bare hostname and each client adds its own port (8883, 443 or 8443). Floci returns host:4566 because its HTTP data plane lives there and IoT Data clients build https://<endpoint> from it. Both are right for their callers, and Floci inside a container cannot tell whether the operator published the AWS ports. floci.services.iot.endpoint-address (FLOCI_SERVICES_IOT_ENDPOINT_ADDRESS) is returned as is for every endpoint type when set; unset or blank keeps the host and port of the base URL. EmulatorConfig.iotEndpointAddress() resolves it once for DescribeEndpoint and for the AWS-managed domain configurations, which now follow a changed address instead of keeping the value they were seeded with. The name joins the generated server certificate's SANs the way FLOCI_HOSTNAME does, so devices verify it on 8883 and 443. * docs(iot): DescribeEndpoint address when the AWS IoT ports are published Describe FLOCI_SERVICES_IOT_ENDPOINT_ADDRESS on the IoT page with the compose port layout it is meant for, note it on the TLS page next to the other names the server certificate covers, and list the IoT Core variables in the environment variable reference. * fix(tls): accept only host or host:port as the IoT endpoint certificate name A value with a query or fragment, such as host?x=1, still parsed to a host and was added to the server certificate. The name now has to be exactly the authority java.net.URI reads back, so anything beyond host[:port] is skipped with the same warning as a URL or a path. * test(iot): pin the address the concurrent seeding test asserts at the end Every caller had already been joined, so the final describe could not race, but setting the address explicitly before it makes that plain to read.