Introducing a new way to review your PRs.

Read the announcement

floci-io / floci

Light, fluffy, and always free - The AWS Local Emulator alternative

View on GitHub

38 documents · Updated Nov 23, 2026

docs / request-routing-and-protocols

Request routing and AWS protocols

This module turns AWS-shaped HTTP requests into service calls and returns the wire format that the client expects. It identifies the protocol and service, assigns account, region, and partition context, checks the caller, and dispatches the request through JSON, Query, REST, CBOR, or service-specific routes. It also supports selected raw database and application UI paths. See IAM and authentication for policy behavior and service configuration and lifecycle for service availability.

Request flow

The request path separates wire recognition from service work. Shared filters establish request context, service availability, and authentication before a protocol controller or REST resource validates the request and invokes the service handler.

This diagram shows the main path from an AWS client request to a protocol-correct response.

flowchart TD
    A[AWS-shaped HTTP request] --> B[Protocol and service claim]
    B --> C[Account region and partition context]
    C --> D[Service enabled check]
    D --> E[Signature authentication]
    E --> F[Serving operation and IAM checks]
    F --> G{Request shape}
    G -->|JSON| H[JSON controller]
    G -->|CBOR| I[CBOR controller]
    G -->|Query form| J[Query controller]
    G -->|REST path| K[REST resource]
    G -->|Dedicated route| L[Service router]
    H --> M[Service handler]
    I --> M
    J --> M
    K --> M
    L --> M
    M --> N[Wire-format response or error]

Protocol recognition

Protocol recognition identifies the AWS wire shape from non-payload signals. It gives later filters and controllers one shared claim instead of making each service infer the protocol again.

Recognition gives precise signals priority over broad ones. RPC paths and protocol headers are checked before JSON targets, Query forms, and the REST fallback. A request that clearly claims an unsupported protocol is not silently reclassified.

Service catalog

The service catalog maps external request signals to service descriptors. A descriptor joins endpoint names, target prefixes, signing scopes, supported protocols, CBOR service IDs, XML namespaces, and REST resources.

The catalog keeps endpoint names, signing names, and IAM names separate because AWS does not always use the same name for each role. It normalizes aliases such as S3 Express, EventBridge V2, and other alternate signing scopes before IAM uses them. Target prefixes use the longest match so a specific API is not captured by a shorter parent-service prefix.

The IAM namespace list is a separate published catalog. It lets policy features recognize wildcard service names without confusing a routing key such as monitoring with the IAM namespace cloudwatch.

References: src/…/ResolvedServiceCatalog.java• L129-181 src/…/ResolvedServiceCatalog.java• L901-946 src/…/AwsServiceNamespaces.java• L12-28 src/…/AwsServiceNamespaces.java• L44-61

Protocol claims

A protocol claim records the selected wire protocol and the service or operation data needed by later checks. The claim is created without reading the request body so pre-routing filters can use it safely.

The claim order covers Smithy RPC v2 CBOR, RPC v2 JSON, AWS JSON 1.0, AWS JSON 1.1, AWS Query, and REST. A present Smithy-Protocol header is exclusive. An unknown value or an RPC-shaped path that no supported protocol owns is not allowed to fall through to another protocol. When a route must supply the final answer, the route-derived claim is used so IAM sees the operation that actually runs.

References: src/…/ProtocolClaimer.java• L13-40 src/…/ProtocolClaimer.java• L72-133 src/…/ProtocolClaimer.java• L135-180 src/…/AwsProtocolClaimFilter.java• L63-102 src/…/RequestOperationResolver.java• L51-95

CBOR requests

CBOR supports both the Smithy RPC v2 path and the legacy X-Amz-Target form. The RPC path selects a service by its SDK service ID and an operation from the path. The legacy path selects a service from X-Amz-Target; unsupported targets return an unknown-operation response instead of an empty success.

RPC v2 uses modeled request and response shapes when available and can reuse the JSON dispatch path for services without a separate CBOR handler. Legacy routes keep format-specific handlers for selected services. Event-stream results remain event-stream responses, while ordinary results use the request's CBOR media type.

The two CBOR dialects share the CBOR timestamp tag but use different units. Smithy RPC v2 uses epoch seconds. The legacy AWS dialect uses epoch milliseconds. The controller converts legacy request values to the common internal form and converts response values back to the legacy form. It keeps the original media type for signature checks and response selection. Compressed payloads have a bounded decoded size.

References: src/…/AwsJsonCborController.java• L121-167 src/…/AwsJsonCborController.java• L237-327 src/…/AwsJsonCborController.java• L329-391 src/…/AwsJsonCborController.java• L394-417 src/…/AwsJsonCborController.java• L445-536 src/…/AwsJsonCborController.java• L539-582

Request context

Request context gives service handlers one account, region, and partition view of a call. The context is set before IAM and service work so resource identity, policy decisions, storage, ARNs, and response data use the same scope.

Account and region context

Account and region values can come from signed credentials, presigned credentials, a host that pins a resource to an account, or a regional API Gateway host. Unsigned work uses the configured defaults. The partition follows the request signing region, so a China or GovCloud request does not silently use the deployment partition.

Account resolution gives a pinned resource owner priority for credential-free requests. A direct 12-digit access key identifies an account. IAM and temporary keys can resolve through stored session data. A present but unknown Authorization header prevents query credentials from selecting a different account.

Context valueMain sourcesFallback
AccountAccess key, stored session, or account-pinned hostConfigured default account
RegionSigV4 scope, presigned credential, SigV4a region set, or regional API Gateway hostConfigured default region
PartitionPartition of the request signing regionDeployment partition
IAM service namespaceCatalog alias for the signing scopeSigning scope

Unknown signing regions are rejected unless configuration allows them. S3 uses its XML AuthorizationHeaderMalformed response. Other JSON, Query, and CBOR clients receive InvalidSignatureException. Strict partition mode can reject a service that AWS does not publish in the request partition.

Global services still receive region context for shared request handling. Pseudo-regions for global services map to a real region in their partition. Background work uses explicit account and region scope instead of process defaults.

References: src/…/AccountContextFilter.java• L92-165 src/…/AccountContextFilter.java• L180-216 src/…/AccountContextFilter.java• L228-297 src/…/RegionResolver.java• L86-188 src/…/RegionResolver.java• L213-261 src/…/RequestContext.java• L5-24

Resource identity

ARNs provide the shared resource identity used by routing and IAM. Regional ARNs derive their partition from the region. Global ARNs use the request partition explicitly. Availability-zone IDs use one shared region mapping so services that report a zone describe the same zone.

RequestResources derives resource ARNs from the operation that the serving route selected, not from a second operation name supplied in the request. It reads direct ARNs and names from JSON, Query, and REST inputs. For REST calls, path labels and query values replace matching body values so IAM checks the identity that the route actually carries.

The resource catalog supports nested members, list members, parent resources, related resources, and values supplied by REST paths or query parameters. It can also describe requests that authorize each item as a separate action, such as batch or transaction requests. Endpoint-specific resource metadata is filtered by the service claim so a request cannot select another service's resource rules by adding request fields.

Stored resource resolvers fill in identities that the request alone cannot know. They resolve names to stored ARNs, default resources, related resources, resource tags, and resources owned by another account. This keeps IAM aligned with the resource that the service will actually use.

This alignment matters because IAM must check the same resource that the handler will use. Multi-resource requests are checked for every target. A missing or malformed generated resource description is a build defect, not a reason to fall back silently to *.

References: src/…/RequestResources.java• L26-46 src/…/RequestResources.java• L164-211 src/…/RequestResources.java• L231-295 src/…/RequestResources.java• L641-705 src/…/StoredResourceArns.java• L8-21 src/…/StoredResourceArns.java• L72-124

Scoped persistence

Account-aware and region-scoped storage make request context visible in service state. Account-aware storage isolates logical keys by account. Region-scoped storage isolates regional resources by region while preserving legacy unscoped data in the configured default region.

Async work must use an explicit owner account or region when it acts outside a request. Cross-account lookups can find a resource in its owning account without copying it into the caller's namespace. Shared deletion helpers preserve these ownership rules during atomic cleanup.

References: src/…/AccountAwareStorageBackend.java• L23-37 src/…/AccountAwareStorageBackend.java• L394-429 src/…/RegionScopedStorage.java• L14-25 src/…/RegionScopedStorage.java• L42-101 src/…/StorageOperations.java• L18-41

Request enforcement

Shared enforcement keeps service availability, signature authentication, and IAM policy decisions separate from protocol dispatch. Each check uses the service and operation that will handle the request.

Service availability

Service availability stops a disabled service before its handler runs. The filter resolves the service from the protocol claim, matched REST resource, or signing scope and returns an error in the request's wire format.

The availability result is not a generic JSON failure. JSON and REST-JSON use JSON, Query and XML routes use XML, and CBOR uses CBOR. Unknown protocol claims remain with their controller so that the controller can produce its own not-found or unknown-operation response.

References: src/…/ServiceEnabledFilter.java• L33-75 src/…/ServiceEnabledFilter.java• L81-113 src/…/ResolvedServiceCatalog.java• L891-917

Signature authentication

Signature authentication checks a readable SigV4 Authorization header or presigned query credential against the request as it arrived. It resolves the signing credential, checks time and session-token rules, rebuilds the canonical path, query, headers, and body, and compares the result with the client signature.

The shared verifier handles most services. S3, API Gateway execute APIs, and AppSync keep their own protocol-specific verifiers. SigV4a is not verified by this shared HMAC path. Authentication proves control of a credential. IAM still decides whether that credential may perform the selected action.

References: src/…/SigV4HeaderSignatureFilter.java• L50-84 src/…/SigV4HeaderSignatureFilter.java• L152-293 src/…/SigV4HeaderSignatureFilter.java• L342-421 src/…/ResteasyRequests.java• L33-64

IAM authorization

IAM uses the account, region, and canonical service namespace from request context. It resolves the operation from the serving route, then evaluates the caller, resources, request conditions, and resource policies.

JSON, CBOR, and Query calls use the operation that their controller dispatches. REST calls use the matched resource route, not an unrelated X-Amz-Target header. Query routing uses the same service resolver as the Query controller.

The condition context adds request tags, existing resource tags, requested region, principal and resource-owner accounts, and service-specific request members. A request that names several resources must satisfy policy for every target. IAM also checks permissions needed by dependencies such as passed roles, network connectors, cross-service references, and tag-on-create operations.

References: src/…/RequestOperationResolver.java• L11-22 src/…/RequestOperationResolver.java• L81-147 src/…/IamEnforcementFilter.java• L357-423 src/…/IamEnforcementFilter.java• L515-648 src/…/IamConditionContextResolver.java• L61-73 src/…/IamConditionContextResolver.java• L575-660 src/…/IamConditionKeys.java• L11-15

Protocol controllers

Protocol controllers translate a recognized request into the common service-handler contract. They validate protocol-specific input, pass account and region context to the handler, and convert results and failures back into AWS-shaped responses.

JSON requests

JSON controllers handle root-path POST requests with X-Amz-Target. The media type selects JSON 1.0 or 1.1. The service catalog maps the target prefix to a service and operation.

The boundary requires a valid JSON object and rejects trailing or malformed data before operation work. Modeled request shapes define the operation inputs, nested structures, required members, and basic string limits that request checks can apply before dispatch. Plain application/json is accepted only for catalog descriptors that declare that format. Unknown targets or operations return the JSON error expected by the client instead of reaching an unrelated handler.

References: src/…/AwsJsonController.java• L33-49 src/…/AwsJsonController.java• L112-170 src/…/AwsJsonController.java• L172-245 src/…/RequestShapeModel.java• L13-54

Query requests

The Query controller accepts form-encoded requests and returns XML. It reads Action or legacy Operation, then prefers a Query-capable service from the signing scope. Without a usable scope, the action and Version select a modeled service.

Shared form decoding gives Query routing and IAM the same percent-decoded values. Invalid or incomplete input becomes a Query-shaped XML error. Some endpoints carry more than one API family. RDS, Neptune, and DocumentDB use request data and stored resource ownership. Classic ELB and ELBv2 use Version first and parameter shape only as a fallback.

Failures stay on the XML wire even when a handler raises a general service exception. This prevents a default JSON error mapper from returning a body that a Query client cannot parse.

References: src/…/AwsQueryController.java• L47-57 src/…/AwsQueryController.java• L139-179 src/…/AwsQueryController.java• L182-255 src/…/AwsQueryController.java• L258-298 src/…/ProtocolErrorResponses.java• L18-51

REST requests

REST services select operations from resource paths and HTTP methods. They do not use the generic JSON or Query switch, but they still use protocol claims, request context, service enablement, signature checks where applicable, and IAM enforcement.

Shared REST paths can be ambiguous on a single emulator port because AWS normally separates them by hostname. Tag routes resolve the owning service from the service segment of the resource ARN, then apply that service's tag body and method contract. Separate shared and /v1/tags controllers keep services on the path variants defined by AWS.

References: src/…/AbstractTagsController.java• L17-75 src/…/SharedTagsController.java• L19-71 src/…/V1TagsController.java• L17-53 src/…/TagDispatcher.java• L16-27 src/…/TagDispatcher.java• L57-112 src/…/TagDispatcher.java• L211-243 src/…/RequestOperationResolver.java• L111-147

Response contracts

The response layer keeps the wire format selected at the request boundary. Shared errors carry an error code and status. Each controller renders them as JSON, XML, or CBOR for the client that made the call.

JSON, REST-JSON, and CBOR errors remain on their selected JSON or CBOR wire. Query and REST-XML errors remain XML. Request IDs are added across the protocol families so SDKs can correlate failures. Validation text is shared where AWS protocols use the same rules, while error codes remain protocol-specific.

References: src/…/ProtocolErrorResponses.java• L9-31 src/…/ProtocolErrorResponses.java• L34-86 src/…/ServiceEnabledFilter.java• L81-108

Service-specific routes

Some clients use a route that is neither a normal AWS API protocol controller nor a service handler selected by an operation name. These routes still preserve the same account, authentication, ownership, and wire-level error rules where those rules apply.

Application UI routes

Application UI routes provide temporary browser links to interfaces launched for AWS services. The host carries a random secret and the interface port, so the link itself supplies authority when the UI does not send AWS credentials.

Each service declares its host label and resolves a host to a destination. A route can forward to the interface, rewrite links to sibling interfaces, return a service-specific unreachable page, or refuse the request. The service must be enabled before its UI route is used.

References: src/…/AppUiHost.java• L7-13 src/…/AppUiHost.java• L20-56 src/…/AppUiRoute.java• L5-31 src/…/AppUiRoutes.java• L3-19

Spark Connect sessions

Spark Connect sessions expose a short-lived endpoint and token through an AWS operation. Later HTTP/2 gRPC calls carry that token and are routed to the server that owns the session. A missing, expired, or unknown token ends with gRPC UNAUTHENTICATED; a reachable session server receives the call without the proxy's own connection headers or token.

The proxy checks the route and token before it forwards a stream. It also probes candidate servers with a bounded health call so a published Docker port is not treated as proof that a Spark Connect server is ready.

References: src/…/SparkConnectEndpoint.java• L8-29 src/…/SparkConnectProxy.java• L32-109 src/…/SparkConnectProxy.java• L111-146 src/…/SparkConnectProxy.java• L148-235 src/…/SparkConnectTargets.java• L5-39

PostgreSQL wire endpoints

Some database-facing services accept PostgreSQL protocol traffic rather than AWS-shaped HTTP. The shared wire model frames startup packets and later messages, parses connection parameters, and renders PostgreSQL error and notice fields for the service-specific endpoint.

The wire layer checks packet lengths before it allocates or reads bodies. It also represents SSL, GSS encryption, cancel, and protocol-version startup requests so database proxies can apply their own connection and authentication behavior without changing message framing.

References: src/…/PostgresWire.java• L12-20 src/…/PostgresWire.java• L43-63 src/…/PostgresWire.java• L67-129 src/…/PostgresWire.java• L183-239

Container-backed service paths

Some service behavior runs in Docker containers instead of the main request process. Shared container support gives those services a common launch, network, address, and cleanup path so a service-specific backend can still participate in the larger request flow.

Docker connection

The Docker connection layer gives container-backed services one daemon endpoint. It resolves explicit configuration, standard Docker environment values, the active Docker context, and the platform default in one precedence chain.

Control requests can retry transient failures. Active exec, attach, log, and other long-lived streams are not treated like ordinary requests. Separate pool and stream behavior prevents a quiet stream from blocking container lifecycle work.

References: src/…/DockerClientProducer.java• L109-124 src/…/DockerClientProducer.java• L145-203 src/…/FlociDockerHttpClient.java• L67-79 src/…/FlociDockerHttpClient.java• L282-299

Container lifecycle

The container lifecycle turns a service specification into a usable backend. It resolves an image, creates the container, attaches networks, starts the workload, discovers endpoints, and removes failed or stale resources.

Container labels carry deployment, service, resource, account, and region identity. Run labels let a new process remove containers left by an earlier run without removing another deployment's resources. Container ownership is also tracked by ID and name so Docker streams can be counted against the service that owns them. Per-key pools start one healthy backend per logical key and protect active users while an unhealthy backend is replaced.

