多副本部署下凭证状态不一致(幽灵凭证、间歇性401) #2068
Answered
by
luispater
ImogeneOctaviap794
asked this question in
Q&A
-
问题描述使用 PostgreSQL 存储(
根因分析每个 Pod 启动时从 PG 一次性同步到本地文件系统( 简单说就是:PG 只在启动时读一次,运行时没有任何跨副本同步机制。 相关代码路径:
复现步骤
影响范围所有使用 OAuth 的 Provider(Codex、Kiro、Copilot 等)在多副本下都会受影响。 建议修复方向
当前规避方式将副本数设为 1。 环境信息
|
Beta Was this translation helpful? Give feedback.
Answered by
luispater
Mar 11, 2026
Replies: 1 comment
-
|
一个凭证只能在一个地方存活,多地存活会导致互刷导致凭证随机失效。这个无解,你只有多次登录拿不同凭证给不同的实例使用。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
luispater
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一个凭证只能在一个地方存活,多地存活会导致互刷导致凭证随机失效。这个无解,你只有多次登录拿不同凭证给不同的实例使用。