debian-forge-composer/internal/worker
Tomas Hozza fc7d090498 cloudapi: add EnsureJobChannel() middleware to verify job channel
Add `EnsureJobChannel()` middleware method, intended for `compose/<id>`
endpoints. Its purpose is to ensure that the tenant channel set in
the request `echo.Context` matches the tenant channel associated with
the compose. In case of mismatch, `404` is returned.

Add `JobChannel()` method to the worker server implementation for
requesting channel associated with the job.
2022-06-10 14:48:18 +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: treat ErrorKojiFailedDependency as a dependency error 2022-06-10 14:48:18 +01:00
client.go worker: add proxy support to composer and oauth calls 2022-05-03 06:19:31 +01:00
client_test.go worker: define job types as constants 2022-06-10 14:48:18 +01:00
json.go cloudapi: switch osbuild-koji -> osbuild for Koji build jobs 2022-06-10 14:48:18 +01: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 EnsureJobChannel() middleware to verify job channel 2022-06-10 14:48:18 +01:00
server_test.go worker/server: add JobDependencyChainErrors() method 2022-06-10 14:48:18 +01:00