github melosso/portway v1.5.3

latest releases: v1.5.5, v1.5.4
one month ago

Note

We're happy to announce the latest update of Portway. This release focuses on authentication performance, telemetry reliability, and UI consistency. Backup your application folder before upgrading and follow the migration steps below.


Fixes in v1.5.3:

  • Optimized Authentication Flow:
    • Implemented TokenVerificationCache using SHA-256 keying and a 30-second TTL to reduce database overhead.
    • Updated TokenService to utilize centralized caching for all verification methods.
    • Added a composite index IX_AuthTokens_ActiveFilter on (RevokedAt, ExpiresAt) for faster token lookups.
    • Eliminated redundant verification calls within middleware components.
  • Enhanced Middleware Performance:
    • Optimized RateLimitingMiddleware with static JSON options and improved timer cleanup logic.
  • Telemetry and Test Stability:
    • Ensured PortwayMetrics are registered unconditionally for consistent monitoring.
    • Resolved test failures in authentication and telemetry suites by updating mocks and assertions to match the current architecture.
  • UI Improvements:
    • Adjusted the drawer position to ensure it sits flush below the promobar.
  • Maintenance:
    • Removed the deprecated tokengenerator tool.
    • Registered ITokenVerificationCache as a singleton within AuthServiceExtensions.

New features in v1.5.3:

  • Support for Model Context Protocol (MCP) – Expose your endpoints natively or just chat without leaving Portway
  • Standardized Response Types – Introduced PortwayResponse.cs and PortwayResults for consistent API responses.
  • OpenTelemetry Instrumentation – Added telemetry for monitoring performance and errors.
  • Improved Concurrency – Enhanced thread safety and resource management.
  • Refactored DI – Simplified service registration with extension methods.
  • Schema Standardization – Updated schemas for webhooks and file endpoints.

Migration guide

As 1.5.0 has introduced breaking changes, please follow the following steps for a safe upgrade path:

  1. Update Docker configurations. If you are running Portway in a container, please check the updated documentation regarding the ASP.NET port mappings, as these have changed.
  2. Configure Web UI access. If you plan to access the admin console externally, ensure you explicitly enable external traffic routing in your (appsettings.json) settings.
  3. Verify your File & Webhook endpoints. The structure of these have changed slightly,
    Check our documentation for guidance. If you encounter issues, open a new Issue.

Full Changelog: v1.5.2...v1.5.3

Don't miss a new portway release

NewReleases is sending notifications on new releases.