audit: record dashboard actions and token lifecycle
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- grpc, rust
调研方向
Start by reading dashboard/auth/middleware.rs, dashboard/auth/gate.rs, and grpc/audit/layer.rs to compare authentication and audit coverage. Trace flexiq-server token create|revoke and the three audit_log backends, then determine whether SDK shells are in scope. Done means the scope, principal attribution, migration impact, and covered state-changing actions are agreed and tested.
由索引模型根据 Issue 内容生成。
描述
Follow-up to #840 (PR #991).
The audit trail covers token-authorised calls on the gRPC door and its JSON facade. It does not cover changes made from the dashboard: pause a queue, replay or purge dead letters, drain a worker, edit periodic tasks or overrides, mint or revoke tokens, change settings. Those requests authenticate with a session, not a token, so today nothing records who made them.
Design points:
- Attribution. Record the dashboard user (username or user id) rather than a token id. Either add a
principal_kind(token/user) toaudit_log, or reusetoken_id/principalwith a clear convention. Changingaudit_logmeans a migration on all three backends. - Choke point. The dashboard has its own gate (
dashboard/auth/middleware.rs,dashboard/auth/gate.rs). A layer there mirroringgrpc/audit/layer.rswould cover every state-changing route by default. - Token lifecycle. Minting and revoking tokens from the dashboard, and from
flexiq-server token create|revoke, are the most security-relevant events and are not recorded today. - Shells. Each SDK shell carries its own dashboard implementation. Decide whether this is a flexiq-server-only feature or a cross-SDK contract.
- 主要语言
- Rust
- 星标
- 20
- 派生
- 2
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ByteVeda/flexiq 的其他 Issue
-
docs enhancement P1
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 2 天内回复
-
enhancement P2 storage
难度 4/5 3-5 天 新手友好度 68/100
维护者通常 2 天内回复
-
enhancement node P2 rust
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 2 天内回复
-
enhancement epic P1 rust storage
难度 5/5 一周以上 新手友好度 30/100
维护者通常 2 天内回复
-
P2 rust tests
难度 3/5 1-2 天 新手友好度 65/100
维护者通常 2 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 94/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 2 天内回复
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:ui
难度 2/5 1-3 小时 新手友好度 78/100
openfootmanager/openfootmanager#1365 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1-3 小时 新手友好度 90/100
JackMechem/marbble#305 ·
维护者通常 1 天内回复