Skip to content

build(deps): bump github.com/valyala/fasthttp from 1.76.0 to 1.77.0 in the fasthttp-modules group - #4803

Merged
ReneWerner87 merged 9 commits into
mainfrom
dependabot/go_modules/fasthttp-modules-2a567d3116
Oct 26, 2026
Merged

ReneWerner87 merged 9 commits into
mainfrom
dependabot/go_modules/fasthttp-modules-2a567d3116

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the fasthttp-modules group with 1 update: github.com/valyala/fasthttp.

Updates github.com/valyala/fasthttp from 1.76.0 to 1.77.0

Release notes

Sourced from github.com/valyala/fasthttp's releases.

v1.77.0

v1.77.0 strengthens static-file confinement, fixes hijacked connection handling, and improves HTTP and cookie compatibility. It also adds an opt-in bounded stream reader, configurable body-buffer retention, and deadline support for adapted net/http handlers.

Static-file symlink behavior changes by default. The default OS-backed FS now rejects symlinks that leave Root or CompressRoot, as well as absolute symlinks even when their targets are inside the root. Relative symlinks that stay inside the root continue to work. Set FS.AllowSymlinksOutsideRoot to restore the previous behavior when external symlinks are intentional. Custom FS.FS implementations are unaffected. #2490

Security fixes and hardening

  • Default static-file operations stay within their configured roots. File reads and compressed-cache operations use os.Root to prevent symlink traversal outside Root and CompressRoot. Each root is confined independently; empty roots with AllowEmptyRoot and whole-volume roots retain their existing behavior. #2490
  • Custom filesystems no longer trigger unrelated disk deletions. A stale compressed file in a custom FS.FS previously caused an os.Remove call using its filesystem-relative name, potentially deleting a matching file in the process working directory. Custom filesystems now regenerate stale compressed content in memory without removing a disk file. #2489
  • Kept hijacked connections no longer depend on a recycled request context. With both KeepHijackedConns and ReduceMemoryUsage enabled, the hijacked reader is detached from the context before the hijack handler runs. This prevents later reads from panicking or accessing another client's connection after context reuse. #2495

Features and resource management

  • An opt-in stream reader bounds copied payload buffering. NewBoundedStreamReader works with SetBodyStream and applies backpressure when consumers fall behind. Active copied payload is limited to 160 KiB per bridge, or 320 KiB across the two bridges used by its bounded compression path. These limits exclude caller buffers, codecs, sockets, and other overhead; wrapping the reader loses the combined compression bound. Existing NewStreamReader and SetBodyStreamWriter behavior is unchanged. #2488
  • Request and response body buffers can be retained explicitly. The exported Request.KeepBodyBuffer and Response.KeepBodyBuffer fields preserve body buffers across resets for reuse. Releasing a request or response to the pool clears the retention setting. #2451
  • Adapted handlers can configure connection deadlines. RequestCtx.SetReadDeadline and SetWriteDeadline are also exposed through fasthttpadaptor, enabling http.ResponseController deadline calls. The adaptor still buffers the request body before invoking the handler, so a read deadline set inside an adapted handler cannot govern the preceding upload. #2452

HTTP compatibility and connection handling

  • Weighted compression codings are recognized. Accept-Encoding entries such as gzip;q=0.8 now match, while q=0 makes a coding unacceptable. Matching remains case-insensitive and requires a complete coding token; quality-based preference ordering and wildcard matching are not added. #2491
  • HTTP/1.0 clients no longer receive unsupported informational responses. Expect: 100-continue is ignored for HTTP/1.0 requests, and 103 Early Hints is not sent to HTTP/1.0 clients. #2492, #2496
  • Hijacking works with server keep-alive limits. DisableKeepalive and reaching MaxRequestsPerConn no longer suppress a registered hijack handler or add an unwanted Connection: close to an upgrade response. Explicit connection-close requests and other existing close conditions still apply. #2494
  • Pipe connection deadlines interrupt pending operations. Updating deadlines on fasthttputil.PipeConns now affects blocked reads and writes, and write-deadline updates no longer race with writes. #2471
  • Cookie parsing tolerates invalid attributes and handles names consistently. Invalid Max-Age attributes are ignored, Secure, HttpOnly, and Partitioned are recognized even with a value, and surrounding tabs are trimmed. Set-Cookie values without = are stored under the same empty key returned by Cookie.ParseBytes, keeping lookup and deletion consistent. #2497, #2498, #2500, #2501

Proxy authentication now uses decoded credentials in Proxy-Authorization, and static-file 416 Range Not Satisfiable responses include Content-Range. #2499, #2502

What's Changed

Security and hardening

Features

Fixes

... (truncated)

