dify/api/controllers
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
..
common Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-09-03 16:32:30 +08:00
console feat(knowledge-fs): rate limit console writes and every service API route 2026-09-03 11:10:04 -04:00
files fix: fix upload for plugin (#41133) 2026-08-24 05:39:27 +00:00
inner_api Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-09-02 21:56:53 +08:00
mcp chore(api): consolidate chained .where() calls into single calls (#39819) 2026-07-30 16:59:50 +00:00
openapi Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-09-03 16:32:30 +08:00
service_api feat(knowledge-fs): rate limit console writes and every service API route 2026-09-03 11:10:04 -04:00
trigger fix(api): repair two malformed logger format strings (#40901) 2026-08-18 02:10:59 +00:00
web refactor(api): extract account login service and consolidate adapters (#41184) 2026-09-03 06:20:21 +00:00
__init__.py chore(api/controllers): Apply Ruff Formatter. (#7645) 2024-08-26 15:29:10 +08:00
API_SCHEMA_GUIDE.md refactor(agents): simplify repository context (#39583) 2026-07-26 06:13:37 +00:00
fastopenapi.py chore(api): Fix several typing errors (#37119) 2026-06-06 01:44:32 +00:00