feat(api): 实现控制面/数据面分离的双层API架构 - #1
Merged
Merged
Conversation
cjbi
commented
Aug 12, 2026
Contributor
- 引入open/admin双surface认证体系,open surface支持open scope API Key和匿名访问
- 新增OpenDataResource和OpenFunctionResource提供面向终端用户的开放API端点
- 修改Nginx配置实现子域名路由到页面和开放API,主域名路由到管理API
- 更新API Key生成逻辑,区分admin/open作用域并调整前缀格式
- 重构认证过滤器实现基于路径的API surface隔离和权限校验
- 调整边缘函数调用路径从/functions/{projectId}/{name}改为/open/{projectId}/functions/{name}
- 更新相关测试用例和依赖配置以适配新的API架构设计
- 引入open/admin双surface认证体系,open surface支持open scope API Key和匿名访问
- 新增OpenDataResource和OpenFunctionResource提供面向终端用户的开放API端点
- 修改Nginx配置实现子域名路由到页面和开放API,主域名路由到管理API
- 更新API Key生成逻辑,区分admin/open作用域并调整前缀格式
- 重构认证过滤器实现基于路径的API surface隔离和权限校验
- 调整边缘函数调用路径从/functions/{projectId}/{name}改为/open/{projectId}/functions/{name}
- 更新相关测试用例和依赖配置以适配新的API架构设计
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.