Jyong
79116d8c4b
feat(knowledge-fs): scope dataset API keys by knowledge base type
...
Legacy knowledge bases (`datasets`) and KnowledgeFS spaces
(`knowledge_fs_control_spaces`) live in different tables, so a dataset API
key binding could only ever name a legacy dataset and the KnowledgeFS service
API never consulted bindings at all: a key scoped to specific knowledge bases
still reached every KnowledgeFS space in the workspace.
- Bindings carry a `resource_type` (`dataset` | `knowledge_fs_space`) and a
nullable `control_space_id` (migration 9a4e7d1c2b60, existing rows stay
`dataset`), with a CHECK that exactly one id column matches the type.
- `dataset_api_key_service` exposes the key scope by kind, validates and
binds KnowledgeFS spaces (tenant-owned, not deleting/deleted), and cleans up
keys scoped only to a space when its deletion is requested. The orphan-key
cleanup is now NULL-safe so a space binding keeps a key alive.
- Legacy dataset routes only honour `dataset` bindings; the KnowledgeFS
authorization service only honours `knowledge_fs_space` bindings and raises
a scope error that the service API maps to 403 (unknown keys stay 401).
- Console key creation accepts `knowledge_space_ids`; list/create responses
return them next to `dataset_ids`.
- The web scope picker lists KnowledgeFS spaces alongside legacy datasets
when KnowledgeFS is enabled and submits the ids by kind; the scope column
counts both.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015zw5G5SX3HmVfnZof6YWAc
2026-09-03 05:59:39 -04:00
Stephen Zhou
45bee40955
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/controllers/console/datasets/datasets.py
# api/tests/unit_tests/controllers/console/datasets/test_datasets.py
2026-09-02 21:56:53 +08:00
YungLe
3cd1fc098c
feat: allow knowledge base API keys to be scoped to a single dataset ( #37569 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-02 10:30:42 +00:00
yyh
88c64a8db9
refactor(web): migrate access point mutations ( #41614 )
2026-09-02 03:17:03 +00:00
Stephen Zhou
cd7e1be7cb
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/services/feature_service.py
# api/tests/unit_tests/controllers/console/workspace/test_members.py
# api/tests/unit_tests/core/workflow/nodes/agent_v2/test_validators.py
# api/tests/unit_tests/services/test_system_feature_service_knowledge_fs.py
# pnpm-lock.yaml
2026-09-02 10:31:10 +08:00
Joel
770b83d9cc
fix: handle published workflow request failures in access points ( #41572 )
2026-09-01 06:37:25 +00:00
Stephen Zhou
ecd41aed3f
Merge remote-tracking branch 'origin/main' into deploy/konwledge
2026-09-01 09:45:49 +08:00
Stephen Zhou
79d1844020
refactor(knowledge-fs): organize new rag feature boundaries
2026-08-31 18:45:40 +08:00
Coding On Star
c6ca395042
fix(web): make registration tracking consent-safe and retryable ( #41365 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.com>
2026-08-31 03:39:37 +00:00
Stephen Zhou
9098955a77
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/tests/unit_tests/controllers/console/test_knowledge_fs_proxy.py
# api/tests/unit_tests/services/test_knowledge_fs_proxy.py
# web/app/components/workflow-app/hooks/use-available-nodes-meta-data.ts
2026-08-28 14:50:39 +08:00
Wu Tianwei
1971450ad8
fix: protect workspace owners in resource access ( #41423 )
2026-08-28 03:03:40 +00:00
非法操作
735d814dc0
fix(web): use management provider list for MCP integrations ( #41360 )
2026-08-27 06:49:47 +00:00
Stephen Zhou
30ed0907f3
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/controllers/console/app/site.py
# api/controllers/console/datasets/datasets.py
# api/core/plugin/backwards_invocation/model.py
# api/core/rag/rerank/rerank_model.py
# api/tests/test_containers_integration_tests/controllers/console/auth/test_oauth_server.py
# api/tests/unit_tests/core/plugin/test_backwards_invocation_model.py
# api/tests/unit_tests/tasks/test_batch_clean_document_task.py
# packages/contracts/generated/api/service/orpc.gen.ts
# web/app/components/datasets/rename-modal/index.tsx
# web/app/components/header/account-setting/model-provider-page/model-selector/popup-layout.tsx
# web/features/tag-management/components/tag-search-content.tsx
2026-08-27 10:06:48 +08:00
Wu Tianwei
73dd8739ef
feat: optimize resource access config logic ( #41164 )
...
Co-authored-by: fatelei <fatelei@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-26 07:18:57 +00:00
非法操作
f360a7bf94
fix: allow OAuth trigger builder verification without credentials ( #39199 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-25 05:32:27 +00:00
wangxiaolei
0024a845f7
feat: support agent skill ( #39675 )
...
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: 起岚 <155608604+xiaoyaoqilan@users.noreply.github.com>
Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
Co-authored-by: Escape0707 <tothesong@gmail.com>
Co-authored-by: Xin Zhang <zhangxin@dify.ai>
Co-authored-by: iridescentWen <66297467+iridescentWen@users.noreply.github.com>
Co-authored-by: Bond Zhu <37842169+MRZHUH@users.noreply.github.com>
Co-authored-by: KVOJJJin <jzongcode@gmail.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: 非法操作 <hjlarry@163.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: Chester <superdiao6@gmail.com>
Co-authored-by: WH-2099 <wh2099@pm.me>
Co-authored-by: Jony <619963502@qq.com>
Co-authored-by: Jony <13896935+zyz619963502zyz@users.noreply.github.com>
Co-authored-by: Harsh Kashyap <harsh.kashyap2001@gmail.com>
Co-authored-by: Harsh Kashyap <Harsh23Kashyap@users.noreply.github.com>
Co-authored-by: kenwoodjw <blackxin55+@gmail.com>
Co-authored-by: csurong <csurong1@gmail.com>
Co-authored-by: caosurong <surong.cao@thinkingdata.cn>
Co-authored-by: Taranum Wasu <81034301+Taranum01@users.noreply.github.com>
Co-authored-by: Taranum01 <50813317+Taranum01@users.noreply.github.com>
Co-authored-by: Pranav Agarwal <agarwalpranav0711@gmail.com>
Co-authored-by: Stephen Zhou <hi@hyoban.cc>
Co-authored-by: zl86790 <marshal_li_b@163.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
Co-authored-by: yunlu.wen <yunlu.wen@dify.ai>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2026-08-24 05:29:14 +00:00
AsperforMias
3f7e6cdcb4
fix(tts): propagate and validate actual audio MIME ( #41043 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WH-2099 <wh2099@pm.me>
2026-08-24 03:38:09 +00:00
Stephen Zhou
e6fe2cd5d7
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/tests/unit_tests/controllers/inner_api/test_auth_wraps.py
# api/tests/unit_tests/services/test_async_workflow_service.py
# web/features/new-rag/__tests__/new-knowledge-list.spec.tsx
2026-08-21 10:39:39 +08:00
FFXN
248df5dd25
fix(snippet): support snippet history version export ( #41012 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-20 08:52:45 +00:00
非法操作
f97fc01c2f
refactor(api): extract recommended app query service ( #40207 )
2026-08-20 08:45:47 +00:00
yyh
5550ec8ebf
fix(web): redirect after deleting an agent ( #40994 )
2026-08-20 04:09:50 +00:00
Stephen Zhou
db8c40b23e
Merge remote-tracking branch 'origin/main' into deploy/konwledge
2026-08-20 10:11:26 +08:00
yyh
8e1c259a66
fix(web): prevent workflow errors after app deletion ( #40977 )
2026-08-19 12:24:40 +00:00
zyssyz123
414f211cde
fix(auth): harden email code login verification ( #40960 )
2026-08-19 06:57:47 +00:00
Stephen Zhou
4fc0d8bf2a
fix(web): stabilize knowledge upgrade transitions
2026-08-18 19:34:03 +08:00
Stephen Zhou
d9b51a409d
Merge remote-tracking branch 'origin/main' into deploy/konwledge
2026-08-18 10:54:19 +08:00
Stephen Zhou
b25d20b665
fix(web): align legacy knowledge filters (WTA-2054)
2026-08-17 12:18:43 +08:00
YungLe
219596c4df
feat(plugin-auth): visibility picker for OAuth credentials ( #39840 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com>
Co-authored-by: twwu <twwu@dify.ai>
2026-08-17 02:41:26 +00:00
Stephen Zhou
cc3f901598
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/extensions/ext_celery.py
# api/tests/unit_tests/controllers/console/auth/test_oauth_server.py
# lint.config.ts
# packages/contracts/knowledge-fs-contract.test.mjs
# vite.config.ts
# web/features/new-rag/__tests__/document-detail-page.spec.tsx
# web/features/new-rag/__tests__/knowledge-space-shell.spec.tsx
# web/features/new-rag/__tests__/processing-task-events.spec.ts
# web/features/new-rag/create-knowledge-page.tsx
# web/features/new-rag/document-detail-page.tsx
# web/features/new-rag/knowledge-space-shell.tsx
2026-08-17 09:50:10 +08:00
yyh
0f63a05d04
chore: upgrade Vite+ to 0.2.9 ( #40762 )
2026-08-14 04:42:28 +00:00
Stephen Zhou
01254dcdb6
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/tests/unit_tests/controllers/web/test_wraps.py
# api/tests/unit_tests/extensions/otel/test_runtime.py
# web/app/components/header/account-setting/model-provider-page/model-selector/index.tsx
2026-08-14 10:59:24 +08:00
yyh
1cf8db8395
refactor(web): clarify model selector trigger ownership ( #40732 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-14 01:03:50 +00:00
Stephen Zhou
30c84ce58c
feat(knowledge-fs): support tag management and filtering (WTA-1980)
2026-08-13 15:22:57 +08:00
Stephen Zhou
c259666e69
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/core/plugin/backwards_invocation/model.py
# web/features/deployments/shared/components/unsupported-dsl-nodes-alert.tsx
2026-08-13 10:22:32 +08:00
Wu Tianwei
6899c7720f
refactor(web): remove deprecated deployments pages ( #40593 )
2026-08-12 08:49:51 +00:00
yyh
01460f681e
fix(web): render workspace plan badge during SSR ( #40581 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-12 07:45:39 +00:00
Stephen Zhou
876814e92e
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# web/features/system-features/state.ts
2026-08-12 14:10:20 +08:00
zyssyz123
059c9ce0b6
feat: add trunstile ( #40494 )
...
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-12 03:08:19 +00:00
Stephen Zhou
574461604d
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/commands/system.py
# api/controllers/console/init_validate.py
# api/controllers/console/workspace/account.py
# api/controllers/console/wraps.py
# api/controllers/openapi/auth/data.py
# api/core/hosting_configuration.py
# api/core/provider_manager.py
# api/core/rag/retrieval/dataset_retrieval.py
# api/services/workspace_service.py
# api/tasks/workflow_cfs_scheduler/entities.py
# api/tests/test_containers_integration_tests/controllers/console/auth/test_password_reset.py
# api/tests/test_containers_integration_tests/services/test_feature_service.py
# api/tests/unit_tests/controllers/console/auth/test_account_activation.py
# api/tests/unit_tests/controllers/openapi/auth/test_data.py
# api/tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py
# api/tests/unit_tests/extensions/otel/test_retrieval_tracing.py
# api/tests/unit_tests/services/test_feature_service_knowledge_fs.py
# dev/start-worker
# packages/contracts/console.ts
# packages/contracts/package.json
# packages/iconify-collections/custom-public/icons.json
# web/app/components/workflow/__tests__/index.spec.tsx
# web/app/components/workflow/index.tsx
# web/features/new-rag/document-chunk-tree.tsx
# web/service/fetch.spec.ts
2026-08-12 10:33:29 +08:00
Wu Tianwei
7aba539e82
feat: app deployment v2 ( #39829 )
...
Co-authored-by: zhangx1n <zhangxin@dify.ai>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-12 01:55:36 +00:00
yyh
7352944dec
refactor(web): read account profile from query cache ( #40470 )
2026-08-11 11:17:29 +00:00
yyh
78c7fb9c5c
refactor(web): move education verification to dedicated routes ( #40493 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-11 09:56:11 +00:00
Jyong
14e5afa54d
Update application components and supporting logic
2026-08-11 05:52:22 -04:00
Stephen Zhou
3e59fba46a
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/controllers/console/app/app.py
# api/controllers/console/app/app_import.py
# api/controllers/console/auth/activate.py
# api/controllers/console/setup.py
# api/tests/unit_tests/controllers/console/workspace/test_plugin.py
# web/features/new-rag/document-list.tsx
# web/features/new-rag/sources-page.tsx
# web/features/new-rag/website-crawl-preview.tsx
2026-08-10 10:34:47 +08:00
yyh
276c3b6e02
refactor(web): localize education status query ( #40132 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-07 05:29:31 +00:00
yyh
b8330df96e
refactor(web): simplify billing portal link ( #40131 )
2026-08-07 04:26:18 +00:00
非法操作
baba36d47d
chore: improve current workspace summary ( #40121 )
...
Co-authored-by: Jingyi-Dify <jingyi.qi@dify.ai>
2026-08-07 03:08:55 +00:00
yyh
73197e4354
refactor(web): modernize Studio app list data flow ( #40109 )
2026-08-07 02:23:38 +00:00
Jingyi
5dfd83e9ab
feat: optimize integrations initial loading ( #40118 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-07 02:06:25 +00:00
Stephen Zhou
fde800e337
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# .github/dependabot.yml
# .github/workflows/deploy-dev.yml
# api/app_factory.py
# api/core/indexing_runner.py
# api/services/feature_service.py
# api/tests/test_containers_integration_tests/controllers/console/auth/test_password_reset.py
# api/tests/test_containers_integration_tests/services/test_feature_service.py
# api/tests/unit_tests/controllers/console/auth/test_account_activation.py
# api/tests/unit_tests/controllers/service_api/app/test_conversation.py
# api/tests/unit_tests/controllers/web/test_site.py
# api/tests/unit_tests/core/rag/indexing/test_indexing_runner.py
# api/tests/unit_tests/core/tools/test_base_tool.py
# api/tests/unit_tests/extensions/otel/test_retrieval_tracing.py
# api/tests/unit_tests/extensions/test_ext_login.py
# api/tests/unit_tests/services/test_feature_service_deployment_edition.py
# api/tests/unit_tests/services/test_feature_service_knowledge_fs.py
# api/tests/unit_tests/services/test_feature_service_licensed_seats.py
2026-08-07 09:55:10 +08:00