Commit Graph
7 Commits
Author SHA1 Message Date
chenchenandClaude Opus 4.8 b754af8ba1 fix(mcp-server): device-code 一次性作废失效修复(consume 集群 Redis 删除未生效)
初版 consume_device_code 用裸 redis_client.delete() 且吞异常,在集群 Azure
Redis 上删除未生效,导致一个 device_code 换发 token 后仍能在每次 >interval
的轮询继续换发新 token —— 违反 RFC 8628 一次性语义与验收「换一次后再用→拒绝」。

初测二次轮询都在 slow_down 窗口内(<5s)被限流响应遮住,未暴露;>5s 公网
真实轮询复测才暴露。

修复:consume 改用已验证可靠的 _set_keepttl 置 status=consumed(token 端点
签发前硬检查 consumed → expired_token),并 best-effort 删除 device_code +
device_user_code 两个 key。即使集群删除失败,状态位硬拦截。

复测(公网 APIM 真实路径,间隔 >5s):首 poll 签发 → 二/三次 poll 均
expired_token,不再重复签发。

镜像 device-code-fix2-20260722-arm64 @sha256:716c2e2d 已部署生产 3/3 Running。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 15:24:27 +08:00
chenchenandClaude Opus 4.8 f5f0218233 feat(mcp-server): headless 设备登录 device-code(RFC8628) authorize/approve/token 端点
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 14:16:03 +08:00
chenchen 697ea5ac7b bak 2026-06-24 18:01:46 +08:00
chenchenandClaude Opus 4.8 75f78c59c6 chore(k8s): 发信切 Gmail(super@heicode.cc) + 开启发信总闸 + 落地域名改 code.heicode.cc
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 15:32:21 +08:00
chenchenandClaude Opus 4.8 8f3b25f491 chore(k8s): prod 注入 MAGIC_LINK_EMAIL_ENABLED + 镜像 tag 升 arm64-v2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 16:26:45 +08:00
chenchenandClaude Opus 4.8 b44a1f9ee6 chore(k8s): prod 注入 MAGIC_LINK_PUBLIC_BASE_URL + 升级 mcp-server 镜像 tag
- configmap.yaml:新增 MAGIC_LINK_PUBLIC_BASE_URL=APIM 域(§11 终态)
- mcp-server.yaml:引用该 env + 镜像升至 magic-link-20260609

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 18:26:21 +08:00
chenchen d0b79030f1 更新heicode 2026-05-05 14:13:59 +08:00