-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
--api doesn't support TLS #6137
Comments
The key missing part here is finishing enough of the multiaddr spec (@lgierth?) to support this. I believe the "correct" multiaddr way would be |
FYI, this one return |
We'll get |
There are multiple problems with this:
For both reasons, it is unlikely that go-ipfs will support API over Closing this as a duplicate of discussion in #5974 (feel free to continue there) |
Please correct me if I'm wrong, but it seems to me that #6137 (this issue) is about supporting client-side TLS while #5974 is about server-side TLS. What I mean by "client-side" is e.g. when IPFS is behind TLS-terminating reverse proxy (nginx, caddy, etc) and now I want to do |
Version information:
go-ipfs version: 0.4.19-
Repo version: 7
System version: amd64/linux
Golang version: go1.11.5
Type: enhancement
Description:
Based on my understanding of multiaddr, it should be possible to do something like
ipfs --api="/dns4/ipfs.io/tcp/5001/https" id
to connect to a remote node using TLS. You guessed already, that doesn't work.What happen is that go-ipfs, even though the
https
part is parsed properly, keep doing http requests. Obviously, the component that add the TLS layer in front of the API doesn't like that very much, return and error, and the call fail with:I understand that go-ipfs doesn't natively support TLS for its API, but it's a common and natural way to protect a node exposed over the internet. Can this be sorted out ?
The text was updated successfully, but these errors were encountered: