docs: update gateway PROJECT.md with console integration status

- Add console integration status to PROJECT.md
- Add console PROJECT.md and STATE.md
This commit is contained in:
movingsam 2026-03-02 18:19:43 +08:00
parent 8f7e8d3a71
commit 27ea1d1c21
2 changed files with 25 additions and 0 deletions

View File

@ -60,6 +60,17 @@ fengling-service-discovery/ # 服务发现
- 负载均衡锁竞争
- 缺少单元测试
**Console 集成现状:**
- fengling-console 已实现 GatewayController 和 GatewayService
- Console 拥有 GatewayDbContext可直接管理网关配置数据
- Console 的 ReloadGatewayAsync() 目前为空实现,未实现广播机制
- Redis 已引用但未使用,可用于 pub/sub 广播
- 硬编码凭据(安全风险)
- JWT Token 未验证(安全风险)
- API 端点无认证(安全风险)
- 负载均衡锁竞争
- 缺少单元测试
## 约束
- **多实例**:网关必须支持同时运行多个实例

View File

@ -54,6 +54,20 @@
| 多实例广播 | 2026-03-02 | Redis pub/sub 或 PostgreSQL NOTIFY |
| K8s 健康委托 | 2026-03-02 | Console 处理 K8s 健康,非网关 |
### Console 集成现状
- **2026-03-02** 分析 fengling-console 项目现状
- Console 已实现 GatewayController 和 GatewayService
- Console 拥有 GatewayDbContext可直接管理网关配置
- ReloadGatewayAsync() 为空实现,需要实现广播机制
- Redis 已引用但未使用,可用于 pub/sub
| 决策 | 日期 | 备注 |
|------|------|------|
| Console 驱动配置 | 2026-03-02 | 配置在 fengling-console 变更,网关监听 |
| 多实例广播 | 2026-03-02 | Redis pub/sub 或 PostgreSQL NOTIFY |
| K8s 健康委托 | 2026-03-02 | Console 处理 K8s 健康,非网关 |
### Roadmap 演进
- 阶段 1 已添加Console 驱动的配置管理与多实例支持