Skip to content

[backend] POST /workspaces/{id}/pentest/probe ignores the {id} — workspace-scoped route is a lie #118

Closed

Description

@devin-ai-integration

routes register both POST /api/v1/pentest/probe and POST /api/v1/workspaces/{id}/pentest/probe at the same handler — and pentestProbe (pentest.go:30-53) never calls s.workspace(r) or even reads the {id} path value.

POST /api/v1/workspaces/definitely-not-real/pentest/probe succeeds exactly like a valid workspace probe. Either validate the workspace (404 for unknown ids, and ideally record the probe against it) or drop the scoped route — as-is it misleads API consumers into thinking probes are workspace-scoped when they're global.

Activity

  1. sanketpatel32 commented on Nov 22, 2026

    @sanketpatel32
    Owner

    Fixed in PR #128 (merged 76e635c, shipped in v0.51.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions