ONB-13 · Onboarding API endpoints (target CRUD, artifact upload, detection) #131

Closed
opened 2026-07-10 08:34:47 +00:00 by sharang · 0 comments
Owner

Part of #118.

Context

The wizard and future integrations need HTTP endpoints for onboarding: create/read/update targets, upload artifacts, run detection.

Scope

  • POST/GET/PATCH/DELETE for OnboardedTarget (list + paginate).
  • Artifact upload endpoint(s) (multipart / presigned) feeding ONB-02, with size limits (coord. #59).
  • POST /detect — run the classifier (ONB-03) on a target's artifacts and return ranked classification + facts.
  • GET /targets/:id/applicable-scans — return the matrix result (ONB-04) for the wizard.
  • Follow existing API handler/DTO conventions in compliance-agent/src/api/handlers/.

Acceptance criteria

  • Endpoints have integration tests under compliance-agent/tests/integration/api/.
  • Auth + body-size limits applied consistently with the rest of the API.

Depends on

ONB-01, ONB-02, ONB-03, ONB-04.

Part of #118. ## Context The wizard and future integrations need HTTP endpoints for onboarding: create/read/update targets, upload artifacts, run detection. ## Scope - `POST/GET/PATCH/DELETE` for `OnboardedTarget` (list + paginate). - Artifact upload endpoint(s) (multipart / presigned) feeding ONB-02, with size limits (coord. #59). - `POST /detect` — run the classifier (ONB-03) on a target's artifacts and return ranked classification + facts. - `GET /targets/:id/applicable-scans` — return the matrix result (ONB-04) for the wizard. - Follow existing API handler/DTO conventions in `compliance-agent/src/api/handlers/`. ## Acceptance criteria - Endpoints have integration tests under `compliance-agent/tests/integration/api/`. - Auth + body-size limits applied consistently with the rest of the API. ## Depends on ONB-01, ONB-02, ONB-03, ONB-04.
sharang added this to the Onboarding v1 milestone 2026-07-10 08:34:47 +00:00
sharang added the infrastructureenhancementonboarding labels 2026-07-10 08:34:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/compliance-scanner-agent#131