diff --git a/development/ref/acls/index.html b/development/ref/acls/index.html index 71cb16bd..2a5da9e6 100644 --- a/development/ref/acls/index.html +++ b/development/ref/acls/index.html @@ -87,43 +87,41 @@ }, // developers have access to the internal network through the router. // the internal network is composed of HTTPS endpoints and Postgresql - // database servers. There's an additional rule to allow traffic to be - // forwarded to the internal subnet, 10.20.0.0/16. See this issue - // https://github.com/juanfont/headscale/issues/502 - { - "action": "accept", - "src": ["group:dev"], - "dst": ["10.20.0.0/16:443,5432", "router.internal:0"] - }, - - // servers should be able to talk to database in tcp/5432. Database should not be able to initiate connections to - // applications servers - { - "action": "accept", - "src": ["tag:dev-app-servers"], - "proto": "tcp", - "dst": ["tag:dev-databases:5432"] - }, - { - "action": "accept", - "src": ["tag:prod-app-servers"], - "dst": ["tag:prod-databases:5432"] - }, - - // interns have access to dev-app-servers only in reading mode - { - "action": "accept", - "src": ["group:intern"], - "dst": ["tag:dev-app-servers:80,443"] - }, - - // We still have to allow internal users communications since nothing guarantees that each user have - // their own users. - { "action": "accept", "src": ["boss@"], "dst": ["boss@:*"] }, - { "action": "accept", "src": ["dev1@"], "dst": ["dev1@:*"] }, - { "action": "accept", "src": ["dev2@"], "dst": ["dev2@:*"] }, - { "action": "accept", "src": ["admin1@"], "dst": ["admin1@:*"] }, - { "action": "accept", "src": ["intern1@"], "dst": ["intern1@:*"] } - ] -} + // database servers. + { + "action": "accept", + "src": ["group:dev"], + "dst": ["10.20.0.0/16:443,5432"] + }, + + // servers should be able to talk to database in tcp/5432. Database should not be able to initiate connections to + // applications servers + { + "action": "accept", + "src": ["tag:dev-app-servers"], + "proto": "tcp", + "dst": ["tag:dev-databases:5432"] + }, + { + "action": "accept", + "src": ["tag:prod-app-servers"], + "dst": ["tag:prod-databases:5432"] + }, + + // interns have access to dev-app-servers only in reading mode + { + "action": "accept", + "src": ["group:intern"], + "dst": ["tag:dev-app-servers:80,443"] + }, + + // We still have to allow internal users communications since nothing guarantees that each user have + // their own users. + { "action": "accept", "src": ["boss@"], "dst": ["boss@:*"] }, + { "action": "accept", "src": ["dev1@"], "dst": ["dev1@:*"] }, + { "action": "accept", "src": ["dev2@"], "dst": ["dev2@:*"] }, + { "action": "accept", "src": ["admin1@"], "dst": ["admin1@:*"] }, + { "action": "accept", "src": ["intern1@"], "dst": ["intern1@:*"] } + ] +}