zerosaturation
|
b7022d2dc1
|
fix(backend): auth boundary — trusted identity from ctx (batch 2)
- 新增 pkg/authctx: 从 Dubbo attachment/gRPC metadata 提取可信 user_id/star_id,
统一覆盖 req 同名字段, 缺身份返 Unauthenticated。
- 各 provider 接入(堵身份伪造/越权):
* moderation SubmitReport 等 6 RPC(举报人伪造)
* asset CheckAssetLike/GetAssetQrcode/TrackShare(点赞/分享归因伪造)
* social CheckFriendship(修 starID=0 隐私预言机)
* activity PurchaseItem/BatchPurchaseItem(水晶扣费伪造)等 5 RPC
* gallery/aiChat/task/notification 迁移 authctx, 删散落 extractUserInfo*
- social 正确性: GetUserLikedAssets OR 显式分组(防御); GetRandomUsersByStar 真随机(去 rand.Seed)。
- gateway: /auth/validate 移入 AuthMiddleware 保护组(/refresh 保留,依赖注入身份)。
- 删 userService 已迁移死函数; notification 缺身份错误码统一为 Unauthenticated。
- 各 provider 单测(伪造身份被覆盖 + 缺身份拒绝)。
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-07-23 01:12:35 +08:00 |
|
zerosaturation
|
2032246fd0
|
feat:增加分享界面,完善的保存图片功能
|
2026-06-26 16:45:29 +08:00 |
|
zerosaturation
|
271e0350c7
|
feat:重构code状态码
|
2026-06-15 16:28:35 +08:00 |
|
zerosaturation
|
dfb79af4b1
|
feat: 铸造菜单改为动态配置
|
2026-06-09 12:38:12 +08:00 |
|
zerosaturation
|
0852f96436
|
feat:去掉重复的点赞约束
|
2026-05-25 19:03:35 +08:00 |
|
zerosaturation
|
c6a8c66e39
|
feat: add asset level provider for dependency injection
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-25 19:03:31 +08:00 |
|
zerosaturation
|
ee0433464f
|
feat: 修改铸造消耗确认框和新增批量购买道具的功能,修改回退按钮的颜色
|
2026-05-22 00:14:28 +08:00 |
|
zerosaturation
|
45d3adc373
|
feat:添加光栅卡的选择
|
2026-05-17 19:03:34 +08:00 |
|
zerosaturation
|
afb235afd3
|
feat: 合并代码,解决冲突
|
2026-05-16 02:42:32 +08:00 |
|
zerosaturation
|
e5a09194ad
|
feat: 展览选择藏品进行分类功能
|
2026-04-20 19:31:42 +08:00 |
|
zerosaturation
|
06f4038a75
|
提交后端代码
|
2026-04-07 22:29:48 +08:00 |
|