-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.sops.yaml
47 lines (41 loc) · 1.44 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Make a user key
# mkdir -p ~/.config/sops/age
# age-keygen -o ~/.config/sops/age/keys.txt
# chmod 600 ~/.config/sops/age/keys.txt
# Display the user public key:
# age-keygen -y ~/.config/sops/age/keys.txt
# Make a host public key:
# nix-shell -p ssh-to-age
# ssh-to-age -i /etc/ssh/ssh_host_ed25519_key.pub
# Add secrets
# sops secrets/secrets.yaml
# Rekey secrets.yaml after editing recipients in .sops.yaml:
# sops updatekeys secrets/secrets.yaml
keys:
- &users:
- &olivergeneser_enterprise age1ce9umy5mclkpzm7eklmzmrmu4q6m3jtzwhvez7rjz9eh5kzkcdmqky5p2g
- &olivergeneser_huawei age1hevs0hxh95f3uspeu2jqsh0elxnzhmjytw4p7pk36wlny4zzdpcs7egy8e
- &hosts:
- &enterprise age1xzt9jx0jy6dva6xkhmefzacj9zlcdp53mfxap6h2grtean8rn9kqkmsrgq
- &huawei age1jpth454ptlcr6c7p4889p4w8cxxf8mca9zm7rrjhkv8r24gr0cysmcma7n
- &thor age1snjuvtw6el635fq79lavy0q6grsy87fcp77tneuhlxk697068fuqeuur6k
- &tunnelboy age1gc4an6pe0txqvvca0f8na7uyvgsalp2adle4fvq8gkywvz7qp93sjlmv05
creation_rules:
- path_regex: modules/nixos/secrets.ya?ml$
key_groups:
- age:
- *enterprise
- *huawei
- *thor
- *tunnelboy
- *olivergeneser_enterprise
- *olivergeneser_huawei
- path_regex: modules/nixos/services/secrets.ya?ml$
key_groups:
- age:
- *enterprise
- *huawei
- *thor
- *tunnelboy
- *olivergeneser_enterprise
- *olivergeneser_huawei