Skip to content
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

feat: support ens resolution #56

Merged
merged 5 commits into from
Feb 27, 2024
Merged

feat: support ens resolution #56

merged 5 commits into from
Feb 27, 2024

Conversation

SgtPooki
Copy link
Member

  • chore: use latest verified-fetch RC
  • feat: add cloudflare eth resolver

Title

Description

Adds cloudflare ens resolver (which falls back to regular dns resolution) and updates verified-fetch to the latest RC.

fixes #23

Notes & open questions

SHOULD NOT BE MERGED because cloudflare is still failing CORS. See ipshipyard/waterworks-community#6 (comment)

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@SgtPooki SgtPooki requested a review from lidel February 27, 2024 04:42
Copy link
Member Author

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self review

@@ -126,7 +129,12 @@ function changeCssFontPath (path: string): string {
*
*/
export async function heliaFetch ({ path, helia, signal, headers, id, protocol }: HeliaFetchOptions): Promise<Response> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove helia here and the get-helia since we can't pass both custom dnsResolvers and a custom helia instance.

@SgtPooki SgtPooki self-assigned this Feb 27, 2024
until either cloudflare or delegated-ipfs.dev dns-query is working, this is working for ens resolution
@SgtPooki
Copy link
Member Author

ens resolution is working with the last RC version of verified-fetch and the config from https://github.com/ipshipyard/waterworks-infra/pull/30 deployed to sgtpooki.com/dns-query that is currently returning 404 at delegated-ipfs.dev/dns-query.

@SgtPooki SgtPooki marked this pull request as ready for review February 27, 2024 19:13
Copy link
Member Author

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self review

@SgtPooki SgtPooki merged commit 4c9a3f3 into main Feb 27, 2024
12 checks passed
@SgtPooki SgtPooki deleted the feat/ens-resolution branch February 27, 2024 19:37
@lidel lidel mentioned this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the same DNSLink TLDs as Kubo and Rainbow
1 participant