Improve vault password installer options

This commit is contained in:
2026-05-14 15:15:10 +08:00
parent 3a67b253d8
commit ea1bb0979f
3 changed files with 228 additions and 53 deletions

View File

@@ -31,13 +31,20 @@ cd agent-secret-vault
./scripts/install-vault-pass.sh
```
這會從 repo 內的密碼保護壓縮檔解出
installer 會先檢查
```text
~/.config/vault-pass.txt
```
過程中需要你手動輸入壓縮檔密碼。
如果已存在,會保留並驗證。若不存在,會讓你選 4 種方式:
1. 建立新 vault password並在需要時建立加密 placeholder vault。
2. 手動輸入 vault-pass.txt 的內容。
3. 輸入 vault-pass.txt 的 URL讓 installer 自動下載。
4. 解壓 repo 內既有的密碼保護檔 `secrets/vault-pass.txt.zip`
若選第 4 種,請在你自己的 terminal 輸入 zip 密碼Telegram / chat 不能輸入到 agent 的工具互動提示。
驗證: