-
Notifications
You must be signed in to change notification settings - Fork 334
Disable redirect on X-Ipfs-Path without DNSLink on the root document #1052
Copy link
Copy link
Open
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps uparea/MV2Issues related to Manifest V2 versionIssues related to Manifest V2 versionarea/MV3Issues related to Manifest V3 versionIssues related to Manifest V3 versioneffort/hoursEstimated to take one or several hoursEstimated to take one or several hoursexp/intermediatePrior experience is likely helpfulPrior experience is likely helpfulkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)
Milestone
Metadata
Metadata
Assignees
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps uparea/MV2Issues related to Manifest V2 versionIssues related to Manifest V2 versionarea/MV3Issues related to Manifest V3 versionIssues related to Manifest V3 versioneffort/hoursEstimated to take one or several hoursEstimated to take one or several hoursexp/intermediatePrior experience is likely helpfulPrior experience is likely helpfulkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)
https://fleek.co is an example of interesting misconfiguration (at least today 2022-02-17):
fleek.cohas no DNSLinkx-ipfs-pathto immutable snapshotProblem
Companion will use
x-ipfs-pathas fallback:ipfs-companion/add-on/src/lib/ipfs-request.js
Lines 310 to 312 in eacee6c
This means opening https://fleek.co with ipfs-companion will redirect user to http://bafybeidwgtlx54aifd5ynwwvlozr2fuw5xrmbu3ivnwmnoxi4ewdnxty5y.ipfs.localhost:8080
Solution
x-ipfs-path, as that makes it hard for user to bookmark, access the latest version in the future, and could introduce regressions (only websites with valid DNSLink should be redirected).x-ipfs-path, but the domain has no DNSLink set up.