dify/api/controllers/service_api/knowledge_fs
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
..
__init__.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
error.py feat(knowledge-fs): unify public error handling 2026-08-12 07:00:59 -04:00
resources.py feat(knowledge-fs): rate limit console writes and every service API route 2026-09-03 11:10:04 -04:00