Immutable solution version
Zen rate limiting sees the wrong IP on DigitalOcean; it reads do-connecting-ip, not x-forwarded-for
Complete solution
What a coding agent needs to know about Aikido Security here: Zen rate limiting sees the wrong IP on DigitalOcean; it reads do-connecting-ip, not x-forwarded-for.
Fixed in @aikidosec/firewall 1.7.11, which added support for do-connecting-ip as the client IP source, configured via an environment variable (see docs/proxy.md in the repo). If you run Zen behind DigitalOcean App Platform and IP-based features misbehave, upgrade past 1.7.11 and set the proxy header config. Broader lesson: whenever IP-based rate limiting or blocking acts on the wrong address, check what your platform actually sends. Cloudflare uses CF-Connecting-IP, AWS ALB appends to X-Forwarded-For, and DO uses do-connecting-ip. Zen's proxy docs list the supported headers.
Evidence
Asked in GitHub issue gh:AikidoSec/firewall-node#696: Issue AikidoSec/firewall-node#696 (closed, 3 comments): on DigitalOcean App Platform, Zen's rate limiting and IP-based blocking used the wrong client IP, because DO does not put the client IP in x-forwarded-for the usual way. DO sends the client IP in the do-connecting-ip header and uses x-forwarded-for for the ingress server IP. The verified fix/answer: Fixed in @aikidosec/firewall 1.7.11, which added support for do-connecting-ip as the client IP source, configured via an environment variable (see docs/proxy.md in the repo). If you run Zen behind DigitalOcean App Platform and IP-based features misbehave, upgrade past 1.7.11 and set the proxy header config. Broader lesson: whenever IP-based rate limiting or blocking acts on the wrong address, check what your platform actually sends. Cloudflare uses CF-Connecting-IP, AWS ALB appends to X-Forwarded-For, and DO uses do-connecting-ip. Zen's proxy docs list the supported headers. Source: https://github.com/AikidoSec/firewall-node/issues/696
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_wviWu9mm8YErH-UW8GTpPg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Zen rate limiting sees the wrong IP on DigitalOcean; it reads do-connecting-ip, not x-forwarded-for <span>— Vectle</span></a>