add acl in json

This commit is contained in:
Elizabeth Hunt 2024-01-04 02:14:29 -05:00
parent fdd85fb735
commit b62d5f559b
4 changed files with 24 additions and 8 deletions

View File

@ -0,0 +1,21 @@
{
"groups": {
"group:admin": ["elizabeth.hunt"]
},
"tagOwners": {
"tag:prod": ["group:admin"],
"tag:private": ["group:admin"],
"tag:dev": ["group:admin"]
},
"acls": [
{
"action": "accept",
"src": ["group:admin"],
"dst": [
"tag:dev:*",
"tag:private:*",
"tag:prod:*"
]
}
]
}

View File

@ -1,4 +0,0 @@
---
groups:
admin:
- "lizzy"

View File

@ -26,7 +26,7 @@
- name: build headscale config template
template:
src: ../templates/config.yml.j2
dest: /etc/docker/compose/headscale/config.yml
dest: /etc/docker/compose/headscale/config/config.yml
owner: root
group: root
mode: u=rw,g=r,o=r

View File

@ -160,7 +160,7 @@ log:
# Path to a file containg ACL policies.
# ACLs can be defined as YAML or HUJSON.
# https://tailscale.com/kb/1018/acls/
acl_policy_path: "/etc/headscale/acl.yml"
acl_policy_path: "/etc/headscale/acl.json"
## DNS
#
@ -264,8 +264,7 @@ oidc:
# - admins
# - people
# Optional.
allowed_users:
- "{{ headscale_allowed_users }}"
allowed_users: {{ headscale_allowed_users }}
# If `strip_email_domain` is set to `true`, the domain part of the username email address will be removed.
# This will transform `first-name.last-name@example.com` to the user `first-name.last-name`