Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tailscale_auth seems not to work with tailscale+tls #28

Open
tmaier opened this issue Dec 30, 2023 · 2 comments
Open

tailscale_auth seems not to work with tailscale+tls #28

tmaier opened this issue Dec 30, 2023 · 2 comments

Comments

@tmaier
Copy link

tmaier commented Dec 30, 2023

This is my Caddyfile:

{
	order tailscale_auth after basicauth
	auto_https off
}

:80 {
	bind tailscale/dms-foo
	tailscale_auth
	reverse_proxy webserver-foo:8000

:443 {
	bind tailscale+tls/dms-foo
	tailscale_auth
	reverse_proxy webserver-foo:8000
}

curling the HTTP version returns 200, while the HTTPS version returns 401:

$ curl https://dms-foo.my-tailnet.ts.net -I
HTTP/1.1 401 Unauthorized
Server: Caddy
Date: Sat, 30 Dec 2023 21:53:52 GMT

$ curl http://dms-foo.my-tailnet.ts.net -I
HTTP/1.1 200 OK
...
Server: Caddy
...
@tmaier
Copy link
Author

tmaier commented Jan 14, 2024

I created a PoC, which shows that tailscale+tls + tailscale_auth do not work together.

See https://gist.github.com/tmaier/0a79b054b4bc69bb47320432017d1367

I would appreciate, if you could continue iterating on this plugin. It looks really promising!

@willnorris
Copy link
Member

willnorris commented May 16, 2024

I think the recent config code changes may have fixed this. At least, my current sample here is working well for me. Could you test again with the latest changes and see if this has been fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants