fix(security): rate-limit per client IP behind trusted proxies #52

Merged
mihir merged 1 commits from fix/client-ip-behind-proxy into main 2026-11-24 16:03:59 +05:30
Owner
  • Add TRUST_PROXY (IPs, CIDRs or loopback/linklocal/uniquelocal; never
    "true") so request.ip uses X-Forwarded-For only from known hops.
    Without it every visitor shares the proxy's rate-limit bucket.
  • Occasionally sweep long-expired rate_limits rows.
  • Patch zod, nodemailer, multer, fast-uri and effect advisories; the
    production audit reports no known vulnerabilities.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Change

Describe the user-visible behavior and relevant permission boundaries.

Validation

List the checks run, migration upgrade tests, and any unavailable external verification.

Release

Mention migrations, configuration changes and compatible rollback steps. Include no secrets.

- Add TRUST_PROXY (IPs, CIDRs or loopback/linklocal/uniquelocal; never "true") so request.ip uses X-Forwarded-For only from known hops. Without it every visitor shares the proxy's rate-limit bucket. - Occasionally sweep long-expired rate_limits rows. - Patch zod, nodemailer, multer, fast-uri and effect advisories; the production audit reports no known vulnerabilities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> ## Change Describe the user-visible behavior and relevant permission boundaries. ## Validation List the checks run, migration upgrade tests, and any unavailable external verification. ## Release Mention migrations, configuration changes and compatible rollback steps. Include no secrets.
mihir added 1 commit 2026-11-24 16:03:44 +05:30
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
74c129ba6c
fix(security): rate-limit per client IP behind trusted proxies
- Add TRUST_PROXY (IPs, CIDRs or loopback/linklocal/uniquelocal; never
  "true") so request.ip uses X-Forwarded-For only from known hops.
  Without it every visitor shares the proxy's rate-limit bucket.
- Occasionally sweep long-expired rate_limits rows.
- Patch zod, nodemailer, multer, fast-uri and effect advisories; the
  production audit reports no known vulnerabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mihir merged commit 1b7d7362de into main 2026-11-24 16:03:59 +05:30
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: internal/manicanldes-backend#52
No description provided.