Skip to content

feat: add rate-limiting-info variable#13155

Open
shreemaan-abhishek wants to merge 1 commit intoapache:masterfrom
shreemaan-abhishek:backport-pr5-rate-limiting-info
Open

feat: add rate-limiting-info variable#13155
shreemaan-abhishek wants to merge 1 commit intoapache:masterfrom
shreemaan-abhishek:backport-pr5-rate-limiting-info

Conversation

@shreemaan-abhishek
Copy link
Copy Markdown
Contributor

@shreemaan-abhishek shreemaan-abhishek commented Apr 3, 2026

Summary

  • Adds a new rate_limiting_info nginx variable exposing rate limit state as JSON
  • Variable contains: rate_limiting_key, rate_limiting_limit, rate_limiting_remaining, rate_limiting_reset
  • Accessible in log formats and conditional logic via $rate_limiting_info

Test plan

  • Route with limit-count plugin using key_type: var and key: http_host
  • Access log contains JSON with correct rate limiting key, limit, remaining, and reset values
  • All existing limit-count tests continue to pass

Backport from EE commit 8a7dc1400. Adds a $rate_limiting_info nginx
variable that exposes rate limit state (key, limit, remaining, reset)
as JSON for use in access logs and conditional logic.

Only includes core files and limit-count plugin changes (excludes
limit-count-advanced which doesn't exist in OSS).
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant