RockChinQ
1fde3b4283
fix(certification): align certified sharing and unsigned dedicated admission ( #2610 )
...
Integrate certification policy, SDK/Core semantics, and documentation on canonical branch. Resolve duplicated documentation and keep invalid Cloud signatures rejected.
2026-09-29 00:56:18 +08:00
RockChinQ
ce118b4f41
fix(plugin): allow unsigned Cloud plugins on dedicated workers
2026-09-28 14:26:10 +00:00
RockChinQ
c384e4715a
test(plugin): include stateless certificate model in shared fixtures
2026-09-28 09:14:54 +00:00
RockChinQ
b51a448b1e
feat: stateless certified shared worker
...
Implements stateless singleton component model for certified shared Workers, integrating with SDK 0.7.0.
2026-09-28 13:25:40 +08:00
RockChinQ
f488087cc4
Merge remote-tracking branch 'origin/master' into feat/certified-cross-tenant-worker-pool
2026-09-25 13:33:22 +00:00
RockChinQ
300f5825bb
fix(plugin): fail closed on incomplete certification records
2026-09-25 13:13:35 +00:00
RockChinQ
9f296bd57e
feat(plugin): route certified installs to shared workers
2026-09-25 12:48:55 +00:00
TyperBody
afe700f1d8
fix(plugin): keep certified marketplace packages installable on OSS
...
The certified-archive admission gate treated any declared certificate it could
not resolve as an untrusted archive and rejected the install with
CERTIFIED_PLUGIN_OSS_FORCE_REQUIRED. OSS ships an empty
plugin.certification.trusted_public_keys ring and the marketplace signs every
package with its own issuer key, so all certified marketplace packages (for
example langbot-team/RunnerDemo and langbot-team/LocalAgent) failed at the
'validating plugin package' step before artifact storage.
Admission now distinguishes an unresolvable declaration from a configured trust
decision that fails:
- record certificate_id only when the key_id is actually present in the
configured ring, so an empty ring yields an unresolvable declaration;
- OSS degrades an unresolvable declaration to the existing oss_dev dedicated
profile with CERTIFIED_PLUGIN_OSS_UNTRUSTED_DEDICATED instead of blocking;
- a resolvable declaration that still fails keeps requiring the explicit
administrator force (CERTIFIED_PLUGIN_OSS_FORCE_REQUIRED);
- Cloud stays fail-closed and rejects before storage.
No shared-runtime privilege is granted when the issuer is not trusted, so this
withholds isolation rather than escalating it.
2026-09-25 19:32:54 +08:00
RockChinQ
5d9684731e
merge(4.11): integrate master marketplace updates preserving Runner lifecycle
2026-09-21 16:58:35 +00:00
RockChinQ
27871e4363
merge: integrate master certification and document identity fixes into 4.11
2026-09-21 10:55:40 +00:00
RockChinQ
52f5699533
fix(plugin): honor requested marketplace version ( #2555 )
2026-09-20 23:59:50 +08:00
RockChinQ
20a04a77bf
feat(plugin): enforce certified archive admission ( #2553 )
...
* feat(plugin): add certified admission policy
* feat(plugin): enforce certified archive admission
* chore(plugin): pin certified SDK beta
* fix(plugin): consume SDK beta 5
* style(plugin): format certification admission
2026-09-20 18:54:45 +08:00
RockChinQ
79cac0c6a3
fix(reasoning): apply explicit per-call levels without runner config caching
2026-09-19 00:05:49 +08:00
RockChinQ
60606e1997
fix(migration): improve runner migration and plugin installation feedback
2026-09-18 13:10:32 +08:00
RockChinQ
b264d46d77
feat: delegate sandbox policy to runners and simplify pipeline migration
2026-09-17 23:05:27 +08:00
RockChinQ
8c119bc4b6
feat: add verified manual pipeline migration for plugin runners
2026-09-16 18:13:11 +00:00
RockChinQ
273b1ea3cf
Merge master into dev/4.11.x and preserve plugin runner architecture
...
Reconcile migration branches without rewriting published revisions; retain additive Codex, monitoring, provider and platform fixes. Keep dynamic runner schemas and Host ownership, restore compatibility regressions, and preserve safe model-test error handling.
2026-09-16 08:13:07 +00:00
Hyu
d497defbf7
fix(runner): keep installation context within each stream resume
2026-09-15 13:51:27 +08:00
Hyu
45d77c3926
fix(plugin): preserve explicit nested installation scope ( #2528 )
...
* fix(plugin): preserve explicit nested installation scope
* fix(deps): pin released RAG runtime SDK 0.5.8
---------
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com >
2026-09-11 17:41:33 +08:00
RockChinQ
d93e44d82d
feat(runner): authorize contextual platform APIs
2026-09-11 00:02:44 +08:00
RockChinQ
f24a7c9bb2
feat(runner): unify plugin execution across agents and event processors
2026-09-10 18:04:38 +08:00
RockChinQ
8903a40c41
fix(runtime): preserve explicit replies and report bot configuration errors
2026-09-10 17:21:22 +08:00
RockChinQ
812eb09ee4
fix(pipeline): apply returned plugin event contexts
2026-09-07 23:51:34 +08:00
Hyu
a87c814dae
feat(web): improve marketplace install workflows
2026-09-01 16:43:50 +08:00
Hyu
e5e62c8fe9
fix(plugin): keep status responsive during installation
2026-09-01 12:46:16 +08:00
Hyu
fde04e64f6
Merge remote-tracking branch 'origin/master' into dev/4.11.x
...
# Conflicts:
# src/langbot/pkg/api/http/controller/groups/pipelines/pipelines.py
# src/langbot/pkg/api/http/service/bot.py
# src/langbot/pkg/provider/runners/localagent.py
# src/langbot/templates/metadata/pipeline/ai.yaml
# tests/unit_tests/api/service/test_bot_service.py
# tests/unit_tests/provider/runners/test_difysvapi_runner.py
# tests/unit_tests/utils/test_safe_regex.py
# web/src/app/infra/entities/adapter-categories.ts
# web/src/app/wizard/page.tsx
# web/src/i18n/locales/en-US.ts
# web/src/i18n/locales/ja-JP.ts
# web/src/i18n/locales/zh-Hans.ts
# web/tests/e2e/plugin-page-auth.spec.ts
2026-08-31 17:17:47 +08:00
RockChinQ
1b7ae791b3
fix(plugin): return not found after removal ( #2483 )
...
Co-authored-by: Hyu <chenhyu@proton.me >
2026-08-31 13:40:03 +08:00
dadachann
0559d9d441
Merge master into dev/4.11.x
...
# Conflicts:
# pyproject.toml
# uv.lock
2026-08-24 02:34:14 +00:00
dadachann
c4bad508d2
fix(runtime): honor configured cold reconcile timeout
2026-08-20 18:55:24 +00:00
Hyu
7803d56254
fix(plugin): keep pre-tenancy plugin storage readable ( #2446 )
...
* fix(plugin): adopt legacy scoped storage rows
* fix(plugin): delete adopted legacy storage rows
* test(plugin): cover legacy storage deletion
* fix(plugin): avoid mutating legacy storage on reads
* fix(plugin): make legacy storage adoption atomic
* fix(plugin): resolve concurrent legacy adoption
* fix(plugin): upsert concurrent storage writes
* fix(plugin): retry reads after legacy adoption
* fix(plugin): deduplicate migrated storage keys
---------
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com >
2026-08-17 11:49:26 +08:00
Junyan Qin
f94243c725
chore: merge master into dev/4.11.x
2026-08-14 16:04:52 +08:00
Hyu
8b14d2ab8e
fix(runtime): allow shared plugin reconcile to finish ( #2419 )
...
Co-authored-by: Chan <dadachann@users.noreply.github.com >
2026-08-12 19:31:23 +08:00
Hyu
97428310b9
fix(runtime): require Cloud control secrets ( #2418 )
...
Co-authored-by: Chan <dadachann@users.noreply.github.com >
2026-08-12 18:42:23 +08:00
RockChinQ
bbc912d0ef
fix(runtime): restore standalone runtime compatibility
2026-08-11 21:35:03 +08:00
Hyu
7dc9dafb7c
fix(plugin): validate runtime timeout before startup ( #2407 )
...
Co-authored-by: Chan <dadachann@users.noreply.github.com >
2026-08-07 11:26:42 +08:00
Hyu
ddb6dbf593
fix(cloud): tolerate slow plugin runtime reconciliation ( #2405 )
...
Co-authored-by: Chan <dadachann@users.noreply.github.com >
2026-08-06 20:39:20 +08:00
Hyu
d78546967c
feat: expose Workspace-scoped rotating plugin debug keys ( #2395 )
...
* feat: add Workspace-scoped rotating plugin debug tokens
* chore: pin formatted Workspace debug runtime
* chore: pin merged Workspace debug runtime
* chore: pin tenant-safe debug runtime
---------
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com >
2026-08-04 19:20:06 +08:00
huanghuoguoguo
79611a5513
fix(agent): harden runner integration and QA
2026-08-01 09:23:41 +08:00
huanghuoguoguo
55f42a4ebc
chore(merge): sync master into dev/4.11.x
2026-07-31 19:29:38 +08:00
RockChinQ
e1ac5e0fc8
feat(tenancy): add Workspace multi-tenant foundation ( #2353 )
...
* Document multi-tenant workspace architecture
* Add OSS and commercial workspace boundaries
* docs: redesign multi-tenant workspace architecture
* feat(tenancy): implement workspace isolation
* docs(tenancy): record verification evidence
* docs(tenancy): revise single-instance SaaS topology
* docs(tenancy): refine architecture options
* docs: finalize cloud v2 multi-tenant decisions
* feat(tenancy): establish cloud isolation foundations
* feat(tenancy): harden shared cloud runtime boundaries
* docs(tenancy): record final isolation verification
* fix(tenancy): close isolation and permission gaps
* docs(tenancy): record final isolation verification
* feat(tenancy): connect cloud workspace control plane
* fix(build): install git for pinned SDK
* docs(cloud): update control plane verification
* chore: update multi-tenant SDK pin
* fix(cloud): skip legacy model sync during startup
* test(cloud): preserve minimal model manager fixtures
* fix(cloud): preserve authenticated account context
* fix(cloud): reuse authenticated account for user info
* feat(cloud): complete Workspace settings navigation
* test(web): cover Workspace dropdown menu
* feat(web): place workspace controls in sidebar
* refactor(web): streamline workspace controls
* style(web): format workspace layout test
* fix(cloud): surface runtime and workspace plan status
* fix(plugin): keep runtime identity stable across restarts
* fix(ui): widen and center workspace switcher
* fix(ui): hide roles from workspace switcher
* fix(ui): align workspace switcher with sidebar entries
* feat(workspace): add in-product collaboration and direct Cloud launch
* style: format collaboration changes
* fix(workspace): bind collaboration APIs to tenant UoW
* fix(cloud): preserve Core-owned collaboration state
* test(cloud): require Space identity for invite registration
* feat(cloud): complete secure invitation experience
* style(web): format invitation flows
* fix(cloud): recover box runtime without unscoped skill reload
* feat(oss): enforce invitation account and owner billing flows
* style: format OSS account service
* test(oss): cover invitation logout handoff
* fix(oss): resolve workspace owner in scoped session
* feat(cloud): harden multi-tenant runtime resources
* fix(cloud): bound runtime restart storms
* fix(cloud): eliminate periodic runtime CPU spikes
* fix(cloud): enforce instance capacity ceilings
* fix(cloud): scope public login capability discovery
* fix(cloud): bound tenant maintenance and monitoring work
* fix(runtime): bound tenant resource amplification
* fix(deps): pin green multi-tenant plugin SDK
* fix(cloud): handle unavailable skill capability
* fix(security): require authentication for image file endpoint (H-2)
- Changed /api/v1/files/image from AuthType.NONE to USER_TOKEN_OR_API_KEY
- Added Permission.RESOURCE_VIEW requirement
- Prevents unauthenticated cross-tenant file access via leaked keys
- Fixes HIGH severity finding from multi-tenant security review
docs: add comprehensive database migration guide
- Complete migration steps for OSS → multi-tenant
- Backup, execution, verification procedures
- Rollback scenarios and recovery plans
- Performance tuning recommendations
* test: add comprehensive cross-tenant isolation tests
Added 7 critical test scenarios for multi-tenant boundaries:
- Cross-tenant bot access prevention
- Viewer role read-only enforcement
- Removed member immediate access revocation
- Model provider credential isolation
- WebSocket message isolation
- Invitation token workspace scoping
- Multi-workspace context validation
These tests address P0-2 coverage gaps for:
- workspaces.py (membership & invitation flows)
- user.py (authentication & authorization)
- websocket_chat.py (real-time isolation)
- plugins.py (resource access control)
docs: finalize database migration guide
* fix(security): resolve M-1, M-2, M-3 security findings
M-1: WebSocket authorization TOCTOU race (FIXED)
- Changed _revalidate_websocket_authorization to return RequestContext
- Ensures validated context is used immediately without race window
- Prevents removed members from sending messages during revalidation gap
M-2: Model Manager cache workspace isolation (VERIFIED)
- Confirmed _CacheKey already uses 4-tuple: (instance, workspace, generation, resource)
- Cache is properly scoped per workspace, no cross-tenant leakage possible
- No code change needed, documented as working correctly
M-3: Invitation lock workspace scoping (FIXED)
- Changed lock key from token_digest to workspace_uuid:token_digest
- Prevents DoS where attacker locks token in Workspace A to block Workspace B
- Locks now isolated per workspace
All MEDIUM severity findings from security review now resolved.
* fix(cloud): unblock tenant CI and enforce knowledge quotas
* fix(tenancy): scope rerank model sync
---------
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com >
2026-07-30 21:43:35 +08:00
Junyan Qin
8511178666
fix(runtime): harden connector lifecycle
2026-07-23 16:03:26 +08:00
Junyan Qin
998b76d53a
fix(runtime): make plugin and box connectors resilient
2026-07-21 18:43:24 +08:00
Junyan Qin
1765c43262
Revert "fix(runtime): make plugin and box connectors resilient"
...
This reverts commit 0b461e5830 .
2026-07-21 18:43:01 +08:00
Junyan Qin
0b461e5830
fix(runtime): make plugin and box connectors resilient
2026-07-21 18:41:22 +08:00
huanghuoguoguo
7615c40f73
fix(plugin): extend knowledge retrieval timeout
2026-07-20 17:12:55 +08:00
huanghuoguoguo
1af106aa92
fix(agent-runner): validate clean marketplace onboarding
2026-07-19 22:46:01 +08:00
huanghuoguoguo
d88d05e27c
feat(agent-runner): enforce 4.x host-owned execution
2026-07-19 22:46:01 +08:00
huanghuoguoguo
517986bd10
feat(agent-runner): support scoped token counting
2026-07-19 22:41:31 +08:00
huanghuoguoguo
cb9930c9e4
feat(agent-runner): add plugin runner host integration
2026-07-19 22:41:30 +08:00
彼方
5c8c0eb17b
test: use package import paths ( #2297 )
2026-06-30 10:51:34 +08:00