-
-
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
unresolvable dnslink record allows /ipfs/ traffic #4973
Comments
I assume you're running an IPFS gateway at wikipedia.sixcorners.info? Setting a dnslink record on your DNS server isn't going to affect your IPFS node; it's still an IPFS gateway. If you want to limit the paths that can be resolved through your gateway, you can set the > ipfs config --json Gatway.PathPrefixes `["/ipns/QmdJiuMWp2FxyaerfLrtdLF6Nr1EWpL7dPAxA9oKSPYYgV"] That should configure the IPFS gateway to only resolve paths starting with |
wikipedia2.sixcorners.info now has a working dnslink.
It looks like when dnslink is set on the domain the gateway will only serve traffic to stuff the dnslink points to. #3902 and #4788 are issues that ask for ways to get around this behavior. I think it kind of makes sense. If you want to host an application that is served from your own ipfs gateway you might not want arbitrary resources to be served from your domain. I guess that's not something that can be relied on? Any chance we can set the path prefix to look something like /ipns/*.sixcorners.info ? |
If the domain has a DNS-Link, we want to use it even if it points to, e.g., an IPNS address that doesn't resolve. fixes #4973 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Huh. I guess I was wrong. I thought this was a feature of our gateways, not the IPFS gateway in general (I thought we did this with a reverse proxy). But now I see the issue. Sorry, I misinterpreted your initial post. The issue here is that, when |
If the domain has a DNS-Link, we want to use it even if it points to, e.g., an IPNS address that doesn't resolve. fixes #4973 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
If the domain has a DNS-Link, we want to use it even if it points to, e.g., an IPNS address that doesn't resolve. fixes #4973 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
If the domain has a DNS-Link, we want to use it even if it points to, e.g., an IPNS address that doesn't resolve. fixes #4973 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Version information:
go-ipfs version: 0.4.13-3b16b74
Repo version: 6
System version: amd64/linux
Golang version: go1.9.2
Docker image: ipfs/go-ipfs:latest@sha256:9e954a28f694b1d6e3ae0af1b374a498913b262069e926cdd5728b7f630149c8
Type:
Bug
Description:
Normally when you have a dnslink text record on a domain you can't access arbitrary stuff out of ipfs.
I set up a dnslink record to point to the wikipedia mirror:
/ipns/QmdJiuMWp2FxyaerfLrtdLF6Nr1EWpL7dPAxA9oKSPYYgV stopped working. I don't really know why. I created an issue about that here: ipfs/distributed-wikipedia-mirror#52
Now this link works after a short delay:
https://wikipedia.sixcorners.info/ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/
I would assume the expected behavior would be for the server to respond with a 404 or something.
The text was updated successfully, but these errors were encountered: