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

HTTPS Support #62

Closed
Weldawadyathink opened this issue Dec 10, 2021 · 36 comments · Fixed by #137
Closed

HTTPS Support #62

Weldawadyathink opened this issue Dec 10, 2021 · 36 comments · Fixed by #137

Comments

@Weldawadyathink
Copy link

Weldawadyathink commented Dec 10, 2021

HTTPS Support

https://tailscale.com/kb/1153/enabling-https/

Is it possible to add support for requesting an SSL certificate with Tailscale?

@github-actions
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Jan 10, 2022
@franzbischoff
Copy link

franzbischoff commented Jan 11, 2022

There is a requirement on current version: tailscale/tailscale#2932

Fix:
create a folder at /data/tailscale
edit /etc/services.d/tailscaled/run /var/run/s6/services/tailscaled/run
change options+=(--state=/data/tailscaled.state) to options+=(--state=/data/tailscale/tailscaled.state)
copy the current /data/tailscaled.state to /data/tailscale/tailscaled.state to keep login etc.
restart service: s6-svc -r /var/run/s6/services/tailscaled

now you can run /opt/tailscale cert yourmachine.yourdomain.ts.net

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Jan 11, 2022
@github-actions
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Feb 19, 2022
@benley
Copy link

benley commented Feb 24, 2022

There is a requirement on current version: https://issueexplorer.com/issue/tailscale/tailscale/2932

I get a 404 on that link, but I think this is the issue in question: tailscale/tailscale#2932

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Feb 24, 2022
@franzbischoff
Copy link

Just made a Gist for that.

Use at your own risk:

tailscale hack

@ananthb
Copy link

ananthb commented Apr 8, 2022

Would it make sense to add this as a config option?

@franzbischoff
Copy link

For me makes total sense. To be able to move from using an external port on my router to access HA with my phone, for example, I use HTTPS and the tailscale "domain" with the provided certificate.

@ananthb
Copy link

ananthb commented Apr 14, 2022

@frenck could you take a look at my PR? Would love to get this merged soon!

@github-actions
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label May 15, 2022
@benley
Copy link

benley commented May 17, 2022

not stale

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label May 18, 2022
@github-actions
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Jun 17, 2022
@ananthb
Copy link

ananthb commented Jun 17, 2022

Still being worked on.

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Jun 18, 2022
@github-actions
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Jul 18, 2022
@benley
Copy link

benley commented Jul 18, 2022

still not stale

@franzbischoff
Copy link

not stale!

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Jul 19, 2022
@martusi61
Copy link

I'm waiting too!

@github-actions
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Sep 10, 2022
@franzbischoff
Copy link

nooooooooooot stale

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Oct 11, 2022
@ceiphr
Copy link

ceiphr commented Oct 11, 2022

not stale

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Oct 12, 2022
@stroodle96
Copy link

Also hoping this gets added.

@Mincka
Copy link

Mincka commented Nov 7, 2022

You can have a look at this alternative addon which seems to provide https support:
https://github.com/tsujamin/hass-addons/tree/main/tailscale
https://github.com/tsujamin/hass-addons/blob/main/tailscale/DOCS.md#option-cert_domain
tsujamin/hass-addons#29

@elcajon
Copy link
Contributor

elcajon commented Nov 8, 2022

I made another suggestion to set Tailscale up with https support for Home Assistant (without manually handling the certificate and key files --> so still "zero config"). Feel free to give it a try #123

@github-actions
Copy link

github-actions bot commented Dec 9, 2022

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Dec 9, 2022
@ceiphr
Copy link

ceiphr commented Dec 9, 2022

not stale

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Dec 10, 2022
@github-actions
Copy link

github-actions bot commented Jan 9, 2023

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Jan 9, 2023
@lmagyar
Copy link
Contributor

lmagyar commented Jan 9, 2023

It has a working implementation as a PR, so it is not stale.

Though there is a new (currently alpha) Tailscale feature called Funnel, that seems to be an even better solution:

  • Tailscale provides an internet->VPN proxy, so you don't need to install a Tailscale client on your phone, laptop, etc.
  • It is dual opt-in, so can be turned on by default (like exit node, subnet features)
  • After I test it I will create another PR for this Funnel feature

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Jan 10, 2023
@lmagyar
Copy link
Contributor

lmagyar commented Jan 11, 2023

And now this HTTPS problem has a much better solution, though no PR yet, because the Tailscale feature is still alpha.

My previous solution PR #134 (that you can try at https://github.com/lmagyar/homeassistant-addon-tailscale) downloaded a certificate and we had to use it.


But @elcajon notified me about a new feature, Tailscale Funnel:

  • built in https proxy in tailscaled
  • TCP proxy on the Tailscale servers from the internet into our VPN
  • so you can access HA from a general browser, even without an installed Tailscale client

ClientInternetTailscale Funnel (TCP Proxy) ⇒ VPNTailscale Proxy (https proxy) → HA (http web-server)


I modified his solution into a no-config add-on version, that you can try in my other repo: https://github.com/lmagyar/homeassistant-addon-tailscale-funnel

This should replace my previous solution, but the Tailscale Funnel feature is still in alpha, so I prefer not to make a PR yet.

You need an invite to test the Funnel feature: https://login.tailscale.com/admin/feature/rWXbjRuCEc9 (first 10 people can use it, and those 10 can invite 10 x 10 other "tester"...).

But without the Funnel, the add-on starts at least the built in Proxy, and logs a warning about the missing Funnel.

@ShadowJonathan
Copy link

Tailscale funnel could indeed solve a huge part of this problem, but it would step on the toes, or basically trample, the Home Assistant Cloud offering, so i'm not confident that HA will entirely embrace something like that

@lmagyar
Copy link
Contributor

lmagyar commented Jan 18, 2023

I've made a PR with the built-in https proxy instead of the manual certificate download in #89 #134.

This doesn't involve the still alpha funnel feature, but at least it is a no-config solution for the https support.

@lmagyar
Copy link
Contributor

lmagyar commented Feb 6, 2023

FYI:

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Mar 9, 2023
@lmagyar
Copy link
Contributor

lmagyar commented Mar 9, 2023

not stale

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Mar 10, 2023
@frenck
Copy link
Member

frenck commented Mar 30, 2023

Closing this issue, as it is a feature request and not en issue/bug report.

../Frenck

@frenck frenck closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2023
@ananthb
Copy link

ananthb commented Mar 30, 2023

LOL

@franzbischoff
Copy link

The most requested featured I've seen, closed :-D

@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet