fix(deps): update module github.com/go-chi/chi/v5 to v5.3.0#474
Merged
Conversation
5e893ba to
a2afeab
Compare
c6b9f2f to
f0ef9a4
Compare
476596a to
61330bc
Compare
df12c80 to
f016c02
Compare
This was referenced Jun 20, 2026
Closed
purpleclay
added a commit
that referenced
this pull request
Jun 21, 2026
Signed-off-by: purpleclay <purpleclaygh@gmail.com> Co-authored-by: Purple Clay <purpleclaygh@gmail.com>
purpleclay
added a commit
that referenced
this pull request
Jun 21, 2026
Signed-off-by: purpleclay <purpleclaygh@gmail.com>
purpleclay
added a commit
that referenced
this pull request
Jun 21, 2026
Closes #505 vendor.yml always regenerated govendor.toml at the repo root regardless of which go.mod/go.sum actually changed, so Renovate bumps to `templates/{default,workspace,image}` left those directories' manifests drifted and silently broke CI (#474). Add a detect job that diffs the PR's base/head SHAs for changed go.mod/go.sum files and passes every affected directory to govendor-update.yml, which now loops over each one and folds all regenerated manifests into a single amended commit. Signed-off-by: purpleclay <purpleclaygh@gmail.com>
purpleclay
added a commit
that referenced
this pull request
Jun 21, 2026
Closes #505 vendor.yml always regenerated govendor.toml at the repo root regardless of which go.mod/go.sum actually changed, so Renovate bumps to `templates/{default,workspace,image}` left those directories' manifests drifted and silently broke CI (#474). Add a detect job that diffs the PR's base/head SHAs for changed go.mod/go.sum files and passes every affected directory to govendor-update.yml, which now loops over each one and folds all regenerated manifests into a single amended commit. Signed-off-by: purpleclay <purpleclaygh@gmail.com>
purpleclay
added a commit
that referenced
this pull request
Jun 21, 2026
…513) Closes #505 vendor.yml always regenerated govendor.toml at the repo root regardless of which go.mod/go.sum actually changed, so Renovate bumps to `templates/{default,workspace,image}` left those directories' manifests drifted and silently broke CI (#474). Add a detect job that diffs the PR's base/head SHAs for changed go.mod/go.sum files and passes every affected directory to govendor-update.yml, which now loops over each one and folds all regenerated manifests into a single amended commit. Signed-off-by: purpleclay <purpleclaygh@gmail.com>
f016c02 to
c8a50ae
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Purple Clay <purpleclaygh@gmail.com>
c8a50ae to
53c7bc4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v5.2.5→v5.3.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
go-chi/chi (github.com/go-chi/chi/v5)
v5.3.0Compare Source
What's Changed
New Contributors
SECURITY: middleware.ClientIP, a replacement for middleware.RealIP
PR #967 introduced
middleware.ClientIP, a replacement formiddleware.RealIPthat closes the three open spoofing advisories:RemoteAddrresolution (convto)middleware.RealIP(Saku0512, Critical / 9.3)It also addresses issues outlined at:
middleware.RealIPis 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")
RealIPhas two unfixable design choices: it mutatesr.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:
Example usage:
And in your handler or downstream middleware:
Thanks to @adam-p, @c2h5oh, @rezmoss, @Saku0512, @convto, @Dirbaio, @jawnsy, @lrstanley, @mfridman, @n33pm, @pkieltyka for the prior discussions, detailed reviews, advisory reports, and test contributions that shaped this PR.
Full Changelog: go-chi/chi@v5.2.5...v5.3.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.