Skip to content

build(deps): bump github.com/go-chi/chi/v5 from 5.2.5 to 5.3.0#7100

Merged
swiatekm merged 2 commits into
mainfrom
dependabot/go_modules/github.com/go-chi/chi/v5-5.3.0
May 25, 2026
Merged

build(deps): bump github.com/go-chi/chi/v5 from 5.2.5 to 5.3.0#7100
swiatekm merged 2 commits into
mainfrom
dependabot/go_modules/github.com/go-chi/chi/v5-5.3.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

Bumps 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 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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) 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
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added automation backport-active-all Automated backport with mergify to all the active branches dependency Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels May 25, 2026
@dependabot dependabot Bot requested a review from a team as a code owner May 25, 2026 00:51
@dependabot dependabot Bot requested review from swiatekm and ycombinator May 25, 2026 00:51
@dependabot dependabot Bot added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team backport-active-all Automated backport with mergify to all the active branches labels May 25, 2026
@github-actions
Copy link
Copy Markdown
Contributor

TL;DR

check-ci failed because this dependency bump changed the module graph, and CI regenerated NOTICE.txt / NOTICE-fips.txt during mage check:ci; those regenerated files were not committed in the PR.

Remediation

  • Run mage check:notice on this branch and commit the resulting updates to NOTICE.txt and NOTICE-fips.txt.
  • Re-run CI (.buildkite/scripts/check_ci.sh) after committing those files.
Investigation details

Root Cause

check:ci runs Check.Notice before Check.NoChanges (magefile.go lines 640-643). Check.NoChanges then fails if generated files differ from HEAD via git update-index --refresh / git diff-index (magefile.go lines 624-631).

This PR commit only updates go.mod and go.sum (commit 145934d90a49f65374f1f9ab9968f5916fae127f), so the NOTICE artifacts were left stale.

Evidence

  • Build: https://buildkite.com/elastic/fleet-server/builds/14868
  • Job/step: Run check-ci
  • Key log excerpt (/tmp/gh-aw/buildkite-logs/fleet-server-white_check_mark-run-check-ci.txt):
    • diff --git a/NOTICE-fips.txt b/NOTICE-fips.txt showing github.com/go-chi/chi/v5 version change v5.2.5 -> v5.3.0 (lines 67-101)
    • diff --git a/NOTICE.txt b/NOTICE.txt with same version bump (lines 103-137)
    • NOTICE-fips.txt: needs update and NOTICE.txt: needs update (lines 139-142)
    • Error: git update-index failure (line 143)

Verification

Not run locally in this detective workflow (read-only diagnosis from CI artifacts/logs).

Follow-up

No flaky-test signature here; this is deterministic generated-file drift from dependency changes.

Note

🔒 Integrity filter blocked 2 items

The following items were blocked because they don't meet the GitHub integrity level.

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

What is this? | From workflow: PR Buildkite Detective

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@swiatekm swiatekm merged commit cfc9257 into main May 25, 2026
5 checks passed
@swiatekm swiatekm deleted the dependabot/go_modules/github.com/go-chi/chi/v5-5.3.0 branch May 25, 2026 12:24
@github-actions
Copy link
Copy Markdown
Contributor

@Mergifyio backport 9.4 9.3 8.19

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 25, 2026

backport 9.4 9.3 8.19

✅ Backports have been created

Details

Cherry-pick of cfc9257 has failed:

On branch mergify/bp/9.4/pr-7100
Your branch is up to date with 'origin/9.4'.

You are currently cherry-picking commit cfc9257.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   NOTICE-fips.txt
	modified:   NOTICE.txt

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   go.mod
	both modified:   go.sum

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

Cherry-pick of cfc9257 has failed:

On branch mergify/bp/8.19/pr-7100
Your branch is up to date with 'origin/8.19'.

You are currently cherry-picking commit cfc9257.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   NOTICE-fips.txt
	modified:   NOTICE.txt
	modified:   go.sum

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   go.mod

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

swiatekm pushed a commit that referenced this pull request May 25, 2026
#7105)

* build(deps): bump github.com/go-chi/chi/v5 from 5.2.5 to 5.3.0

Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) 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
...



* Post dependabot file modifications

---------




(cherry picked from commit cfc9257)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
swiatekm added a commit that referenced this pull request May 26, 2026
… 5.2.5 to 5.3.0 (#7104)

* build(deps): bump github.com/go-chi/chi/v5 from 5.2.5 to 5.3.0 (#7100)

* build(deps): bump github.com/go-chi/chi/v5 from 5.2.5 to 5.3.0

Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) 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
...

Signed-off-by: dependabot[bot] <support@github.com>

* Post dependabot file modifications

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
(cherry picked from commit cfc9257)

# Conflicts:
#	go.mod
#	go.sum

* fix: resolve backport merge conflict in go.mod and go.sum

Agent-Logs-Url: https://github.com/elastic/fleet-server/sessions/1c12e785-0f46-45c5-bdb5-433192a90e55

Co-authored-by: swiatekm <93588780+swiatekm@users.noreply.github.com>

---------

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: swiatekm <93588780+swiatekm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation backport-active-all Automated backport with mergify to all the active branches dependency Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant