summaryrefslogtreecommitdiff
path: root/playbooks/roles/outbound/templates/headscale/config/acl.json
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2025-05-07 18:10:57 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2025-05-07 18:10:57 -0700
commitb8ffbfe27eae919750ef4d3facf02393d1004287 (patch)
tree78a22cffd1a387a1f482aac78a93fb951dcc81bb /playbooks/roles/outbound/templates/headscale/config/acl.json
parent59417f290463d3aabbf3ec2ab8e75703928db217 (diff)
downloadinfra-b8ffbfe27eae919750ef4d3facf02393d1004287.tar.gz
infra-b8ffbfe27eae919750ef4d3facf02393d1004287.zip
.git was corrupted on the machine i worked on these many commits. so here it is all at once :P
Diffstat (limited to 'playbooks/roles/outbound/templates/headscale/config/acl.json')
-rw-r--r--playbooks/roles/outbound/templates/headscale/config/acl.json15
1 files changed, 11 insertions, 4 deletions
diff --git a/playbooks/roles/outbound/templates/headscale/config/acl.json b/playbooks/roles/outbound/templates/headscale/config/acl.json
index 449207d..242d01e 100644
--- a/playbooks/roles/outbound/templates/headscale/config/acl.json
+++ b/playbooks/roles/outbound/templates/headscale/config/acl.json
@@ -1,17 +1,24 @@
{
"groups": {
- "group:internal": ["liz{{ oauth_user_suffix }}", "lucina{{ oauth_user_suffix }}", "riley{{ oauth_user_suffix }}"],
+ "group:coffee_admins": ["liz{{ oauth_user_suffix }}", "lucina{{ oauth_user_suffix }}"],
},
"acls": [
+{% for user in ["liz", "lucina", "riley"] %}
+ {
+ "action": "accept",
+ "src": ["{{ user }}{{ oauth_user_suffix }}"],
+ "dst": ["{{ user }}{{ oauth_user_suffix }}:*"]
+ },
+{% endfor %}
{
"action": "accept",
"src": ["{{ auth_key_user }}"],
- "dst": ["{{ auth_key_user }}:*", "10.0.0.0/8:*"]
+ "dst": ["{{ auth_key_user }}:*", "{{ loadbalancer_ip }}/32:*"]
},
{
"action": "accept",
- "src": ["group:internal"],
- "dst": ["10.0.0.0/8:*"]
+ "src": ["group:coffee_admins"],
+ "dst": ["{{ loadbalancer_ip }}/32:*"]
}
]
}