Your AI Wrote the API. Who Wrote the Security?
summary
DaloyJS is a TypeScript framework that auto-generates FastAPI-style docs from a single route definition and uses a contract-first design to produce validation, types, OpenAPI, a typed client and tests from the same source. It enforces refuse to boot on unsafe config, ships default-on guards like 1 MB body limit, per-caller rate limits, header count caps, JSON key/depth limits and strip prototype pollution, and rejects unsafe JWT algorithms. A live demo against an Express app shows 15 real vulnerabilities exploited; DaloyJS blocks or fails-safe prevents them.
AI-written summary · about
chapters (15)
- 0:00Introduction and AI fatigue
- 1:04Problem of insecure APIs
- 3:57Two groups of API developers
- 4:40Cost of data breaches
- 7:51DAL object framework overview
- 8:54Security defaults in frameworks
- 9:55Demo of API attacks
- 23:46Framework security guards
- 26:59Error handling best practices
- 29:30Security misconfigurations
- 31:56CSRF and session risks
- 33:43Proxy trust and JWT flaws
- 34:25Authentication declaration issues
- 34:46Resources and supply chain attacks
- 35:08Closing and Q&A
