-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.sops.yaml
33 lines (33 loc) · 1.24 KB
/
.sops.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
keys:
# To generate new admin key, run (requires [age](https://github.com/FiloSottile/age)):
# ```
# mkdir -p ~/.config/sops/age/
# age-keygen -o ~/.config/sops/age/keys.txt
# ```
# Provide the generated key to a pre-existing admin and wait for him to re-encrypt all secrets in this repo with it. After pulling the re-encrypted secrets you can read them with `sops some-file`.
- &joerg age17n64ahe3wesh8l8lj0zylf4nljdmqn28hvqns2g7hgm9mdkhlsvsjuvkxz
- &lassulus age1eq0e6uhjj2tja8v338tkdz8ema2aw5anpuyaq2uru7rt4lq7msyqqut6m2
- &dave age1vphy2sr6uw4ptsua3gh9khrm2cqyt65t46tusmt44z98qa7q6ymq6prrdl
# Downloaded like this: nix-shell -p ssh-to-age --run 'ssh-keyscan clan.lol | ssh-to-age'
- &web01 age17xuvz0fqtynzdmf8rfh4g3e46tx8w3mc6zgytrmuj5v9dhnldgxs7ue7ct
creation_rules:
- path_regex: targets/.*/(terraform.tfstate|secrets.auto.tfvars.sops.json)$
key_groups:
- age:
- *joerg
- *lassulus
- *dave
- path_regex: targets/web01/secrets.yaml$
key_groups:
- age:
- *joerg
- *lassulus
- *dave
- *web01
- path_regex: targets/web01-new/secrets.yaml$
key_groups:
- age:
- *joerg
- *lassulus
- *dave
- *web01