♻️ Refactor: 按业务拆分 API/数据库并集中网关鉴权 by Jasonxia007 · Pull Request #4160 · ModelEngine-Group/nexent · GitHub
Skip to content

♻️ Refactor: 按业务拆分 API/数据库并集中网关鉴权 - #4160

Open
Jasonxia007 wants to merge 4 commits into
developfrom
refactor/api-db-business-layout
Open

Jasonxia007 wants to merge 4 commits into
developfrom
refactor/api-db-business-layout

Conversation

@Jasonxia007

@Jasonxia007 Jasonxia007 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

将 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 和有效期约束。

@Jasonxia007 Jasonxia007 changed the title refactor(backend): 按业务拆分 API、数据库与公共契约 refactor(backend): 按业务拆分 API/数据库并集中网关鉴权 Oct 21, 2026
@Jasonxia007 Jasonxia007 changed the title refactor(backend): 按业务拆分 API/数据库并集中网关鉴权 ♻️ Refactor: 按业务拆分 API/数据库并集中网关鉴权 Oct 21, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants