feat: Enhance TypeScript interfaces and documentation#2
Merged
Conversation
… Gateway - Updated `index.ts` to provide comprehensive documentation for gateway interfaces. - Expanded `load-balancer.ts` with detailed comments and examples for load balancer targets and configuration. - Improved `logger.ts` with structured logging details and enhanced logger configuration options. - Refined `middleware.ts` to clarify middleware types and their purposes. - Enhanced `proxy.ts` with detailed proxy handler documentation and examples. - Updated `route.ts` to provide thorough route configuration details and examples. - Improved `http-load-balancer.ts` with comprehensive load balancer implementation details and examples. - Enhanced `pino-logger.ts` with production-grade logging features and examples. - Updated `gateway-proxy.ts` to provide detailed proxy implementation and usage examples.
molty3000
pushed a commit
that referenced
this pull request
May 13, 2026
Fix #1: Input validation bypass - recursive URI decode defeats double-encoding (\%252f) and quad-dot attacks. Added blocked patterns for \%2f, \%5c, \%25\%32\%[fF]. Fix #2: Health check cascade failure - added failureThreshold (3), successThreshold (2), minHealthyTargets (1) to prevent flapping and cascading. Floor check allows full-outage detection. Fix #3: Rate limiter bypass - inject getClientIP() as keyGenerator to prevent X-Forwarded-For header rotation attacks. Fix #4: CORS - verified working after prior error handler fix. Tests: 633 pass, 0 fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
index.tsto provide comprehensive documentation for gateway interfaces.load-balancer.tswith detailed comments and examples for load balancer targets and configuration.logger.tswith structured logging details and enhanced logger configuration options.middleware.tsto clarify middleware types and their purposes.proxy.tswith detailed proxy handler documentation and examples.route.tsto provide thorough route configuration details and examples.http-load-balancer.tswith comprehensive load balancer implementation details and examples.pino-logger.tswith production-grade logging features and examples.gateway-proxy.tsto provide detailed proxy implementation and usage examples.