Skip to content

fix(deps): update go dependencies - #150

Open
red-hat-konflux[bot] wants to merge 1 commit into
masterfrom
konflux/mintmaker/master/go-deps
Open

fix(deps): update go dependencies#150
red-hat-konflux[bot] wants to merge 1 commit into
masterfrom
konflux/mintmaker/master/go-deps

Conversation

@red-hat-konflux

@red-hat-konflux red-hat-konflux Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence Type Update Pending
filippo.io/edwards25519 v1.1.0v1.2.0 age confidence indirect minor
github.com/getkin/kin-openapi v0.133.0v0.147.0 age confidence require minor
github.com/go-chi/chi/v5 v5.2.5v5.3.2 age confidence require minor
github.com/go-openapi/jsonpointer v0.22.4v0.24.0 age confidence indirect minor
github.com/go-openapi/swag/jsonname v0.25.4v0.29.1 age confidence indirect minor
github.com/go-sql-driver/mysql v1.9.3v1.10.0 age confidence indirect minor
github.com/jackc/pgx/v5 v5.8.0v5.10.0 age confidence indirect minor
github.com/mailru/easyjson v0.9.1v0.9.2 age confidence indirect patch
github.com/mattn/go-sqlite3 v1.14.33v1.14.50 age confidence indirect patch
github.com/oapi-codegen/nethttp-middleware v1.1.2v1.2.0 age confidence require minor
github.com/oapi-codegen/oapi-codegen/v2 v2.5.1v2.8.0 age confidence require minor
github.com/oapi-codegen/runtime v1.3.1v1.7.0 age confidence require minor
github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037v0.1.1 age confidence require minor
github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90v0.0.14 age confidence indirect patch
github.com/prometheus/client_golang v1.23.2v1.24.1 age confidence require minor
github.com/prometheus/common v0.67.5v0.70.1 age confidence indirect minor
github.com/prometheus/procfs v0.19.2v0.21.1 age confidence indirect minor
github.com/redhatinsights/platform-go-middlewares/v2 v2.0.0v2.1.0 age confidence require minor
github.com/sirupsen/logrus v1.9.4v1.10.1 age confidence require minor v1.10.2
github.com/speakeasy-api/jsonpath v0.6.2v0.6.3 age confidence indirect patch
github.com/stretchr/testify v1.11.1v1.12.1 age confidence require minor
github.com/woodsbury/decimal128 v1.4.0v1.4.1 age confidence indirect patch
go (source) 1.25.71.27.0 age confidence toolchain minor
go.yaml.in/yaml/v2 v2.4.3v2.4.4 age confidence indirect patch
golang.org/x/crypto v0.47.0v0.55.0 age confidence indirect minor
golang.org/x/mod v0.32.0v0.40.0 age confidence indirect minor
golang.org/x/sync v0.19.0v0.22.0 age confidence indirect minor
golang.org/x/sys v0.40.0v0.47.0 age confidence indirect minor
golang.org/x/text v0.33.0v0.41.0 age confidence indirect minor
golang.org/x/tools v0.41.0v0.49.0 age confidence indirect minor
google.golang.org/protobuf v1.36.11v1.36.12 age confidence indirect patch
gorm.io/driver/postgres v1.6.0v1.6.2 age confidence require patch
gorm.io/gorm v1.31.1v1.31.2 age confidence require patch

Release Notes

FiloSottile/edwards25519 (filippo.io/edwards25519)

v1.2.0

Compare Source

v1.1.1

Compare Source

getkin/kin-openapi (github.com/getkin/kin-openapi)

v0.147.0

Compare Source

What's Changed

New Contributors

Full Changelog: getkin/kin-openapi@v0.146.0...v0.147.0

v0.146.0

Compare Source

What's Changed

Full Changelog: getkin/kin-openapi@v0.145.0...v0.146.0

v0.145.0

Compare Source

What's Changed

Full Changelog: getkin/kin-openapi@v0.144.0...v0.145.0

v0.144.0

Compare Source

What's Changed

New Contributors

Full Changelog: getkin/kin-openapi@v0.143.0...v0.144.0

v0.143.0

Compare Source

What's Changed

New Contributors

Full Changelog: getkin/kin-openapi@v0.142.0...v0.143.0

v0.142.0

Compare Source

What's Changed

Full Changelog: getkin/kin-openapi@v0.141.0...v0.142.0

v0.141.0

Compare Source

What's Changed

New Contributors

Full Changelog: getkin/kin-openapi@v0.140.0...v0.141.0

v0.140.0

Compare Source

What's Changed

Full Changelog: getkin/kin-openapi@v0.139.0...v0.140.0

v0.139.0

Compare Source

What's Changed

Full Changelog: getkin/kin-openapi@v0.138.0...v0.139.0

v0.138.0

Compare Source

What's Changed

Full Changelog: getkin/kin-openapi@v0.137.0...v0.138.0

v0.137.0

Compare Source

What's Changed

Full Changelog: getkin/kin-openapi@v0.136.0...v0.137.0

v0.136.0

Compare Source

What's Changed

New Contributors

Full Changelog: getkin/kin-openapi@v0.135.0...v0.136.0

v0.135.0

Compare Source

What's Changed

New Contributors

Full Changelog: getkin/kin-openapi@v0.134.0...v0.135.0

v0.134.0

Compare Source

What's Changed

New Contributors

Full Changelog: getkin/kin-openapi@v0.133.0...v0.134.0

go-chi/chi (github.com/go-chi/chi/v5)

v5.3.2

Compare Source

What's Changed

  • feat(middleware): add text/markdown, text/csv, text/vtt to default compressible types by @​VojtechVitek in #​1151
  • docs: deployment recipe for middleware.ClientIPFromXFFTrustedProxies() by @​VojtechVitek in #​1111
  • fix: don't drop handlers that collide with a Mount()/Route() pattern by @​VojtechVitek in #​1148
  • Don't duplicate methods in Allow: header for 405 responses by @​flimzy in #​1029
  • fix(middleware): reject catch-all compress wildcards by @​VojtechVitek in #​1156
    • middleware.NewCompressor(level, "/*") never worked and silently compressed nothing. Instead of turning it into a compress-everything catch-all (as proposed in #​868 and #​1121), we decided to reject both "/" and "/*" at construction and panic. Compressing every response wastes CPU on already-compressed types (zip, jpeg, png), which is why the middleware keeps a curated default list. Users should pass explicit content types.

Full Changelog: go-chi/chi@v5.3.1...v5.3.2

v5.3.1

Compare Source

What's Changed

New Contributors

Full Changelog: go-chi/chi@v5.3.0...v5.3.1

v5.3.0

Compare Source

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
func ClientIPFromRemoteAddr(h http.Handler) http.Handler

// Read the result.
func GetClientIP(ctx context.Context) string         // for logs, rate-limit keys
func GetClientIPAddr(ctx context.Context) netip.Addr // for typed work

Example usage:

// Pick a single ClientIP middleware based on your deployment
  
// Cloudflare.
r.Use(middleware.ClientIPFromHeader("CF-Connecting-IP"))

// Nginx with ngx_http_realip_module.
r.Use(middleware.ClientIPFromHeader("X-Real-IP"))

// Apache with mod_remoteip.
r.Use(middleware.ClientIPFromHeader("X-Client-IP"))

// AWS CloudFront, or any proxy fleet with known CIDRs.
r.Use(middleware.ClientIPFromXFF(
    "13.32.0.0/15",   // CloudFront IPv4
    "52.46.0.0/18",   // CloudFront IPv4
    "2600:9000::/28", // CloudFront IPv6
))

// Behind exactly 2 trusted proxies with dynamic IPs (autoscaling pools,
// ephemeral containers, dynamic CDN edges).
r.Use(middleware.ClientIPFromXFFTrustedProxies(2))

// Server directly on the public internet, no proxy in front.
r.Use(middleware.ClientIPFromRemoteAddr)

And in your handler or downstream middleware:

clientIP := middleware.GetClientIP(r.Context())
// log it, use it as a rate-limit key, etc.

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

go-openapi/jsonpointer (github.com/go-openapi/jsonpointer)

v0.24.0

Compare Source

0.24.0 - 2026-06-29

Full Changelog: go-openapi/jsonpointer@v0.23.2...v0.24.0

17 commits in this release.


Implemented enhancements
  • feat(jsonname): added new json name provider more respectful of go conventions for JSON (#​195) by @​fredbi ...
Refactor
  • refact: refactored the package into multiple specialized sub-packages by @​fredbi ...
  • refact loading, jsonutils, yamlutils utililities by @​fredbi ...
Documentation
Code quality
Testing
Miscellaneous tasks
  • chore: removed most remaining external dependencies by @​fredbi ...
Updates
  • build(deps): bump the go-openapi-dependencies group across 15 directories with 2 updates by @​dependabot[bot] ...
  • build(deps): bump the go-openapi-dependencies group across 15 directories with 2 updates by @​dependabot[bot] ...
Other (technical)

People who contributed to this release

**[jsonpointer](http

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

@coderabbitai

coderabbitai Bot commented May 31, 2026

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Updated go.mod: bumped toolchain to go1.26.3 and go to 1.25.0, upgraded several direct requires, removed one direct require, and refreshed multiple indirect/transitive dependencies.

Changes

Dependency Updates

Layer / File(s) Summary
Toolchain and direct requires
go.mod
Updated toolchain to go1.26.3 and go to 1.25.0. Updated direct requires: github.com/go-chi/chi/v5v5.3.0, github.com/oapi-codegen/oapi-codegen/v2v2.7.0, github.com/oasdiff/yamlv0.1.0, github.com/redhatinsights/platform-go-middlewares/v2v2.1.0. Removed direct requirement github.com/oapi-codegen/runtime.
Indirect/transitive requires — beginning segment
go.mod
Bumped multiple indirect dependencies in the earlier transitive list (including OpenAPI-related modules and assorted golang packages).
Indirect/transitive requires — later segment
go.mod
Refreshed later indirect dependencies, including github.com/oasdiff/yaml3, updates across prometheus/*, golang.org/x/*, and switched go.yaml.in/yaml from v2 to v3.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The body describes dependency updates but omits the required issue, local testing, reviewer notes, checklist, and AI disclosure sections. Add the template sections, including the RHCLOUD issue link, local test steps, reviewer guidance, completed checklist items, and AI disclosure.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: updating Go dependencies.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch konflux/mintmaker/master/go-deps

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

@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/master/go-deps branch from 241f986 to c87d399 Compare May 31, 2026 17:35

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@go.mod`:
- Around line 12-13: Typecheck failures are caused by a breaking change in
oapi-codegen v2.7.0 that removed/renamed generated types (e.g.,
BaseWidgetDashboardTemplate, WidgetModuleFederationMetadata); regenerate the API
artifacts from your OpenAPI spec using oapi-codegen v2.7.0 (or pin go.mod back
to the previous working oapi-codegen version) and commit the updated generated
files: run your repo's codegen steps for the api package, confirm the generated
files contain the expected type definitions and that any import paths
(github.com/oapi-codegen/runtime) and "Code generated|DO NOT EDIT" markers are
present, then either commit the regenerated files or update go.mod to the
known-compatible oapi-codegen version so the undefined-symbol lint errors are
resolved.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 4eb9a9ac-0b1e-4e4d-8be9-c4e52bbbe07b

📥 Commits

Reviewing files that changed from the base of the PR and between 241f986 and c87d399.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod

Comment thread go.mod
Comment on lines +12 to +13
github.com/oapi-codegen/oapi-codegen/v2 v2.7.0
github.com/oasdiff/yaml v0.1.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Typecheck is currently broken after the codegen/dependency bump.

golangci-lint reports undefined API symbols (e.g., BaseWidgetDashboardTemplate, WidgetModuleFederationMetadata), which is a merge blocker. Please verify generated API artifacts against oapi-codegen/v2@v2.7.0 and commit regenerated files (or pin back until compatible).

#!/bin/bash
set -euo pipefail

# 1) Confirm whether missing symbols are defined anywhere in tracked Go files.
rg -nP --type=go '\btype\s+BaseWidgetDashboardTemplate\b|\btype\s+WidgetModuleFederationMetadata\b' api -C2 || true

# 2) Inspect generated-file markers and generator versions in API package.
rg -nP --type=go 'Code generated|oapi-codegen|DO NOT EDIT' api -C2 || true

# 3) Check whether runtime package imports still exist in generated code.
rg -nP --type=go '"github\.com/oapi-codegen/runtime' api -C2 || true

# 4) Verify current oapi-codegen config references (if present).
fd -i 'oapi|openapi|swagger|codegen' . | sed -n '1,200p'
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go.mod` around lines 12 - 13, Typecheck failures are caused by a breaking
change in oapi-codegen v2.7.0 that removed/renamed generated types (e.g.,
BaseWidgetDashboardTemplate, WidgetModuleFederationMetadata); regenerate the API
artifacts from your OpenAPI spec using oapi-codegen v2.7.0 (or pin go.mod back
to the previous working oapi-codegen version) and commit the updated generated
files: run your repo's codegen steps for the api package, confirm the generated
files contain the expected type definitions and that any import paths
(github.com/oapi-codegen/runtime) and "Code generated|DO NOT EDIT" markers are
present, then either commit the regenerated files or update go.mod to the
known-compatible oapi-codegen version so the undefined-symbol lint errors are
resolved.

@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/master/go-deps branch 2 times, most recently from d25873d to d92e8de Compare June 1, 2026 05:44

@coderabbitai coderabbitai 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.

🧹 Nitpick comments (1)
go.mod (1)

3-5: Confirm Go 1.25 language compatibility with toolchain go1.26.3 (and watch for flag/experiment behavior changes)

go 1.25.0 is backward-compatible at the language level, and toolchain go1.26.3 is a released version (being newer than the go directive is valid). Main behavior differences to watch for:

  • -asan: default leak detection behavior changed (can be adjusted via ASAN_OPTIONS=detect_leaks=0)
  • GOMAXPROCS: default behavior changed (can affect concurrency-sensitive tests)
  • encoding/json: jsonv2 changes only apply if GOEXPERIMENT=jsonv2 is enabled
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go.mod` around lines 3 - 5, The go directive and toolchain mismatch needs
explicit confirmation and mitigations: verify that the module's go directive "go
1.25.0" is intentionally using a newer toolchain "toolchain go1.26.3", run the
test matrix under the toolchain to catch behavioral deltas (ASAN leak detection,
GOMAXPROCS defaults, and jsonv2 experiment), and if necessary document or pin
expected behaviors (e.g., set ASAN_OPTIONS, explicit GOMAXPROCS in tests, or
enable/disable GOEXPERIMENT=jsonv2) so consumers and CI are aware of the
differences; update README or CI configuration accordingly referencing the "go
1.25.0" and "toolchain go1.26.3" directives.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@go.mod`:
- Around line 3-5: The go directive and toolchain mismatch needs explicit
confirmation and mitigations: verify that the module's go directive "go 1.25.0"
is intentionally using a newer toolchain "toolchain go1.26.3", run the test
matrix under the toolchain to catch behavioral deltas (ASAN leak detection,
GOMAXPROCS defaults, and jsonv2 experiment), and if necessary document or pin
expected behaviors (e.g., set ASAN_OPTIONS, explicit GOMAXPROCS in tests, or
enable/disable GOEXPERIMENT=jsonv2) so consumers and CI are aware of the
differences; update README or CI configuration accordingly referencing the "go
1.25.0" and "toolchain go1.26.3" directives.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: d4165d75-cc8c-4f27-8d22-4d17d2e1bb51

📥 Commits

Reviewing files that changed from the base of the PR and between d25873d and d92e8de.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod

@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/master/go-deps branch 3 times, most recently from b5c62dd to 6dc6eed Compare June 2, 2026 09:56
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/master/go-deps branch from 6dc6eed to 0201811 Compare June 2, 2026 19:34
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.

0 participants