• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / auth / 19971839037
68%
master: 69%

Build:
Build:
LAST BUILD BRANCH: release-please--branches--master
DEFAULT BRANCH: master
Ran 05 Dec 2025 06:18PM UTC
Jobs 1
Files 170
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Dec 2025 06:06PM UTC coverage: 68.449% (+0.01%) from 68.435%
19971839037

Pull #2282

github

jnschaeffer
feat: Treat rate limit header value as comma-separated list

This commit updates performRateLimiting to treat the rate limit header
value as a comma-separated list and enforce rate limiting based on the
first value in that list.

Certain HTTP headers, such as X-Forwarded-For and other headers that
are combined according to RFC 7230, can be represented as a
comma-separated list of values. Intermediate proxies may add their own
values to these headers, modifying the resulting value. For example,
an end user with a single IP address proxied through a fleet of load
balancers using the X-Forwarded-For header may be associated with
multiple X-Forwarded-For header values, e.g.,
"2.2.2.2,100.100.100.100" and "2.2.2.2,300.300.300.300". The current
implementation of performRateLimiting treats each of these as separate
rate limiting keys.

To address this issue, this commit splits the rate limit header by
commas and takes the first value (with whitespace removed) to use as
the rate limiting key.

Note that this logic is superficially similar to the
utilities.GetIPAddress function with two key differences. In
performRateLimiting, there is no set format for a given rate limiting
key, nor is there a fallback value after the first value in the list
that the API should use.
Pull Request #2282: feat: Treat rate limit header value as comma-separated list

24 of 26 new or added lines in 1 file covered. (92.31%)

47 existing lines in 1 file now uncovered.

14655 of 21410 relevant lines covered (68.45%)

77.64 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
76.56
0.58% internal/api/middleware.go

Uncovered Existing Lines

Lines Coverage ∆ File
47
76.56
0.58% internal/api/middleware.go
Jobs
ID Job ID Ran Files Coverage
1 19971839037.1 05 Dec 2025 06:18PM UTC 170
68.45
GitHub Action Run
Source Files on build 19971839037
  • Tree
  • List 170
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2282
  • PR Base - master (#19871602451)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc