Skip to content

Commit 4ca42b8

Browse files
committed
meta: update SOPS docs and CLAUDE.md
1 parent 455019e commit 4ca42b8

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

.sops.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
_:
2-
deploy: &deploy age12n68j7wyf97vrw4jwr5x0gf2zdcumh65r9uq3mctsa6y9f8ex4yqm2gx06
3-
aster-void: &aster-void age1mc8e35xaeteup9t88369j7y0ka08et8ezztqzc7dy0h4ecgxh47szjwx9v
2+
age-public-keys:
3+
- &deploy age12n68j7wyf97vrw4jwr5x0gf2zdcumh65r9uq3mctsa6y9f8ex4yqm2gx06
4+
- &aster-void age1mc8e35xaeteup9t88369j7y0ka08et8ezztqzc7dy0h4ecgxh47szjwx9v
45

56
creation_rules:
6-
- path_regex: .*
7+
- path_regex: bots/auto-moderator/sops2.env
8+
age:
9+
- *deploy
10+
- path_regex: bots/auto-moderator/*
711
age:
812
- *deploy
913
- *aster-void

CLAUDE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
- `sops -d` を実行しない。コマンドを実行する必要がある場合は `sops exec-env` で直接実行する
2-
- `.age-key` を読まない
2+
- `.age-key` を読まない
33

44
## コマンド実行方法
55

66
```bash
77
eval "$(direnv export bash)" && <command>
88
```
9+
10+
## SOPS検証方法
11+
12+
```bash
13+
sops exec-env path/to/sops.env 'echo success!'
14+
```

docs/sops.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ creation_rules:
2727
sops exec-env sops.env 'your-command'
2828
```
2929

30+
## 再暗号化
31+
32+
`.sops.yaml`のキーを変更した後に実行:
33+
34+
```bash
35+
sops updatekeys sops.env
36+
```
37+
3038
## 公開鍵を取得
3139

3240
```bash

0 commit comments

Comments
 (0)