Hi there, new user, so I’m probably just making an obvious error.
I’m trying to write ACLs, but I can’t figure out how to get my username to match in the src field.
None of these are working:
{
// https://tailscale.com/kb/1018/acls/#groups
"groups": [
{"group:bennett": ["bennettp123@github"]},
],
// https://tailscale.com/kb/1068/acl-tags/
"tagOwners": {
"tag:server": ["group:bennett"],
},
"acls": [
//https://tailscale.com/kb/1018/acls/#users
{ "src": ["bennettp123@github"], "dst": ["tag:webserver:443,80"], "proto": "tcp", "action": "accept" },
// https://tailscale.com/kb/1192/acl-samples/#remote-access-to-corp-devices-recommended-initial-acl
{ "src": ["autogroup:members"], "dst": ["tag:webserver:443,80"], "proto": "tcp", "action": "accept" },
// https://tailscale.com/kb/1192/acl-samples/#remote-access-to-production-environment
{ "src": ["group:bennett"], "dst": ["tag:webserver:443,80"], "proto": "tcp", "action": "accept" },
// https://tailscale.com/kb/1192/acl-samples/#allow-all-default-acl
{ "src": ["*"], "dst": ["tag:webserver:443,80"], "proto": "tcp", "action": "accept" },
]
The last one (default acl) actually shows up in preview rules—none of the others show up. However, when I run tailscale status
, it doesn’t list anything tagged “webserver”.
Usually when I’m struggling to get something work, it helps to write tests. The test below returns an error
{
"tests": [{
"src": "bennettp123@github",
"accept": [
"webserver:80",
"webserver:443",
],
}],
}
Error: test(s) failed
test(s) failed for user: bennettp123@github
[acl test error]: user is invalid
The “user is invalid” error is what makes me think it’s a problem with the user, and not the ACLs themselves.
Any idea what I’m doing wrong?