File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ sops を使わない場合:
2727- ローカル読み取りチェーン: ` run.sh ` -> ` bots/BOT/.env `
2828- デプロイ読み取りチェーン: ` rollcron.yaml ` -> ` ~/run/discord-bots/BOT/env ` (サーバーに ` bots/BOT/.env ` は存在しないので二重読みはない)
2929
30+ 詳細は [ docs/sops.md] ( docs/sops.md ) を参照。
31+
3032### 管理ルール
3133
3234- ` .env ` を読まない。` sops -d ` を実行しない。` .age-key ` を読まない。サーバ上の機密ファイルを読まない。
Original file line number Diff line number Diff line change @@ -74,11 +74,20 @@ sops updatekeys bots/my-bot/sops.env
7474
7575変更された ` sops.env ` をコミットする。
7676
77+ ## 復号できるか確認する (中身を見ずに)
78+
79+ ``` bash
80+ sops exec-env bots/my-bot/sops.env ' echo ok'
81+ ```
82+
83+ ` ok ` が出れば鍵が正しい。値は表示されない。
84+
7785## よく使うコマンド
7886
7987``` bash
80- sops bots/my-bot/sops.env # 作成 or 編集
81- sops -d bots/my-bot/sops.env # 復号して stdout に表示
82- sops updatekeys bots/my-bot/sops.env # .sops.yaml の変更を反映
83- age-keygen -y .age-key # 自分の公開鍵を表示
88+ sops bots/my-bot/sops.env # 作成 or 編集
89+ sops exec-env bots/my-bot/sops.env ' echo ok' # 復号チェック (中身非表示)
90+ sops -d bots/my-bot/sops.env # 復号して stdout に表示
91+ sops updatekeys bots/my-bot/sops.env # .sops.yaml の変更を反映
92+ age-keygen -y .age-key # 自分の公開鍵を表示
8493```
You can’t perform that action at this time.
0 commit comments