From 8b08c2a918b0ffc776567692f7f178465bb6044a Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Thu, 17 Mar 2022 19:24:39 -0300 Subject: [PATCH] Docs/ACLs: Namespaces are created automatically --- docs/acls.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/docs/acls.md b/docs/acls.md index f13dd8e..c94ddd9 100644 --- a/docs/acls.md +++ b/docs/acls.md @@ -26,19 +26,10 @@ servers. ## Setup of the network -Let's create the namespaces. Each user should have his own namespace. The users -here are represented as namespaces. +Namespaces will be created automatically when users authenticate with the +Headscale server. -```bash -headscale namespaces create boss -headscale namespaces create admin1 -headscale namespaces create dev1 -headscale namespaces create dev2 -headscale namespaces create intern1 -``` - -We don't need to create namespaces for the servers because the servers will be -tagged. When registering the servers we will need to add the flag +When registering the servers we will need to add the flag `--advertised-tags=tag:,tag:`, and the user (namespace) that is registering the server should be allowed to do it. Since anyone can add tags to a server they can register, the check of the tags is done on headscale server