Zum Inhalt springen

Fiber Release Notes

3 Einträge aus 1 Quelle. Zuletzt aktualisiert:

Folge Fiber, um die Release Notes in deinen Feed zu holen.

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Fiber

Fiber Version 3.5.0: Proxy-Härtung mit SecurityPolicy und schnelleres Routing

Fiber v3.5.0 härtet die Proxy-Middleware mit der neuen proxy.SecurityPolicy (standardmäßig werden private/Loopback-Upstreams, Nicht-http(s)-Schemata und HTTPS-zu-HTTP-Redirect-Downgrades abgelehnt), ergänzt den Struct-Tag binding_source für eigene Bindungsreihenfolgen sowie die Option SkipUnmatchedRoutes für schnelle 404/405-Antworten und beschleunigt das Route-Matching.

🚀 New

  • Harden proxy middleware (#4405) New proxy.SecurityPolicy with secure defaults: private/loopback upstreams, non-http(s) schemes and HTTPS-to-HTTP redirect downgrades are rejected and hop-by-hop headers stripped.
    proxy.WithSecurityPolicy(proxy.SecurityPolicy{
        AllowPrivateIPs: true, // internal upstreams are blocked by default
    })
    
    https://docs.gofiber.io/middleware/proxy#security
  • Add support for custom binding precedence (#4544) New binding_source struct tag overrides the Bind().All() source order per struct; the resolved order is cached per reflect.Type.
    type SearchReq struct {
        Name string `binding_source:"query,header,cookie,body,uri" query:"name" header:"x-name" json:"name"`
    }
    
    https://docs.gofiber.io/api/bind#custom-precedence
  • Add SkipUnmatchedRoutes with two-tier 404/405 fast path (#4486) New fiber.Config option that answers unregistered paths with 404/405 before the middleware chain runs (CORS preflight exempt, off by default).
    app := fiber.New(fiber.Config{
        SkipUnmatchedRoutes: true, // default: false
    })
    
    https://docs.gofiber.io/api/fiber#skipunmatchedroutes

🧹 Updates

  • Speed up route matching with a flat tree index, leading-byte candidate rejection and a specialized /const/:param matcher (#4558)
  • Quick-reject routes on precomputed slash-count bounds (#4517)
  • Restore Route inlining lost in the RFC 9110 changes (#4501) …

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

Fiber

Fiber 2.52.14: X-Real-IP-Fix bei BalancerForward aus v3 zurückportiert

Fiber v2.52.14 bringt den Fix für das Überschreiben des X-Real-IP-Headers bei BalancerForward aus v3 zurück nach v2.

<!-- Release notes generated using configuration in .github/release.yml at v2 -->

What's Changed

🐛 Bug Fixes

New Contributors

  • @terraincognita07 made their first contribution

Full Changelog: https://github.com/gofiber/fiber/compare/v2.52.13...v2.52.14

Originalquelle(öffnet in neuem Tab)Problem melden