Skip to content

pstack/make-bot-ui: serve bot UIs over tailnet HTTPS by default - #1316

Open
habassa5 wants to merge 1 commit into
cursor:mainfrom
habassa5:pstack-make-bot-ui-https
Open

habassa5 wants to merge 1 commit into
cursor:mainfrom
habassa5:pstack-make-bot-ui-https

Conversation

@habassa5

Copy link
Copy Markdown

make-bot-ui currently says "Use HTTP. Do not add HTTPS unless the user asks." and binds the app to 0.0.0.0. In practice:

  • Edge and Chrome upgrade typed links to https://, so the HTTP link fails with ERR_SSL_PROTOCOL_ERROR the first time the user opens it.
  • Binding to 0.0.0.0 serves plain HTTP on every interface, including a public IP on a VPS. Bot UIs usually have no login and trigger webhook actions.

This change:

  • Binds the app to 127.0.0.1 and publishes it with tailscale serve --https=<port>, which gives a real Let's Encrypt cert and is tailnet-only.
  • Says never to use funnel, to check tailscale serve status for port conflicts, and to hand out only the MagicDNS https URL.
  • Says what to do when tailnet HTTPS certs aren't enabled, instead of silently falling back to HTTP.
  • Changes the probe to check https with a valid cert (no -k).

Tested on a real deploy: HTTPS 200 with a valid cert over the tailnet, and the public IP times out.

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

Successfully merging this pull request may close these issues.

1 participant