Update module github.com/labstack/echo/v4 to v4.13.3 #47
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.2.0
->v4.13.3
Release Notes
labstack/echo (github.com/labstack/echo/v4)
v4.13.3
Compare Source
Security
v4.13.2
Compare Source
Security
v4.13.1
Compare Source
Fixes
Transfer-Encoding: chunked
requests by @178inaba in https://github.com/labstack/echo/pull/2717v4.13.0
Compare 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
MultipartForm
test by @martinyonatann in https://github.com/labstack/echo/pull/2682bind
: add support of multipart multi files by @martinyonatann in https://github.com/labstack/echo/pull/2684html/template
andtext/template
packages. by @aldas in https://github.com/labstack/echo/pull/2690v4.12.0
Compare Source
Security
Enhancements
UnmarshalParams(params []string) error
inter… by @aldas in https://github.com/labstack/echo/pull/2607*[]string
by @aldas in https://github.com/labstack/echo/pull/2608/
. by @aldas in https://github.com/labstack/echo/pull/2616v4.11.4
Compare Source
Security
Enhancements
v4.11.3
Compare Source
Security
Enhancements
v4.11.2
Compare Source
Security
Enhancements
v4.11.1
Compare Source
Fixes
Gzip
middleware not sending response code for no content responses (404, 301/302 redirects etc) #2481v4.11.0
Compare Source
Fixes
group.RouteNotFound
not working when group has attached middlewares #2411Enhancements
strings.ReplaceAll
directly #2424http.rwUnwrapper
to Response struct #2425echo.Reverse
method #2416v4.10.2
Compare Source
Security
filepath.Clean
behaviour has changed in Go 1.20 - adapt to it #2406middleware.CORSConfig.UnsafeWildcardOriginWithAllowCredentials
to make UNSAFE usages of wildcard origin + allow cretentials less likely #2405Enhancements
v4.10.1
Compare Source
Security
Enhancements
v4.10.0
Compare Source
Security
We are deprecating JWT middleware in this repository. Please use https://github.com/labstack/echo-jwt instead.
JWT middleware is moved to separate repository to allow us to bump/upgrade version of JWT implementation (
github.com/golang-jwt/jwt
) we are usingwhich we can not do in Echo core because this would break backwards compatibility guarantees we try to maintain.
This minor version bumps minimum Go version to 1.17 (from 1.16) due
golang.org/x/
packages we depend on. There areseveral vulnerabilities fixed in these libraries.
Echo still tries to support last 4 Go versions but there are occasions we can not guarantee this promise.
Enhancements
middleware.CreateExtractors
function so we can use it from echo-contrib repository #2338e.Routes()
work and introducee.OnAddRouteHandler
callback #2337v4.9.1
Compare Source
Fixes
Enhancements
v4.9.0
Compare Source
Security
Enhancements
v4.8.0
Compare Source
Most notable things
You can now add any arbitrary HTTP method type as a route #2237
You can add custom 404 handler for specific paths #2217
Enhancements
v4.7.2
Compare Source
Fixes
Enhancements
v4.7.1
Compare Source
Fixes
e.Static
,.File()
,c.Attachment()
being picky with paths starting with./
,../
and/
after 4.7.0 introduced echo.Filesystem support (Go1.16+) #2123Enhancements
v4.7.0
Compare Source
Enhancements
Fixes
General
go
directive ingo.mod
to 1.17 #2049v4.6.3
Compare Source
Fixes
4.6.2
#2066v4.6.2
Compare Source
Fixes
Enhancements
v4.6.1
Compare Source
Enhancements
v4.6.0
Compare Source
Introduced a new request logger middleware
to help with cases when you want to use some other logging library in your application.
Fixes
Enhancements
v4.5.0
Compare Source
Important notes
A BREAKING CHANGE is introduced for JWT middleware users.
The JWT library used for the JWT middleware had to be changed from github.com/dgrijalva/jwt-go to
github.com/golang-jwt/jwt due former library being unmaintained and affected by security
issues.
The github.com/golang-jwt/jwt project is a drop-in replacement, but supports only the latest 2 Go versions.
So for JWT middleware users Go 1.15+ is required. For detailed information please read #1940
To change the library imports in all .go files in your project replace all occurrences of
dgrijalva/jwt-go
withgolang-jwt/jwt
.For Linux CLI you can use:
Fixes
github.com/golang-jwt/jwt
#1946v4.4.0
Compare Source
Fixes
Enhancements
v4.3.0
Compare Source
Important notes
Fixes
Enhancements
v4.2.2
Compare Source
Fixes
v4.2.1
Compare Source
Important notes
Due to a datarace the config parameters for the newly added timeout middleware required a change.
See the docs.
A performance regression has been fixed, even bringing better performance than before for some routing scenarios.
Fixes
This release was made possible by our contributors:
aldas, clwluvw, lammel, Le0tk0k, maciej-jezierski, rkilingr, stffabi, withshubh
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.