[PR #8617] fix: misleading rate limit IP warning #16347

Closed
opened 2026-04-13 10:29:58 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/8617

State: closed
Merged: Yes


Summary

  • update the rate-limit warning to point users to advanced.ipAddress.ipAddressHeaders
  • keep rate-limit and IP resolution behavior unchanged
  • add a regression test for the missing-client-IP path outside dev/test

Closes #8615.


Summary by cubic

Fixes the rate-limit IP warning to point users to configure client IP headers via advanced.ipAddress.ipAddressHeaders. Behavior is unchanged; guidance corrected and tests hardened.

  • Bug Fixes
    • Updated warning to reference forwarding a trusted client IP header and advanced.ipAddress.ipAddressHeaders.
    • Added production regression test for missing client IP, ensured no 429 is returned, removed the trustedProxies hint, and fixed test cleanup to reset env and modules.

Written for commit fba1b2b1a9. Summary will update on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8617 **State:** closed **Merged:** Yes --- ## Summary - update the rate-limit warning to point users to `advanced.ipAddress.ipAddressHeaders` - keep rate-limit and IP resolution behavior unchanged - add a regression test for the missing-client-IP path outside dev/test Closes #8615. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes the rate-limit IP warning to point users to configure client IP headers via `advanced.ipAddress.ipAddressHeaders`. Behavior is unchanged; guidance corrected and tests hardened. - **Bug Fixes** - Updated warning to reference forwarding a trusted client IP header and `advanced.ipAddress.ipAddressHeaders`. - Added production regression test for missing client IP, ensured no 429 is returned, removed the `trustedProxies` hint, and fixed test cleanup to reset env and modules. <sup>Written for commit fba1b2b1a9356668fbeb0c4438aaef1d2ead9512. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 10:29:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16347