
Authorization Pitfalls: How the TypeScript ABAC Engine @via-profit/ability Works and 5 Security Holes It Had to Fix
Permission checks look like a couple of if statements until one extra space in a parser exposes other people's tasks, or two empty undefined values match as the same document owner. We break down two years of building the synchronous TypeScript ABAC engine @via-profit/ability: moving from JSON to a text DSL, why positive tests miss nesting bugs, the danger of !isDeny(), why explain() needs state snapshots, and how to restore static typing with a type generator.


















