You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace raw config-length check with IOptions<ForwardedHeadersOptions> post-Build DI
resolution so warning fires for both 'not configured' and 'all CIDRs failed to parse'
- Normalize ContentRateLimiterPolicy fallback to 'unknown-user' for consistency
Console.Error.WriteLine($"[WARN] ForwardedHeaders:TrustedProxyCidrs: could not parse '{cidr}' as an IP network — entry skipped. Check your configuration.");
[LoggerMessage(Level=LogLevel.Warning,Message="SECURITY: ForwardedHeaders:TrustedProxyCidrs is not configured. All X-Forwarded-For values are trusted, enabling IP spoofing against rate limits. Set this to your load-balancer CIDR (e.g., Azure Container Apps ingress range) to harden this endpoint.")]
0 commit comments