headscale icon indicating copy to clipboard operation
headscale copied to clipboard

Print out loaded ACLs

Open 12nick12 opened this issue 2 years ago • 5 comments

Print out loaded ACLs. This would be awesome to make sure all ACLs are loaded.

12nick12 avatar Mar 10 '22 04:03 12nick12

We could have a command for inspecting the current loaded acls

kradalby avatar Mar 10 '22 08:03 kradalby

I started to draw some lines around a new API to retrieve, modify and check ACLs based on the official tailscale API.

restanrm avatar Mar 10 '22 09:03 restanrm

Anyway works for me. The reason I'd love this is I see an error in the logs about having issues loading ACLs, but it's not clear on which rule or why. If we had a simple way to show I think it'd be awesome so I could figure out which one isn't' working/loaded.

12nick12 avatar Mar 10 '22 14:03 12nick12

I started to draw some lines around a new API to retrieve, modify and check ACLs based on the official tailscale API.

While I appreciate the need for API support, I really want this to be "config as code" first, I dont have any good idea on how to solve that yet.

I suppose a "study" of potential solutions would be sensible before going too far down one route.

kradalby avatar Mar 10 '22 19:03 kradalby

Ok, I'll keep that in mind and try to list different kind of solutions.

restanrm avatar Mar 11 '22 10:03 restanrm