本卡屬 FR-193(母卡 FR-193 母案(同清單上一張)),卡 A4,階段 P1,批 3。只改 evidence-agent。依賴:A1。

這張卡做什麼(白話)

容器裡的 uid 1000 在 rootless 下對應到主機是「子 uid 起點 + 1000」(例如 101000),每台不同。安裝程式裡三處 chown 1000 全部改走換算函式。另外解密後的設定目錄 /run/guidant-agent 現在 root 700,guidant 的 Docker 要讀得到才能把 .env 掛進容器,改 750 root:guidant、.env 640,放在 secrets 服務的 load 裡(tmpfs 每次開機重建)。

reuse/extend/new

new:換算函式獨立一支讓 A3 之外的檔也能用;secrets 服務解完改 750 root:guidant

在哪裡

repo:/Users/chouraymond/Projects/Billows/Audit-Manager/evidence-agent
改既有:scripts/install/lib/secrets.sh
改既有:scripts/install/lib/secrets_cmds.sh
改既有:scripts/install/lib/systemd/guidant-agent-secrets.service
新開:scripts/install/lib/subuid_map.sh

怎麼做

驗收(首腦照這個驗)

install.sh 2333、upgrade_order.sh 91、local_admin.sh 28 三處 chown 走換算;/run/guidant-agent 開機後 750 root:guidant、.env 640;容器能寫 upload/agent-order;重開機後 Agent 自起

必讀