Skip to content

fix: promote arcjet cloudflare proxy fix to main#12

Merged
kenneth-loto merged 2 commits into
mainfrom
develop
Jul 1, 2026
Merged

fix: promote arcjet cloudflare proxy fix to main#12
kenneth-loto merged 2 commits into
mainfrom
develop

Conversation

@kenneth-loto

Copy link
Copy Markdown
Owner

Summary

Promotes the Arcjet Cloudflare proxy fix, ArcjetOptionalGuard, and health check skip from develop into main.

What's Changed

  • trust proxy true and ArcjetOptionalGuard now active on main
  • cloudflare() proxy helper in arcjet.module now in main
  • SkipArcjet on health check route now in main
  • Live demo URL in README now in main

Why

The IP warning fix needs to be on main to take effect on the Render production deployment.

kenneth-loto and others added 2 commits July 1, 2026 12:22
- add NestExpressApplication type and app.set trust proxy true in main.ts so express reads
the real client ip from cloudflare forwarded headers
- create src/common/guards/arcjet-optional.guard.ts extending ArcjetGuard with SkipArcjet
decorator support for exempting specific routes
- update arcjet.module.ts to replace proxies 10.0.0.0/8 with cloudflare() helper, type aj as
ArcjetNest instead of any, and swap ArcjetGuard for ArcjetOptionalGuard
- add SkipArcjet decorator to root GET / in app.controller.ts to skip arcjet on render health
check probes which have no client ip
- add live demo url and cold-start note to README.md
Adds trust proxy true to Express via NestExpressApplication so Cloudflare forwarded headers are respected, replaces the static CIDR proxy config in arcjet.module.ts with the cloudflare() helper, types the aj instance as ArcjetNest, creates ArcjetOptionalGuard extending ArcjetGuard with SkipArcjet decorator support and swaps it in as the global guard, adds SkipArcjet to the root GET / health check route that carries no client IP, and adds the live demo url and cold-start note to the readme.
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@kenneth-loto kenneth-loto merged commit 1eaeb18 into main Jul 1, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant