~/talk

Building Scalable Access Control Frameworks in React

Talkat React Miami 2025 · 2025-04-17..04-18· [react, security]
slides:none on file

Compares using CASL (declarative ABAC with createAbility and ability.can rules) versus a custom policy-as-code system (YAML policies evaluated with the CEL evaluator in the browser). Shows a working usePermission hook that combines CEL policy checks, contextual validators, and Redux Toolkit/TanStack Query conditional fetch + caching of policies, and points out a performance bug: subscribing to the entire store with useSelector causes excessive rerenders—use granular selectors instead. Recommends enforcing rules server-side for security and keeping policy definitions as a single source of truth.

AI-written summary · about

  1. 0:00Introduction and icebreaker
  2. 1:49Access control challenges
  3. 2:55Introduction to ABAC
  4. 5:07Enforcement strategies
  5. 6:10Implementing access with CASL
  6. 10:35Building a custom solution
  7. 12:33Policy evaluation and caching
  8. 14:04Contextual logic and hooks
  9. 17:05Granular state management
  10. 18:36Summary and takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.