debian-forge-composer/internal/cloudapi
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
..
v2 cloudapi: add EnsureJobChannel() middleware to verify job channel 2022-06-10 14:48:18 +01:00
server.go cloudapi: prevent dangling manifest goroutines 2022-04-06 08:51:01 +02:00