-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpolicy.hujson
97 lines (96 loc) · 2.5 KB
/
policy.hujson
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// This tailnet's ACLs are maintained in https://github.com/cetacean/tailscale-acls, do not edit in the admin panel
{
"groups": {
"group:admins": [ "xe@github", "victorvalenca@github" ],
"group:low-trust": [ "twi@github" ],
"group:within": [ "xe@github", "victorvalenca@github", "heartmender@github" ],
},
"hosts": {
"vm-subnet": "10.77.0.0/17",
},
"tagOwners": {
"tag:nixos": [ "group:admins" ],
"tag:hypervisor": [ "group:admins" ],
"tag:hetzner": [ "group:admins" ],
"tag:ci": [ "group:admins" ],
"tag:alpine": [ "group:admins" ],
"tag:vm": [ "group:admins" ],
"tag:alrest": [ "group:admins" ],
"tag:sensitive": [ "group:admins" ],
"tag:games": [ "group:admins" ],
"tag:xe": [ "xe@github" ],
"tag:service": [ "group:admins" ],
"tag:test": [ "xe@github" ],
},
// Access control lists.
"acls": [
// { "action": "accept", "src": ["*"], "dst": ["vm-subnet:*"] },
{ "action": "accept", "src": ["*"], "dst": ["autogroup:self:*"] },
{ "action": "accept", "src": ["group:admins"], "dst": ["*:*"] },
{ "action": "accept", "src": ["*"], "dst": ["*:*"] },
],
"ssh": [
{
"action": "accept",
"src": ["tag:alrest", "tag:nixos"],
"dst": ["tag:alrest"],
"users": ["root", "autogroup:nonroot"],
},
{
"action": "accept",
"src": ["group:admins"],
"dst": ["tag:games"],
"users": ["autogroup:nonroot", "root"]
},
{
"action": "accept",
"src": ["group:admins", "tag:alrest"],
"dst": ["tag:ci"],
"users": ["autogroup:nonroot", "root"]
},
{
"action": "accept",
"src": ["tag:ci"],
"dst": ["tag:ci"],
"users": ["autogroup:nonroot", "root"]
},
{
"action": "accept",
"src": ["xe@github", "tag:alrest"],
"dst": ["tag:xe"],
"users": ["autogroup:nonroot", "root"]
},
{
"action": "accept",
"src": ["group:admins", "tag:alrest"],
"dst": ["tag:vm"],
"users": ["autogroup:nonroot", "root"]
},
{
"action": "accept",
"src": ["group:admins"],
"dst": ["tag:alrest"],
"users": ["autogroup:nonroot"]
},
{
"action": "check",
"src": ["group:admins"],
"dst": ["tag:alrest"],
"users": ["root"],
},
],
"nodeAttrs": [
{
"target": ["group:admins"],
"attr": ["funnel"],
},
{
"target": ["tag:service"],
"attr": ["funnel"],
},
{
"target": ["tag:alrest"],
"attr": ["funnel"],
}
],
}