dify/api/controllers/service_api
Jyong 8150a8fca7 feat(knowledge-fs): rate limit console writes and every service API route
The legacy dataset console rate limits every mutating, download, and
retrieval route and the dataset service API limits every request, while
KnowledgeFS only covered uploads and query admission. Apply the knowledge
rate limit to all space-scoped POST/PUT/PATCH/DELETE console routes, the
document downloads, and research/query entrypoints (workspace-level source
previews, staged-upload discards, the deprecated buffered query route, and
the internal stream transport stay exempt). Extract the service API check
into `check_knowledge_rate_limit` and call it from the KnowledgeFS profile
helper so all service routes share the legacy per-workspace limit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015zw5G5SX3HmVfnZof6YWAc
2026-09-03 11:10:04 -04:00
..
app refactor(service-api): inject file upload service (#41585) 2026-09-03 03:41:45 +00:00
dataset refactor(service_api): dep-inject the dataset create payload with @model_validate (#41651) 2026-09-03 03:52:41 +00:00
end_user fix: add service api openapi descriptions (#37595) 2026-06-17 16:02:43 +00:00
knowledge_fs feat(knowledge-fs): rate limit console writes and every service API route 2026-09-03 11:10:04 -04:00
workspace docs: enrich generated service API descriptions (#37615) 2026-06-18 08:43:39 +00:00
__init__.py Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-08-27 10:06:48 +08:00
index.py fix(api): align Service API OpenAPI contract (#41248) 2026-08-25 10:54:14 +00:00
schema.py fix(api): restore Service API OpenAPI semantics (#41274) 2026-08-26 05:05:36 +00:00
wraps.py feat(knowledge-fs): rate limit console writes and every service API route 2026-09-03 11:10:04 -04:00