Discussion

Show HN: A single security policy for both AWS CloudFront and Cloudflare Workers

I released `cdn-security-framework` to abstract away the runtime differences between CDN providers.

You define a policy like "Verify JWT" or "Block SQLi patterns" in YAML. The tool compiles this into: - *AWS:* CloudFront Functions (JS) + Lambda@Edge (for heavier tasks) + WAF Rules. - *Cloudflare:* Workers (TS) using native APIs like `crypto.subtle`.

It handles the platform-specific quirks (e.g., CloudFront's limited JS environment vs Cloudflare's full Node-like environment) so you don't have to rewrite your security logic when switching providers.

Open source and ready for feedback: https://github.com/albert-einshutoin/cdn-security-framework

1 points einshutoin 8 months ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton