Skip to content

Bump github.com/go-chi/chi/v5 from 5.2.5 to 5.3.0 in the go-dependencies group across 1 directory - #726

Merged
lukasfrank merged 1 commit into
mainfrom
dependabot/go_modules/go-dependencies-c4addc1f71
May 26, 2026
Merged

lukasfrank merged 1 commit into
mainfrom
dependabot/go_modules/go-dependencies-c4addc1f71

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor

Bumps the go-dependencies group with 1 update in the / directory: github.com/go-chi/chi/v5.

Updates github.com/go-chi/chi/v5 from 5.2.5 to 5.3.0

Release notes

Sourced from github.com/go-chi/chi/v5's releases.

v5.3.0

What's Changed

New Contributors

SECURITY: middleware.ClientIP, a replacement for middleware.RealIP

@​VojtechVitek submitted PR #967, which introduces middleware.ClientIP — a replacement for middleware.RealIP that closes the three open spoofing advisories:

It also addresses issues outlined at:

middleware.RealIP is deprecated in this PR with pointers to the new API.

The deprecation only adds a // Deprecated: doc comment; the function keeps working for backward compatibility.

Why a new middleware (not "fix RealIP in place")

RealIP has two unfixable design choices: it mutates r.RemoteAddr, and it tries to be a one-size-fits-all default by walking a hard-coded list of headers any client can supply. Per adam-p's "The perils of the 'real' client IP" (which calls chi out by name on this), there is no safe default — the user must pick their trust source explicitly.

The new API

Four middlewares, two accessors. Pick exactly one middleware based on your infrastructure, read the result with one of the two accessors:

// One of the four. There is no safe default — pick exactly one.
func ClientIPFromHeader(trustedHeader string) func(http.Handler) http.Handler
func ClientIPFromXFF(trustedIPPrefixes ...string) func(http.Handler) http.Handler
func ClientIPFromXFFTrustedProxies(numTrustedProxies int) func(http.Handler) http.Handler
</tr></table> 

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code minor labels May 25, 2026
@dependabot
dependabot Bot requested a review from a team May 25, 2026 22:04
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code minor labels May 25, 2026
@lukasfrank

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps the go-dependencies group with 1 update in the / directory: [github.com/go-chi/chi/v5](https://github.com/go-chi/chi).


Updates `github.com/go-chi/chi/v5` from 5.2.5 to 5.3.0
- [Release notes](https://github.com/go-chi/chi/releases)
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md)
- [Commits](go-chi/chi@v5.2.5...v5.3.0)

---
updated-dependencies:
- dependency-name: github.com/go-chi/chi/v5
  dependency-version: 5.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title Bump github.com/go-chi/chi/v5 from 5.2.5 to 5.3.0 in the go-dependencies group Bump github.com/go-chi/chi/v5 from 5.2.5 to 5.3.0 in the go-dependencies group across 1 directory May 26, 2026
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/go-dependencies-c4addc1f71 branch from 52a594d to 855e23a Compare May 26, 2026 08:39
@lukasfrank
lukasfrank merged commit 591e134 into main May 26, 2026
10 checks passed
@lukasfrank
lukasfrank deleted the dependabot/go_modules/go-dependencies-c4addc1f71 branch May 26, 2026 12:56
@hardikdr hardikdr added this to Roadmap Aug 21, 2026
@github-project-automation github-project-automation Bot moved this to Done in Roadmap Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compute dependencies Pull requests that update a dependency file go Pull requests that update Go code minor size/XS

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants