]> git.arvados.org - arvados.git/commit
22777: Refactor container HTTP proxy routing.
authorTom Clegg <tom@curii.com>
Wed, 7 May 2025 22:04:32 +0000 (18:04 -0400)
committerTom Clegg <tom@curii.com>
Thu, 8 May 2025 14:04:20 +0000 (10:04 -0400)
commit230aa0d369363efa017abf8a58555f3d95cdac73
tree895ae3df9903cb25407b5e711d231ef21dd185a5
parentb54332338f1b41b28576d8ebecd3b3accc0e29cb
22777: Refactor container HTTP proxy routing.

Now the router identifies ContainerHTTPProxy requests by checking
whether the request host matches the configured
ContainerWebServices.ExternalURL wildcard (previously it just checked
whether the request host looked like {uuid}-{port}.*, since there was
no ContainerWebServices config entry yet).

This enables the backend ContainerHTTPProxy method to interpret the
target as {uuid}-{port} or (in the near future) a published port name.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/controller/federation/conn.go
lib/controller/handler.go
lib/controller/localdb/container_gateway.go
lib/controller/localdb/container_gateway_test.go
lib/controller/router/router.go
sdk/go/arvados/api.go