References: src/…/ContainerLifecycleManager.java• L168-235 src/…/ContainerLifecycleManager.java• L287-312 src/…/ContainerLifecycleManager.java• L385-405 src/…/DockerContainerServices.java• L7-14 src/…/DockerContainerServices.java• L26-59 src/…/PerKeyContainerPool.java• L12-24 src/…/PerKeyContainerPool.java• L123-181

Container reachability

Container-backed services need a stable address for a launched process to call the emulator. The address layer chooses a shared-network name when one exists and a Docker host or bridge address when it does not.

Launched workloads receive the emulator endpoint, region, and credentials for their resource owner. When Floci itself runs in Docker, the network resolver avoids using a Floci-created network that could expose one deployment's services to another. Architecture names map to the Docker platform used for the workload.

References: src/…/CurrentContainerNetworkResolver.java• L20-26 src/…/CurrentContainerNetworkResolver.java• L129-179 src/…/DockerBridgeAddress.java• L13-39 src/…/DockerPlatforms.java• L5-27

Embedded DNS

The embedded DNS server gives launched containers one resolver for emulator names, private service records, forwarding rules, and public names. It scopes forwarding rules by the querying container's account, region, and VPC, then applies the most specific matching rule.

Floci-owned names and stored authoritative records take precedence over broad endpoint spoofing. A matching forwarding rule then sends the raw query only to its targets. If those targets do not answer, the resolver returns failure instead of using an unrelated upstream answer. Other names use bounded upstream forwarding so one slow resolver does not block other queries.

References: src/…/EmbeddedDnsServer.java• L48-79 src/…/EmbeddedDnsServer.java• L321-349 src/…/EmbeddedDnsServer.java• L430-455 src/…/EmbeddedDnsServer.java• L468-498 src/…/EmbeddedDnsServer.java• L792-823

Change checklist

When these files or sections are changed, remember to consider these:

  • When a service descriptor changes, keep target prefixes, signing scopes, supported protocols, CBOR service IDs, REST resources, enabled-service lookup, and IAM namespace aliases aligned.
  • When protocol claiming changes, keep non-payload recognition, Smithy header exclusivity, RPC v2 CBOR support, strict claiming, and route-derived fallback claims consistent.
  • When account or region resolution changes, check signed, presigned, host-pinned, regional, global-service, SigV4a, pseudo-region, and cross-partition requests before IAM and handler dispatch.
  • When IAM operation resolution changes, keep the selected serving route aligned with the action, resource ARN, condition context, passed-role checks, connector checks, tag-on-create checks, and multi-resource checks.
  • When Query routing changes, preserve credential-scope routing before action inference and keep shared API-family discriminators for RDS, Neptune, DocumentDB, and ELB.
  • When JSON or CBOR handling changes, preserve the original content type for signatures and responses, keep body validation strict, keep RPC v2 and legacy CBOR timestamp units distinct, preserve modeled RPC and event-stream responses, and keep decoded payload limits bounded.
  • When request-resource handling changes, keep the serving operation, endpoint-specific resource rules, REST path and query overlays, list-item targets, stored-resource lookup, and cross-account ARN scope aligned.
  • When signature verification changes, preserve raw path and query handling, body restoration, clock checks, session-token checks, and the exclusions for service-owned verifiers.
  • When REST tag routing changes, keep ARN service selection and modeled path restrictions aligned with the two tag path variants.
  • When application UI routing changes, keep the host secret format, service host label, enabled-service check, sibling link rewrites, and unreachable response aligned.
  • When PostgreSQL wire handling changes, keep startup request codes, packet length limits, message framing, and error field encoding compatible with PostgreSQL clients.
  • When Spark Connect routing changes, keep token ownership, gRPC refusal status, HTTP/2 forwarding, header filtering, and end-of-call cleanup consistent.
  • When Docker lifecycle changes, keep deployment labels, run cleanup, network reachability, resource-owner credentials, per-key admission, service stream attribution, and ordered teardown compatible.
  • When embedded DNS changes, keep VPC-scoped rule selection, emulator-name precedence, authoritative record ownership, bounded forwarding, and failure answers consistent.

Important failure modes

