debian-forge-composer/internal/worker
Ondřej Budai 6fce34a5ea worker: add proxy support to composer and oauth calls
In the internal deployment, we want to talk with composer over a http/https
proxy. This proxy adds new composer.proxy field to the worker config that
causes the worker to connect to composer and the oauth server using
a specified proxy.

NB: The proxy is not supported when connection to composer via unix sockets.

For testing this, I added a small HTTP proxy implementation, pls don't
use this in production, it's just good enough for tests.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-05-03 06:19:31 +01:00
..
api api/{cloud,worker}: used channel name based on JWT claims for new jobs 2022-03-08 12:07:00 +01:00
clienterrors worker/clienterrors: depenency error check 2022-04-13 10:31:53 +02:00
client.go worker: add proxy support to composer and oauth calls 2022-05-03 06:19:31 +01:00
client_test.go worker: add proxy support to composer and oauth calls 2022-05-03 06:19:31 +01:00
json.go worker: extend the depsolve job to use DepsolvePackageSets() 2022-04-28 14:42:49 +02:00
proxy_test.go worker: add proxy support to composer and oauth calls 2022-05-03 06:19:31 +01:00
server.go cloudapi: add build job dependency checks 2022-04-13 10:31:53 +02:00
server_test.go worker: move client test to its own file 2022-05-03 06:19:31 +01:00