Repository navigation
Conversation
A client holding only an API key can read a build today, but only through PATCH /builds/:id, which writes the build and emits build_updated on every call. Accepting the key on GET lets such a client, for example a CI integration that reports a build's result, read without writing. The key reads what its user can already read after logging in. Without credentials GET /builds/:id now answers 403 instead of 401, as PATCH /builds/:id already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Why
A client that holds only an API key, such as a CI integration that reports a build's result back to the code host, can already read a build:
PATCH /builds/:idaccepts the key and returns the wholeBuildDto. But every such read writes the build (updatedAt) and emitsbuild_updatedto all connected clients, and the key needs the admin or editor role. Polling a build that way turns each check into a write.Accepting the key on
GET /builds/:idlets that client read without writing. The key reads what its user can already read after logging in; nothing new is exposed.What changes
GET /builds/:idusesMixedGuard(JWT or API key) instead ofJwtAuthGuard, and documentsapi_keyin SwaggerPATCH /builds/:id200 apiand403cases forGET /builds/:id🤖 Generated with Claude Code
Summary by CodeRabbit