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

umputun / cronn / 17219646860 / 1
75%
master: 75%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2025 08:15PM UTC
Files 22
Run time 1s
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

25 Aug 2025 08:14PM UTC coverage: 73.898% (+0.08%) from 73.815%
17219646860.1

push

github

web-flow
feat: add brute-force protection to login endpoint (#46)

Implement rate limiting for login attempts to prevent brute-force attacks as
recommended by Gemini security review.

Security improvements:
- Rate limit login attempts to 5 per minute per IP address using tollbooth
- Applied via middleware chain for clean architecture
- Custom error message for rate limit violations
- Comprehensive test coverage with 429 status code verification

Technical details:
- Added github.com/didip/tollbooth/v8 dependency
- Configured rate limiter: 5.0/60.0 requests per second with burst=5
- Applied to POST /login route via router.With() middleware
- Updated documentation with brute-force protection info

Test improvements:
- Added TestServer_LoginRateLimiting with rate limit verification
- Fixed HTTPS logout test with proper CSRF headers and unique IPs
- All authentication tests pass with 88.9% coverage

Addresses Gemini's #1 critical security recommendation while maintaining
clean code architecture and comprehensive test coverage.

2112 of 2858 relevant lines covered (73.9%)

24.1 hits per line

Source Files on job 17219646860.1
  • Tree
  • List 22
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17219646860
  • 44d7ddbe on github
  • Prev Job for on master (#17219218529.1)
  • Next Job for on master (#17220314805.1)
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