{{ message }}
Repository navigation
♻️ Refactor: 按业务拆分 API/数据库并集中网关鉴权 - #4160
Open
Jasonxia007 wants to merge 4 commits into
Open
Jasonxia007 wants to merge 4 commits into
Jasonxia007 wants to merge 4 commits into
Conversation
Jasonxia007
requested review from
Dallas98,
WMC001,
YehongPan,
hhhhsc701 and
jeffwu-1999
as code owners
October 21, 2026 04:06
This branch has not been deployed
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.

将 backend/apps 的 HTTP 路由迁入 management、gateway、runtime、data_process 各自的 api 业务目录,将 backend/database 的持久化实现迁入 management/db 的业务模块。混合的配置与运行接口按服务归属拆开,公共常量及请求类型归 contracts,通用工具归 management/utils。
本次继续收拢鉴权。gateway/authentication 统一凭据提取、会话 JWT、API key、内部运行令牌及 OAuth 待补全凭据的校验,并构造共享身份。北向上下文与 FastAPI 鉴权依赖也归 Gateway。会话策略拒绝内部运行令牌与待补全凭据,内部运行策略保留 issuer、audience、scope 和有效期约束。