Hi, I read about the
localapi in this blog post, and I would like to use the whois endpoint to provide lightweight authentication for an internal service.
Is the intent for the
localapi to be used publicly? I can’t find any documentation on it?
I see it discussed here, but I can’t seem to get it to work. With every request I make, e.g.
echo -e "GET /localapi/v0/status HTTP/1.0\r\n" | nc -U /run/tailscale/tailscaled.sock
I get this response:
<html><title>Tailscale</title><body><h1>Tailscale</h1>This is the local Tailscale daemon.
I expect I’m not formatting my URL correctly, as this check appears to fail, but I’m not familiar enough with go and the http server library to know exactly what is going wrong.
I can get it to work on windows, e.g.
returns a json blob as I’d expect.