Repository navigation
fix(platform): enforce project scope across public APIs - #3305
Merged
Merged
Conversation
Enforce scoped identifier conflicts, run admission, deletion visibility, and JSON errors across the REST surface. Expose permitted direct-call models and provider selection, preserve failed chat requests, and prevent crawls from overwriting saved website metadata. Align the generated OpenAPI contract, English/German/French developer docs, and manual coverage with regression tests. Remove the redundant API-key plugin rate window so the platform token buckets remain the throttle authority.
larryro
force-pushed
the
fix/api-probe-findings
branch
from
September 9, 2026 13:32
278eef6 to
9bb00bc
Compare
larryro
marked this pull request as ready for review
September 9, 2026 23:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Project-owned REST resources now take their project from
/api/v1/projects/{id}/…: agents, tasks and comments, chat, automation installations and runs, and project file search. Requests reject the retired routing fields, and replaced flat endpoints are removed. Global chat and run endpoints serve only resources without a project; organization-owned catalogs remain global.Every project URL checks the key holder’s access and the resource’s actual project, including private projects, archived writes and queued chat turns. Token webhooks use
/api/projects/{id}/automations/webhook/{token}for installed projects, validate scope before duplicate responses, and deduplicate independently per project. MCP run tools enforce the same project permissions. File writes hold project locks through binding, and Hub document creation rejects another user’s upload or a file already bound to a document, chat or conversation.The API contracts also align model discovery, contact update/source validation, skills and document lifecycle/error handling; WebDAV docs are updated. OpenAPI, the webhook editor and EN/DE/FR guides and tutorials describe the resulting contracts. No schema or data migration is introduced.
Validation:
bun run check: all 43 tasks passed, including platform backend 74,067 tests and UI 3,537 tests.bun run knip:checkandbun run lint:manualpassed; final OpenAPI parity suite passed 52 cases; full and new-file SAST scans reported zero findings.