Tailscale Authentication for Nginx
tailscale.com
Tailscale Authentication for Nginx
1–10 of 45 posts
Re: Tailscale Authentication for Nginx
#2Re: Tailscale Authentication for Nginx
#3This is pretty cool, but does potentially open any of these services not just to the browser but to any malware running on your clients. Probably not a huge deal in most cases but something to keep in mind.
Re: Tailscale Authentication for Nginx
#4One interesting enhancement, which is probably not within scope of this tool, would be a way to logically AND a bunch of these auth tools together. With that you could use this tool without changes to assert that someone is allowed on the tailnet then pass those results to a second process that checks what groups they belong to and authorizes them for the particular upstream being checked. One could accomplish that with one nginx proxy per application, of course, and lean into Tailscale's ACLs for authz.
Re: Tailscale Authentication for Nginx
#5Re: Tailscale Authentication for Nginx
#6For this implementation, how does the request work for the user? Is it http-auth, or some other SSO web login form?
Re: Tailscale Authentication for Nginx
#7Re: Tailscale Authentication for Nginx
#8I’m a big fan of using subrequest authentication with nginx. I’ve been using it for years, but in my case, it uses plain http-auth to get the credentials from the user (with an ldap backend). For this implementation, how does the request work for the user? Is it http-auth, or some other SSO web login form?
Re: Tailscale Authentication for Nginx
#9I’m a big fan of using subrequest authentication with nginx. I’ve been using it for years, but in my case, it uses plain http-auth to get the credentials from the user (with an ldap backend). For this implementation, how does the request work for the user? Is it http-auth, or some other SSO web login form?
It's transparent. The user is already authenticated to the tailnet by dint of having a tailscale IP. This implementation asks the local tailscale daemon for who the request's IP belongs to and just passes that back up to nginx. It does some filtering to make sure it's an actual user instead of a service machine (i.e. does the IP have tags or not, basically) but otherwise leans entirely on Tailscale's ACLs.
Re: Tailscale Authentication for Nginx
#10Earlier quoted context omitted.
It's transparent. The user is already authenticated to the tailnet by dint of having a tailscale IP. This implementation asks the local tailscale daemon for who the request's IP belongs to and just passes that back up to nginx. It does some filtering to make sure it's an actual user instead of a service machine (i.e. does the IP have tags or not, basically) but otherwise leans entirely on Tailscale's ACLs.
Got it. So, it’s a legit SSO process. Being able to control IP addresses has its advantages!