Update module github.com/labstack/echo/v4 to v4.14.0 #113
+46
−15
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:
v4.11.3->v4.14.0Release Notes
labstack/echo (github.com/labstack/echo/v4)
v4.14.0Compare Source
middleware.Loggerhas been deprecated. For request logging, usemiddleware.RequestLoggerormiddleware.RequestLoggerWithConfig.middleware.RequestLoggerreplacesmiddleware.Logger, offering comparable configuration while relying on theGo standard library’s new
sloglogger.The previous default output format was JSON. The new default follows the standard
sloglogger settings.To continue emitting request logs in JSON, configure
slogaccordingly:Security
Enhancements
v4.13.4Compare Source
Enhancements
Security
v4.13.3Compare Source
Security
v4.13.2Compare Source
Security
v4.13.1Compare Source
Fixes
Transfer-Encoding: chunkedrequests by @178inaba in #2717v4.13.0Compare Source
BREAKING CHANGE JWT Middleware Removed from Core use labstack/echo-jwt instead
The JWT middleware has been removed from Echo core due to another security vulnerability, CVE-2024-51744. For more details, refer to issue #2699. A drop-in replacement is available in the labstack/echo-jwt repository.
Important: Direct assignments like
token := c.Get("user").(*jwt.Token)will now cause a panic due to an invalid cast. Update your code accordingly. Replace the current imports from"github.com/golang-jwt/jwt"in your handlers to the new middleware version using"github.com/golang-jwt/jwt/v5".Background:
The version of
golang-jwt/jwt(v3.2.2) previously used in Echo core has been in an unmaintained state for some time. This is not the first vulnerability affecting this library; earlier issues were addressed in PR #1946.JWT middleware was marked as deprecated in Echo core as of v4.10.0 on 2022-12-27. If you did not notice that, consider leveraging tools like Staticcheck to catch such deprecations earlier in you dev/CI flow. For bonus points - check out gosec.
We sincerely apologize for any inconvenience caused by this change. While we strive to maintain backward compatibility within Echo core, recurring security issues with third-party dependencies have forced this decision.
Enhancements
MultipartFormtest by @martinyonatann in #2682bind: add support of multipart multi files by @martinyonatann in #2684html/templateandtext/templatepackages. by @aldas in #2690v4.12.0Compare Source
Security
Enhancements
UnmarshalParams(params []string) errorinter… by @aldas in #2607*[]stringby @aldas in #2608/. by @aldas in #2616v4.11.4Compare Source
Security
Enhancements
Configuration
📅 Schedule: 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.
🔕 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.