Repository navigation
fix(deps): update module github.com/oapi-codegen/oapi-codegen/v2 to v2.8.1 - #661
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #661 +/- ##
==========================================
- Coverage 86.69% 86.68% -0.01%
==========================================
Files 1287 1287
Lines 131287 131287
==========================================
- Hits 113823 113812 -11
- Misses 17455 17466 +11
Partials 9 9 🚀 New features to boost your workflow:
|
renovate
Bot
force-pushed
the
renovate/go-dependencies-(non-major)
branch
from
October 24, 2026 08:41
1998f73 to
9400924
Compare
Merged
fclairamb
added a commit
that referenced
this pull request
Oct 26, 2026
🤖 I have created a release *beep* *boop* --- ## [0.42.0](v0.41.0...v0.42.0) (2026-10-26) ### Features * **ai:** hold auto-applied repairs to the previous version's hosts (+ scan specs) ([#663](#663)) ([37966e2](37966e2)) * **api:** cursors on the events and incidents APIs ([#640](#640)) ([bbd32b9](bbd32b9)) * **auth:** ask the default admin for a real email on first login ([#673](#673)) ([e92e608](e92e608)) * **checks:** offer to resolve open incidents when a check is disabled ([#648](#648)) ([9553cdc](9553cdc)) * **dash0:** locate e2e and showcase elements by data-testid, with lint rules ([#672](#672)) ([1aceb52](1aceb52)) * **mcp:** bound tool string inputs and disclose side effects ([#644](#644)) ([22039c7](22039c7)) * **notifications:** ntfy notifications link to the incident ([#639](#639)) ([e466060](e466060)) ### Bug Fixes * **ai:** hold AI loops to the check's hosts after a real-secrets run ([#646](#646)) ([7cf836d](7cf836d)) * **ai:** hold every scheduled repair-auto run to its granted hosts ([#683](#683)) ([ae9d0ef](ae9d0ef)) * **ai:** hold the repair: auto host grant when the script or env holds a reference ([#678](#678)) ([de4e718](de4e718)) * **auth:** redirect provider logins with an unknown org to the login page instead of raw JSON ([#676](#676)) ([6c4b4fd](6c4b4fd)) * custom-domain status assets, CSS sample, incident header, check scroll ([#689](#689)) ([cdd89e0](cdd89e0)) * dashboard down count, mobile event log, browser retry, async report test send ([#680](#680)) ([f53c99b](f53c99b)) * **deps:** update github.com/dop251/goja digest to 1622cea ([#654](#654)) ([70d3bfb](70d3bfb)) * **deps:** update github.com/dop251/goja digest to 2921f52 ([#685](#685)) ([8186068](8186068)) * **deps:** update github.com/dop251/goja digest to 2a9269b ([#668](#668)) ([e536f52](e536f52)) * **deps:** update github.com/dop251/goja digest to 3c7039f ([#651](#651)) ([bd93ee7](bd93ee7)) * **deps:** update github.com/dop251/goja digest to 6ace4dd ([#652](#652)) ([0d7366c](0d7366c)) * **deps:** update github.com/dop251/goja digest to 6b6a90e ([#687](#687)) ([4774086](4774086)) * **deps:** update go dependencies (non-major) ([#638](#638)) ([b8453fb](b8453fb)) * **deps:** update go dependencies (non-major) ([#649](#649)) ([296ecdf](296ecdf)) * **deps:** update go dependencies (non-major) ([#656](#656)) ([9aef341](9aef341)) * **deps:** update module github.com/clickhouse/clickhouse-go/v2 to v2.50.0 ([#688](#688)) ([dbced61](dbced61)) * **deps:** update module github.com/gosnmp/gosnmp to v1.47.0 ([#659](#659)) ([575e17f](575e17f)) * **deps:** update module github.com/oapi-codegen/oapi-codegen/v2 to v2.8.1 ([#661](#661)) ([aa91cb6](aa91cb6)) * **deps:** update module github.com/ohler55/ojg to v1.28.8 ([#675](#675)) ([5666052](5666052)) * **deps:** update module github.com/posthog/posthog-go to v1.36.2 ([#650](#650)) ([fb01ef8](fb01ef8)) * **jobs:** retry a due job promptly when its claim rolls back ([#674](#674)) ([f0edadd](f0edadd)) * **log:** drop error=<nil> from successful HTTP request logs ([#664](#664)) ([4579f59](4579f59)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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:
v2.8.0→v2.8.1Release Notes
oapi-codegen/oapi-codegen (github.com/oapi-codegen/oapi-codegen/v2)
v2.8.1: : Security fixes for codegen and at runtimeCompare Source
🎉 Notable changes
This is a security release on top of v2.8.0. It addresses five security findings reported against
oapi-codegen:$refs in an untrusted specification could make the generator issue requests to arbitrary hosts (code generation)operationIdcould inject Go code through the Echo per-operation middleware key (code generation)x-go-name, server variables and non-string enum values could inject Go code (code generation)Four of the five only matter when you generate code from a specification you do not control. The first one affects running servers, so please upgrade the generated code and the
oapi-codegen/runtimeand validation middleware modules together, as described below.Allow-listing the remote documents a specification may reference
oapi-codegenresolves external$refs while it loads a specification. Until now it fetched anyhttp(s)URL a document named, so a specification written by someone else could make the generator reach any host the build machine can see.There is a new top-level configuration option,
allow-remote-refs-from. Each entry is the URL of a referenced document exactly as it appears in the$ref, without the#...fragment, or"*"to allow any URL:For compatibility, this release defaults the option to
"*"when it is omitted, so existing configurations keep working unchanged. The next minor release will default to refusing remote references. If your specification downloads other documents at generation time, tighten this now by listing them, or set the option to[]to refuse them all.Better still, for reproducible builds, download the specifications you depend on, commit them next to your own, and reference them by relative path. References to local files are always followed, with no allow-listing involved, and your generated code no longer depends on a remote host being up and unchanged.
Strict servers bind the value the validation middleware validated
A validation middleware decodes the JSON request body to validate it, and the generated strict server then decoded it a second time.
encoding/jsonmatches member names case-insensitively, so a body such as{"role": "user", "ROLE": "admin"}validates as
role: userbut was bound asRole: "admin", bypassing the schema's constraints.Strict servers for every supported framework now bind the value the middleware already validated, with exact member-name matching, and only fall back to decoding the body themselves when no validated value is present. For the fix to take effect you need all three of:
github.com/oapi-codegen/runtimev1.8.0 or later;github.com/oapi-codegen/nethttp-middlewarev1.3.1github.com/oapi-codegen/echo-middlewarev1.2.1github.com/oapi-codegen/echo-v5-middlewarev0.2.1github.com/oapi-codegen/gin-middlewarev1.2.1github.com/oapi-codegen/iris-middlewarev1.2.1github.com/oapi-codegen/fiber-middlewarev1.3.0github.com/oapi-codegen/fiber-v3-middlewarev0.3.0Without them the generated code behaves as before, so the upgrade is safe to roll out in any order, but the fix is only in effect once all three are updated.
Fewer specification strings reach the generated code unescaped
Every string that the generator copies from a specification into Go source is now either emitted through
strconv.Quoteor checked before generation: content types in the webhook and callback initiators, the Echo per-operation middleware key, security scopes, non-string enum values (which must now be number or boolean literals), response status keys, component names, response header styles, and, whenserver-urlsis enabled, server names, variables and their enum values. Valid specifications generate byte-for-byte the same code as before; a specification that would have produced code it had no business producing is now rejected with an error that points at the offending value.🐛 Bug fixes
Sponsors
We would like to thank our sponsors for their support during this release.
We'd also like to thank Greptile for allowing our project to use their code review system.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ 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.