Commits
  • 61bdcc3 fix(fs): send Content-Range with 416 responses (#2502)
  • 020e4ed fix(cookie): store Set-Cookie without '=' under the key ParseBytes gives it (...
  • 33b5261 fix(cookie): trim tabs around cookie names, values and attributes (#2500)
  • 7e7f8ec fix(cookie): recognize Secure, HttpOnly and Partitioned with a value (#2498)
  • 720d20e fix(fasthttpproxy): send decoded proxy credentials in Proxy-Authorization (#2...
  • 91b4512 fix(cookie): ignore an invalid Max-Age attribute instead of failing to parse ...
  • e0f6199 Export KeepBodyBuffer on Request and Response (#2451)
  • d9bf5c5 fix: detach kept hijacked connections from the request context's reader (#2495)
  • ad21d1b make PipeConns deadlines interrupt pending reads and writes (#2471)
  • 09cba73 fix: run hijack handlers under DisableKeepalive and MaxRequestsPerConn (#2494)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the fasthttp-modules group with 1 update: [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp).


Updates `github.com/valyala/fasthttp` from 1.76.0 to 1.77.0
- [Release notes](https://github.com/valyala/fasthttp/releases)
- [Commits](valyala/fasthttp@v1.76.0...v1.77.0)

---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
  dependency-version: 1.77.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: fasthttp-modules
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from a team as a code owner October 26, 2026 10:22
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a3638f82-7a6c-450d-8a4d-0a3ba6d9065b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T10:27:08.276759Z a298712 PR opened
🔒 Security Review ✅ Completed 2026-10-26T10:25:55.066581Z a298712 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ReneWerner87 ReneWerner87 added this to the v3 milestone Oct 26, 2026
@ReneWerner87 ReneWerner87 added this to v3 Oct 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a298712fab

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread go.mod Resolved
Comment thread go.mod Resolved
fasthttp 1.77 sends Content-Range: bytes */<size> with a 416 (RFC 9110
§15.5.17). The If-Range path answered through ctx.Error after fetching
the whole file, which wipes the header, so a matching If-Range with an
unsatisfiable range lost it. Keep the file server's value: the whole
file may be compressed, so its length is the wrong one.
The file server and the byterange wrapper now set it on every 416, so
the extra stat per ranged SendFile request only duplicated their work.

Copy link
Copy Markdown
Member

Pushed 322371d: fasthttp 1.77.0 now sends Content-Range: bytes */<length> with a 416 from its file server (RFC 9110 §15.5.17), so the internal/byterange and middleware/static tests that expected no Content-Range on 416 now expect bytes */20.


Generated by Claude Code

@ReneWerner87 ReneWerner87 self-assigned this Oct 26, 2026
@codecov

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.81%. Comparing base (f6b465f) to head (3f35c77).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4803      +/-   ##
==========================================
- Coverage   95.83%   95.81%   -0.03%     
==========================================
  Files         153      153              
  Lines       18610    18589      -21     
==========================================
- Hits        17835    17811      -24     
- Misses        485      487       +2     
- Partials      290      291       +1     
Flag Coverage Δ
unittests 95.81% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

fasthttp 1.77 confines a root on disk: a symbolic link that leaves it,
and an absolute link even when it points inside, now gets 404. Pass its
AllowSymlinksOutsideRoot through so deployments that link shared assets
on purpose can opt back in. The secure default stays.
A status set before SendFile replaced whatever the file server answered,
so c.Status(201) turned a 206 into a 201 with a partial body and a 416
into a 201 carrying the error text. It now replaces only a 200. Download
and MaxAge no longer put Content-Disposition and Cache-Control on a 416,
as the static middleware already does.
Drop the rows that only pinned how fasthttp parses a Range Fiber passes
on untouched; both recent fasthttp bumps flipped them. Cover If-Range
against an ETag the caller set in the byterange suite, have the static
table hit a rule only the wrapper applies, and stop asserting an absent
Accept-Ranges on the 416. Bring two comments up to date with fasthttp
ignoring several ranges itself.
@ReneWerner87
ReneWerner87 force-pushed the dependabot/go_modules/fasthttp-modules-2a567d3116 branch from 322371d to 6618b9a Compare October 26, 2026 11:35
fasthttp 1.77 confines the file server to its root, and the compressed
copy of a file root lies beside the file, outside it, so every request
with an Accept-Encoding it could compress for fell through as a miss.
A file root serves only itself, so it is not confined.
With a status of 300 or above set before SendFile, the file server still
honored Range and If-Modified-Since, so c.Status(404).SendFile answered
304 or 206 since 9f10d7d, and an empty or partial 404 before it. Those
fields apply only to a 2xx (RFC 9110 §13.2.1, §14.2): hide them from the
file server and put them back afterwards. Download and MaxAge now follow
the status that is sent, as in the static middleware.
A link the root confinement refuses is a miss, so a later handler can
still serve the path; it is not a 404 by itself. Note that file roots
are not confined and that Compress writes copies into a linked
directory. Drop a test comment the test no longer checks and keep the
static table's want prefix.
@ReneWerner87
ReneWerner87 merged commit ede8ca0 into main Oct 26, 2026
31 checks passed
@ReneWerner87
ReneWerner87 deleted the dependabot/go_modules/fasthttp-modules-2a567d3116 branch October 26, 2026 12:54
@github-project-automation github-project-automation Bot moved this to Done in v3 Oct 26, 2026
@ReneWerner87 ReneWerner87 modified the milestones: v3, v3.7.0 Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants