Repository navigation
fix: 同步 alpha1-fix2 会话认证修复到 main - #2858
Merged
Merged
Conversation
Select platform or legacy DSH activity recording after validating the cookie bridge. Keep presence requests relative to the wrapped transport and preserve the workspace prefix for unload beacons. Add real JWT and SQLite route-admission regressions for both session types, exact-device activity and revocation, plus presence URL lifecycle coverage. Update the platform session design notes. Validation: 38 focused backend tests and 15 frontend tests passed; frontend lint/typecheck, Ruff and arch-guard passed. The older authenticated-entrypoints suite has 32 failures reproduced on the unmodified baseline.
Update product and runtime version strings, both frontend packages, toolkit platform metadata, Compose and Helm image defaults, Chart appVersions and release fixtures. Keep Python project and lock versions on the valid PEP 440 spelling 3.1.0a1+fix2. Verify dependency and artifact hashes remain unchanged, all three frozen production exports succeed, and the update script is idempotent. Helm and runtime release coverage: 89 passed. Distribution coverage: 27 passed with one existing route-source assertion failure reproduced on baseline.
Re-export the shared PlatformActivity implementation from platform_identity so existing mobile and upload activity consumers retain their import path. Authentication/OAuth regression: 191 passed. MCP reproduction: 4 passed. The larger combined selection retains the same three OAuth tenant-filter failures as the target baseline.
## 问题与行为 在 hotfix/3.1.0-alpha1-fix2 已有 c8fff9a 会话分派热修复的基础上,将平台凭据验证、无密会话引用及活动处理统一到用户域 auth 共享入口,Web、Desktop 和第一方 Token Exchange 复用同一套校验。工具/知识业务权限保持现有 PermissionService/资源校验,不引入权限旁路。 ## 新协议与兼容 - 新 Desktop/Work 用 POST /api/v1/auth/web-session 取一次性票据,经同源 consume 取得平台 Cookie。consume 补充 platform_session_hint,确保正确选择 HttpOnly access Cookie。 - 兼容期保留旧 /dsh/web-session 请求和响应结构,继续支持经过完整验证的旧 DSH 与平台 Desktop 凭据;平台凭据校验或续期失败不会回退到旧 DSH 验证器。已有 Cookie 继续验证,平台来源 activity 统一调用 auth。 - 旧客户端可以继续运行,新客户端使用新协议,无需所有客户端和服务端同步切换;新客户端不在 auth 失败时回退旧协议。 - /dsh/web-session、/dsh/token、/dsh/logout、/user/login、/user/logout 标记 OpenAPI deprecated;DSH兼容入口返回RFC 9745 Deprecation 日期头,不声明下线日期。浏览器授权/PKCE/票据回调继续保留。 ## 回归与验证 - 保留 base 中 c8fff9a 的真实 JWT/SQL/准入层聊天回归及前端 presence 路径修复。兼容平台旧桥接的断言与本 PR 行为一致。 - 补充平台票据→Cookie→Work MCP SDK tools/call 回归用例,覆盖父子会话活动、撤销、hint和票据重放;补充旧桥接必须通过权威认证及兼容平台 principal 的断言。 - 先前静态 Ruff、AST、限定架构检查通过;本次兼容调整 Ruff、format、git diff --check通过。按用户此前要求,本轮未运行功能测试,未部署,不宣称真实搜索验收通过。 ## 发布顺序 先发布兼容服务端,再分批升级 bisheng-work 企业插件。客户端源码迁移在另一仓库,未包含于本 PR,尚未提交/安装;旧客户端升级期间仍可用旧桥接。待新客户端覆盖后再另行决定旧接口退场,不在此 PR 中强制拒绝旧调用。 客户端上一轮最终全仓类型检查受其他并发移动端修改阻断,不能视为客户端发布验收通过。 Refs #2854;真实搜索及撤销场景完成联调后再关闭 issue。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
将最新
hotfix/3.1.0-alpha1-fix2合入main,同步 7 个提交、46 个文件的改动:PlatformActivity兼容入口,并标记旧登录/DSH 接口废弃。3.1.0-alpha1-fix2版本号及相关回归用例、迁移文档。Why
将 alpha1-fix2 已有的 Desktop/Work 认证修复同步回主线,避免后续主线发布遗漏修复,并保持旧客户端兼容。
How
hotfix/3.1.0-alpha1-fix2,创建时 HEAD 为abae2d091cc9045c65e7480216169543cbfa5b53。main,创建时 HEAD 为72eac61575812d49b0989ad6ac2ec59b7761c856。Test
源分支包含网页会话续期、平台 Cookie/Work MCP、旧桥接兼容及 presence 路径的回归用例;既有验证范围见 #2857。真实 MCP 搜索及撤销场景仍需联调验收。
Related