Skip to content

Conversation

@afarber
Copy link
Contributor

@afarber afarber commented Dec 17, 2025

Fixes #8329

Add pattern matching support for ProxyConfiguration.Proxy included/excluded addresses:

  • Add HostPortPattern class supporting exact hostnames, wildcard prefix (*.example.com), wildcard suffix (internal.*), CIDR notation (192.168.0.0/16), and IP ranges (10.0.0.1-10.0.0.10)
  • Add HostPortSet to work with IncludeExcludeSet for pattern-based matching
  • Update ProxyConfiguration.Proxy to use IncludeExcludeSet<String, HostPort> instead of HashSet<String>
  • Add validation to reject invalid patterns (userinfo @, paths /, middle wildcards)
  • Patterns without port match any port; patterns with port match only that specific port
  • Plain IP addresses use string comparison for backward compatibility; only CIDR and IP ranges use DNS resolution

@afarber afarber force-pushed the 8329-exclude-list-regex branch from 0306d34 to 1d143ca Compare December 20, 2025 15:37
@sbordet sbordet self-requested a review January 5, 2026 15:27
@sbordet sbordet moved this to 👀 In review in Jetty 12.1.7 Jan 5, 2026
@afarber afarber force-pushed the 8329-exclude-list-regex branch from 5e5d5bc to 436a914 Compare January 10, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Why there is no Regex Support for excludeList of nonProxyHost

1 participant