TriggerConsequenceGuard
A specific target prefix loses to a shorter prefixThe request reaches the wrong serviceThe catalog uses longest target-prefix matching
An unknown Authorization header lets query credentials choose the accountIAM checks a different caller from the one presentedAccount resolution gives the header precedence
A signed request uses an unknown region or an invalid partition serviceThe request creates an invalid scope or reaches an unpublished endpointRegion and strict-partition checks reject it with a protocol-shaped error
A disabled service reaches its handlerA client sees service behavior instead of the configured unavailable responseServiceEnabledFilter aborts in the selected wire format
A REST tag path is routed without reading the ARN serviceTags reach the wrong service or storageThe tag dispatcher and operation resolver use the ARN and modeled route
A UI host does not contain a valid secret and portA private interface is not reached or a malformed host is acceptedAppUiHost validates the host shape before route lookup
Signature verification uses a rewritten path or bodyA valid request fails or a changed request can passVerification reads the raw request and restores the body for later readers
IAM uses the credential scope instead of the serving routeA policy decision applies to the wrong action or resourceAuthorization resolves Query, RPC, and REST from the route that dispatches the call
A regional store uses the process default region for async workA resource is read or deleted in the wrong regionRegion-scoped storage and async callers use explicit scope
A Query or handler failure reaches the default JSON mapperAn XML client cannot parse the responseQuery dispatch renders modeled and unexpected failures as XML
A CBOR timestamp dialect is treated as the other dialectClients read time values at the wrong scaleSmithy RPC v2 keeps epoch seconds and legacy CBOR uses epoch milliseconds
A CBOR RPC service ID or legacy target reaches the wrong dispatch pathThe client gets an unknown operation or a response with the wrong wire shapeCatalog lookup, protocol support, and controller dispatch agree on the selected CBOR route
A PostgreSQL packet length is trusted without boundsA malformed client can cause an oversized read or a broken connection statePostgresWire checks packet limits before reading bodies
A Spark Connect token is forwarded to the wrong backendA session can expose or corrupt another session's workToken ownership selects the target before forwarding
A container starts on an unrelated Docker networkA launched workload can reach another deployment's servicesNetwork selection excludes Floci-owned networks when a safe network exists
A DNS rule forwards a name to unreachable targets and then falls back upstreamThe client receives an unrelated answer for a name governed by the ruleRule forwarding returns SERVFAIL after bounded target attempts

Key files

FileWhy to read it
src/…/ResolvedServiceCatalog.javaService routes, signing scopes, protocol support, aliases, and REST ownership
src/…/AwsServiceNamespaces.javaPublished IAM namespaces used for service-name policy matching
src/…/ProtocolClaimer.java / AwsProtocolClaimFilter.javaProtocol selection, claim precedence, strict failures, and route claims
src/…/AccountContextFilter.java / RegionResolver.java / RequestContext.javaAccount, region, partition, host, presigned, and pseudo-region context
src/…/ServiceEnabledFilter.javaService availability checks and protocol-shaped disabled responses
src/…/RequestOperationResolver.javaThe serving route used to select the IAM operation
src/…/IamEnforcementFilter.java / IamConditionContextResolver.javaRoute-aware policy checks and request condition data
src/…/RequestResources.java / RequestResourceMembers.java / StoredResourceArns.javaResource ARN expansion, route-aware input selection, and stored-resource resolution for IAM
src/…/AwsJsonController.java / RequestShapeModel.javaJSON target matching, body validation, and modeled request shapes
src/…/AwsJsonCborController.javaCBOR path and target dispatch, modeled RPC conversion, timestamp dialects, event streams, and bounded decoding
src/…/AwsQueryController.java / ProtocolErrorResponses.javaQuery service selection, shared endpoint routing, form dispatch, and XML errors
src/…/SharedTagsController.java / V1TagsController.java / TagDispatcher.javaShared REST tag paths and ARN-based service dispatch
src/…/AppUiHost.java / AppUiRoute.java / AppUiRoutes.javaSecret-bearing UI hosts and service UI route decisions
src/…/PostgresWire.javaPostgreSQL startup packets, message framing, and wire errors
src/…/SparkConnectProxy.java / SparkConnectTargets.javaToken-based HTTP/2 routing for Spark Connect sessions
src/…/ContainerLifecycleManager.java / DockerContainerServices.java / PerKeyContainerPool.javaContainer launch, service ownership, health, replacement, and cleanup
src/…/DockerClientProducer.java / FlociDockerHttpClient.javaDocker endpoint resolution, connection pools, and long-lived streams
src/…/CurrentContainerNetworkResolver.java / dns/EmbeddedDnsServer.javaReachability and DNS for launched workloads