Add Origin isolation test for user-provided IPFS Gateway #14156
Labels
closed/by-author
feature/web3/ipfs
OS/Android
Fixes related to Android browser functionality
OS/Desktop
Brave should verify if a gateway entered by the user provides Origin-per-CID.
This is paramount for basic isolation between websites loaded via
ipfs://
andipns://
when public gateway is selected as a resolver.Test script
Assuming user entered "https://dweb.link" as their gateway:
If needed, https://cf-ipfs.com can be used as an alternative name for tests.
Click to expand why "bafkqaaa"
The weirdly short "bafkqaaa" is a handy CID we use for various tests: it represents a zero-length "identity" multihash, so in other words "". Its main property is that it does not trigger DHT lookup, because empty byte array is inlined into the identifier itself, so the test is instant, and the payload is empty, so we can use regular GET instead of HEAD.Expected behavior
cc #13683 #13751 @bbondy @spylogsster
The text was updated successfully, but these errors were encountered: