|
1 | 1 | { |
| 2 | + // from `testdata/input-parent.hujson` |
2 | 3 | "RandomizeClientPort": true, // inline comment |
3 | 4 |
|
4 | 5 | "acls": [ |
5 | | - // from testdata/departments/engineering/acls.hujson |
| 6 | + // from `testdata/input-parent.hujson` |
6 | 7 | { |
7 | 8 | // engineering1 |
8 | 9 | "action": "accept", |
|
27 | 28 | "dst": ["tag:demo-infra:22"], |
28 | 29 | "srcPosture": ["posture:latestMac"], |
29 | 30 | }, |
30 | | - // from testdata/departments/engineering/acls.json |
| 31 | + // from `testdata/departments/engineering/acls.json` |
31 | 32 | { |
32 | 33 | "action": "accept", |
33 | 34 | |
34 | 35 | "dst": ["tag:json-rule:22"], |
35 | 36 | "srcPosture": ["posture:latestMac"], |
36 | 37 | }, |
37 | | - // from testdata/departments/finance/acls.hujson |
| 38 | + // from `testdata/departments/finance/acls.hujson` |
38 | 39 | { |
39 | 40 | // finance1 |
40 | 41 | "action": "accept", |
|
51 | 52 | }, |
52 | 53 | ], |
53 | 54 |
|
| 55 | + // from `testdata/input-parent.hujson` |
54 | 56 | "extraDNSRecords": [ |
55 | 57 | { |
56 | 58 | "Name": "exra.dns.records", |
|
59 | 61 | ], |
60 | 62 |
|
61 | 63 | "grants": [ |
62 | | - // from testdata/departments/engineering/grants.hujson |
| 64 | + // from `testdata/departments/engineering/grants.hujson` |
63 | 65 | { |
64 | 66 | //"src": ["group:prod"], |
65 | 67 | |
|
70 | 72 | ], |
71 | 73 |
|
72 | 74 | "groups": { |
| 75 | + // from `testdata/input-parent.hujson` |
73 | 76 | "group:parent": ["from-parent"], |
74 | 77 |
|
75 | | - // from testdata/departments/engineering/groups.hujson |
| 78 | + // from `testdata/departments/engineering/groups.hujson` |
76 | 79 | "group:group1": [" [email protected]"], |
77 | 80 |
|
78 | | - // from testdata/departments/finance/acls.hujson |
| 81 | + // from `testdata/departments/finance/acls.hujson` |
79 | 82 | "group:group2": [" [email protected]"], |
80 | 83 | }, |
81 | 84 |
|
| 85 | + "ipsets": { |
| 86 | + // from `testdata/input-parent.hujson` |
| 87 | + "ipset:parent": ["192.0.2.0"], |
| 88 | + |
| 89 | + // from `testdata/departments/finance/ipsets.hujson` |
| 90 | + "ipset:parent": ["192.0.2.1"], |
| 91 | + }, |
| 92 | + |
| 93 | + // from `testdata/input-parent.hujson` |
82 | 94 | "nodeAttrs": [ |
83 | 95 | { |
84 | 96 | "target": ["*"], |
|
105 | 117 | }, |
106 | 118 | ], |
107 | 119 |
|
| 120 | + // from `testdata/input-parent.hujson` |
108 | 121 | "postures": {"posture:latestMac": ["node:os IN ['macos', 'linux']","node:tsReleaseTrack == 'stable'","node:tsVersion >= '1.40'"]}, |
109 | 122 |
|
110 | 123 | "ssh": [ |
| 124 | + // from `testdata/input-parent.hujson` |
111 | 125 | { |
112 | 126 | "action": "accept", |
113 | 127 | "src": ["autogroup:member"], |
114 | 128 | "dst": ["autogroup:self"], |
115 | 129 | "users": ["root", "autogroup:nonroot"], |
116 | 130 | }, |
117 | | - // from testdata/departments/engineering/acls.hujson |
| 131 | + // from `testdata/departments/engineering/acls.hujson` |
118 | 132 | { |
119 | 133 | "action": "accept", |
120 | 134 | "src": ["group:finance"], |
121 | 135 | "dst": ["autogroup:self"], |
122 | 136 | "users": ["root", "autogroup:nonroot"], |
123 | 137 | }, |
124 | | - // from testdata/departments/finance/ssh.hujson |
| 138 | + // from `testdata/departments/finance/ssh.hujson` |
125 | 139 | { |
126 | 140 | "action": "accept", |
127 | 141 | "src": ["autogroup:member"], |
|
136 | 150 | }, |
137 | 151 | ], |
138 | 152 |
|
| 153 | + // from `testdata/input-parent.hujson` |
139 | 154 | "tagOwners": { |
140 | 155 | "tag:parent": [], |
141 | 156 | "tag:cameron": ["autogroup:member"], |
|
144 | 159 | }, |
145 | 160 |
|
146 | 161 | "tests": [ |
147 | | - // from testdata/departments/engineering/acls.hujson |
| 162 | + // from `testdata/input-parent.hujson` |
148 | 163 | { |
149 | 164 | |
150 | 165 | "accept": ["tag:cameron:22"], |
151 | 166 | }, |
152 | | - // from testdata/departments/finance/acls.hujson |
| 167 | + // from `testdata/departments/finance/acls.hujson` |
153 | 168 | { |
154 | 169 | |
155 | 170 | "srcPostureAttrs": {"node:os": "windows"}, |
|
0 commit comments