Skip to content

Conversation

@lidel
Copy link
Member

@lidel lidel commented Sep 25, 2025

This PR adds protection against CDN bugs with large file range requests. It is disabled by default in boxo/gateway, but for Rainbow, it defaults to 5GiB to prevent Cloudflare from returning entire file instead of requested range, which causes excess bandwidth billing for everyone who is brave enough to run it behind CDN with bugs like this.

cc @cewood @hsanjuan

TODO

@lidel lidel requested a review from hsanjuan September 25, 2025 21:03
adds protection against CDN bugs with large file range requests.
defaults to 5GiB to prevent Cloudflare from returning entire file
instead of requested range, which causes excess bandwidth billing.

also fixes bitswap rebroadcast delay type issue

uses boxo@5c16939b32e3
@lidel lidel force-pushed the feat/max-range-request-file-size branch from 713c531 to e33b8eb Compare September 25, 2025 21:04
updates boxo to latest main branch commit for MaxRangeRequestFileSize support
resolved conflicts by choosing final release versions from main:
- boxo v0.35.0
- go-libp2p-kad-dht v0.35.0
- go.yaml.in/yaml/v2 v2.4.3
@lidel
Copy link
Member Author

lidel commented Oct 1, 2025

https://github.com/ipshipyard/waterworks-infra/pull/765 looking good on staging, moving forward with release to get this to prod.

@lidel lidel merged commit 7ee19c0 into main Oct 1, 2025
12 of 14 checks passed
@lidel lidel deleted the feat/max-range-request-file-size branch October 1, 2025 18:02
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.

4 participants