Gateway: add UseInlinedDNSLink flag to config #9243
Labels
kind/bug
A bug in existing code (including security flaws)
kind/enhancement
A net-new feature or improvement to an existing feature
P1
High: Likely tackled by core team if no one steps up
topic/gateway
Topic gateway
Current state
Public gateways inline DNSLink names into a single label if
X-Forwarded-Proto: https
is present (see docs)https://dweb.link/ipns/en.wikipedia-on-ipfs.org
→ redirect →https://en-wikipedia--on--ipfs-org.ipns.dweb.link/wiki/
Localhost gateway does not do that, it keeps the subdomains as they are:
http://localhost:48080/ipns/en.wikipedia-on-ipfs.org
→ redirect →http://en.wikipedia-on-ipfs.org.ipns.localhost:48080/wiki/
Requested enhancement
Brave team asked for a configuration flag that enables DNSLink name inlining into a single DNS label without switching protocol to https (brave/brave-browser#22927).
Proposed design
Add new optional
Flag
toGateway.PublicGateways
namedUseInlinedDNSLink
(disabled by default).The text was updated successfully, but these errors were encountered: