Skip to content

v0.6.3

Choose a tag to compare

@cmilesio cmilesio released this 17 Oct 17:55
dead104

Changes

  • Upgrade the Echo adapter and middleware integration to Echo 5.4.0, including its proxy, forwarded-scheme, static-path, JSONP, and method-override security fixes.
  • Fix maintenance and metrics middleware registration with Echo 5.4.
  • Fix API indexing on Go 1.27.2 and refresh examples and benchmark results.

Upgrade notes

Requires Go 1.26 or newer, increased from Go 1.25 in v0.6.2. The updated indexer dependency requires Go 1.26. Upgrade the toolchain before updating the module:

go get github.com/goforj/web@v0.6.3

Review TLS-terminating reverse proxies before rollout. Echo now accepts forwarded scheme headers only from trusted peers. Its defaults trust loopback, private, link-local, and Unix-socket peers. Public-address proxies and addresses in 100.64.0.0/10 need explicitly trusted proxy CIDRs. Otherwise HTTPS redirects can loop and HSTS can disappear. Configure Adapter.Echo().SchemeExtractor before serving requests, trust only the deployment's actual proxy ranges, and have the edge overwrite client-supplied forwarding headers. Client-IP extraction is a separate setting.

The GoForj Web API is unchanged. Review the upstream changes if your application uses static paths, JSONP, or method override. Prometheus dependencies remain on their existing versions.

See the proxy configuration example, Echo 5.4 release notes, indexer update, and Echo integration fix.

Compare v0.6.2 to v0.6.3.