-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sops.yaml
executable file
·83 lines (61 loc) · 2.1 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
keys:
# each key has a corresponding ssh key
- &users:
- &admin age17j8hypc3ae5n3y2s20qv942ycnn33msrq3529t5zpv72mkvhgf4qx4n09e
- &upidapi age1ehtnj2jqzrqz4dhy7d465d0nw80v7hnsddpygtgujyyerfjyjsvsf5q7e7
- &hosts:
- &upinix-pc age1jg86srj56t8khvv6enf3vuxyzv8ws5j7rwzy4ar2zyf082ytqcsq43s773
- &upinix-laptop age1j35qp3h86grdkzk3m468gqcdpsvlsqnumakgpwc3jjt4a2cfweyqm4ewjl
- &minimal-installer-x86_64 age13cn9z4c93t4wm6pr54g6sgl9jtllkljpu74nfxfq7py4vwq4c33swyw3hu
- &full-installer-x86_64 age1pv4vess6fmduczjf82f9fzemumjugl67skye6hcwytqxd9kkx9dqatxyg7
# host keys stored in infra.yaml/${host name}
# user keys stored in users/${user name}.yaml/ssh-key
creation_rules:
# note: only one path_regex can apply per thing so we have
# to manually add the admin key to each one
# - path_regex: secrets/*
# key_groups:
# - age:
# contains everything that is needed to setup all systems
- path_regex: secrets/infra.yaml$
key_groups:
- age:
- *admin
# thins that all host should have accsess to
- path_regex: secrets/shared.yaml$
key_groups:
- age:
- *admin
- *upinix-pc
- *upinix-laptop
- *minimal-installer-x86_64
- *full-installer-x86_64
# host secrets (eg host syncthing, however this shoud not actually be on a host level)
- path_regex: secrets/hosts/upinix-pc.yaml$
key_groups:
- age:
- *admin
- *upinix-pc
- path_regex: secrets/hosts/upinix-laptop.yaml$
key_groups:
- age:
- *admin
- *upinix-laptop
- path_regex: secrets/hosts/minimal-installer-x86_64.yaml$
key_groups:
- age:
- *admin
- *minimal-installer-x86_64
- path_regex: secrets/hosts/full-installer-x86_64.yaml$
key_groups:
- age:
- *admin
- *full-installer-x86_64
# user secrets should be basically everything
- path_regex: secrets/users/upidapi.yaml$
key_groups:
- age:
- *admin
- *upinix-pc
- *upinix-laptop
- *upidapi