Skip to content

Gateway: add UseInlinedDNSLink flag to config #9243

@lidel

Description

@lidel

See (B) from brave/brave-browser#22927

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 to Gateway.PublicGateways named UseInlinedDNSLink (disabled by default).

Metadata

Metadata

Assignees

Labels

P1High: Likely tackled by core team if no one steps upkind/bugA bug in existing code (including security flaws)kind/enhancementA net-new feature or improvement to an existing featuretopic/gatewayTopic gateway

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions