fix(cd): use absolute ssh key paths
All checks were successful
Code Review / ai-code-review (push) Successful in 10s

This commit is contained in:
OG T
2026-05-06 13:25:45 +08:00
parent 2c2bf9d665
commit 8ae7789e93
2 changed files with 23 additions and 11 deletions

View File

@@ -1,3 +1,15 @@
## 2026-05-06 | Gitea CD SSH key path no longer expands to /root
**背景**`2c2bf9d6` 的 CD `build-and-deploy``Inject K8s Secrets` 失敗runner 先把 deploy key 寫到 `${HOME}/.ssh/deploy_key`,但 `ssh -i ~/.ssh/deploy_key` 由 OpenSSH 展開成 `/root/.ssh/deploy_key`,導致 `Permission denied`
**本次修補**
- `.gitea/workflows/cd.yaml` 的 K8s deploy SSH_OPTS 改用 `${HOME}/.ssh/deploy_key` 絕對展開。
- 同步修正 188 ops script 同步步驟的 `deploy_key_188` path避免同類環境差異再次出現。
**驗證**
- `rg "SSH_OPTS=|~/.ssh/deploy_key" .gitea/workflows/cd.yaml` 確認 K8s SSH_OPTS 已無 `~` path。
- 待下一輪 CD 重新跑 `build-and-deploy``post-deploy-checks`
## 2026-05-06 | AwoooP approval and MCP Gate 5 stop importing aioredis
**背景**:整合計畫 P0-L 指出 AwoooP approval token service 與 MCP Gate 5 還在 runtime import `aioredis`;這會讓 approval / gateway path 在 Python 3.11+ 或套件漂移時直接壞掉,也繞過既有 Redis pool 管理。