debian-forge-composer/internal/cloudapi
Tomas Hozza 4a94b46f33 cloudapi: handle multi-tenancy in all compose/<id> endpoints
Use the `EnsureJobChannel()` middleware in all `compose/<id>` endpoints.
Specifically in the:
 - status
 - metadata
 - manifests
 - logs

As a result, these endpoints now return `404` in case the server has JWT
enabled and the channel associated with the request does not match the
channel associated with the requested compose (job).

Extend the multi-tenancy unit test to ensure that these endpoints behave
as expected in case of match and mismatch between the request and
compose channels.
2022-06-10 14:48:18 +01:00
..
v2 cloudapi: handle multi-tenancy in all compose/<id> endpoints 2022-06-10 14:48:18 +01:00
server.go cloudapi: prevent dangling manifest goroutines 2022-04-06 08:51:01 +02:00