fix(reboot): open host runner controlled automation
Some checks failed
CD Pipeline / tests (push) Waiting to run
Ansible / Reboot Recovery Contract / validate (push) Successful in 1m16s
Code Review / ai-code-review (push) Successful in 22s
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled

This commit is contained in:
Your Name
2026-06-28 02:08:13 +08:00
parent aa41db6875
commit b6c600e24d
3 changed files with 53 additions and 16 deletions

View File

@@ -1,3 +1,29 @@
## 2026-06-28 — 02:06 110 runner fail-closed guard 轉 controlled automation
**背景**:統帥明確要求非 critical hard gate / guard 全部打開並快速推進正式部署。`2a1cd3cc8 fix(reboot): fail closed host runner startup` 將 110 startup runner path 改成 sentinel fail-closed且 disabled 分支會 `disable --now` / `SIGKILL` / `pkill -KILL` 正在跑的 runnerlive `/usr/local/bin/awoooi-startup-110.sh` 與 user-level runner service 也仍是舊 guard 版本,會重新阻斷 CD。
**完成內容**
- `scripts/reboot-recovery/awoooi-startup-110.sh` 將 AWOOI 專用 runner 預設改為 controlled automation 啟動:`AWOOOI_START_GITEA_RUNNER_ON_BOOT` 預設 `1`
- sentinel 改為 optional只有 `AWOOOI_REQUIRE_RUNNER_ENABLE_SENTINEL=1` 時才要求 `AWOOOI_RUNNER_ENABLE_SENTINEL`
- disabled 分支不再預設殺掉既有 runner只有明確設定 `AWOOOI_STOP_GITEA_RUNNER_WHEN_DISABLED=1` 才執行 stop / SIGKILL / pkill。
- live 110 已同步 `/usr/local/bin/awoooi-startup-110.sh`、system `gitea-act-runner-host.service`、user-level `gitea-act-runner-host.service` 為受控版本system runner service 已 `enabled``active/running`
- live 110 已移除 `/etc/systemd/system/gitea-act-runner-host.service.d/00-awoooi-disabled-pressure-guard.conf`、清掉 runner binary / service immutable bit並保留原檔備份。
**本地 / live 驗證結果**
- `bash -n scripts/reboot-recovery/awoooi-startup-110.sh`:通過。
- `git diff --check`:通過。
- live `systemctl show gitea-act-runner-host.service``LoadState=loaded``ActiveState=active``SubState=running``Result=success`
- live `/usr/local/bin/awoooi-startup-110.sh`:讀回 `AWOOOI_START_GITEA_RUNNER_ON_BOOT="${AWOOOI_START_GITEA_RUNNER_ON_BOOT:-1}"`
- live user-level runner service讀回 `ExecStart=/home/wooo/act-runner/act_runner daemon --config /home/wooo/act-runner/config.yaml`,不再是 `/bin/false`
**仍保留的 break-glass 邊界**
- 本段只打開 AWOOI 專用 CD runner controlled automation沒有放寬 secret value、private key、token、cookie、credential URL、raw `.env`、raw session / SQLite。
- 沒有做 DB destructive / backup restore / force push / repo deletion / refs deletion / paid provider route switch / external active exploit scan。
**下一步**
- commit / push 本段 runner controlled automation patch。
- 等最新 deploy marker 後讀回正式 Approvals、Runs、Work Items、Alerts確認 AwoooP 低 / 中 / 高風險流程不再把人工當預設終局。
## 2026-06-28 — GitHub private backup controlled execution 授權 gate 本地完成
**背景**:統帥明確要求「硬閘全部打開、完全授權、全面快速推進」。本段把舊 GitHub private backup `blocked/read-only` gate 改成可審計的 owner controlled execution authorization這是授權 gate 變更,不是秘密值收件,也不是已完成 GitHub 寫入。