debian-forge-composer/internal/cloudapi/v2
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
..
errors.go cloudapi: validate input 2022-05-16 13:20:46 +02:00
errors_test.go cloudapi/v2: Listen on /api/image-builder-composer/v2 2021-10-11 09:52:21 +02:00
handler.go cloudapi: add helper method to extract tenant channel from echo.Context 2022-06-10 14:48:18 +01:00
middleware.go cloudapi: add EnsureJobChannel() middleware to verify job channel 2022-06-10 14:48:18 +01:00
openapi.v2.gen.go cloudapi: validate input 2022-05-16 13:20:46 +02:00
openapi.v2.yml cloudapi: validate input 2022-05-16 13:20:46 +02:00
server.go cloudapi: move ValidateRequest() to middleware.go 2022-06-10 14:48:18 +01:00
v2_internal_test.go simplify package set chain handling 2022-06-01 11:36:52 +01:00
v2_koji_test.go cloudapi: switch osbuild-koji -> osbuild for Koji build jobs 2022-06-10 14:48:18 +01:00
v2_multi_tenancy_test.go cloudapi: add helper method to extract tenant channel from echo.Context 2022-06-10 14:48:18 +01:00
v2_test.go Cloud API: support composes/<id>/manifests endpoint for non-koji builds 2022-06-10 14:48:18 +01:00