feat(api): 实现控制面/数据面分离的双层API架构 - #6
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架构设计
- 更新 deno.lock 中 @hono/hono 版本从 4.12.24 到 4.12.27 - 移除 deno.lock 中 jsonwebtoken 和 openai 相关依赖 - 在数据建模页面添加刷新功能按钮 - 调整函数页面中搜索框和按钮的位置布局 - 移除项目概览面板中的函数入口URL显示 - 为文件浏览器组件添加上传文件列表状态管理 - 实现上传模态框关闭时清空文件列表功能
- 删除了ApiKeyResponse、CreateApiKeyRequest中的scope字段 - 移除了ApiKeyGenerator中与作用域相关的生成逻辑 - 更新了ApiKeyService中创建和重新生成密钥的方法实现 - 移除了AuthFilter中对管理接口和开放接口的作用域验证 - 删除了数据库模型中auth_api_key表的scope字段定义 - 修改了UI界面中的表单和表格列配置,移除作用域选择器 - 更新了端到端测试中请求数据的作用域字段 - 调整了项目基础域名配置为Optional类型并更新相关引用
- 删除了英文配置中的 scope、scope_open 和 scope_admin 字段 - 删除了中文配置中的 scope、scope_open 和 scope_admin 字段 - 清理了不再需要的国际化翻译资源 - 减少了语言包文件大小和内存占用
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.