~/talk

Access Denied: the missing guide to authorization in Rails

Talkat RailsConf 2018 · 2018-04-17..04-19· [ruby-on-rails, security]
slides:none on file

Compares CanCan and Pundit, maps authorization models (DAC, MAC, RBAC, ABAC), and claims Rails lacks a built-in solution then demonstrates a new action_policy gem extracted from real projects and released as a pre-release at RailsConf. Measures reveal 45 policy checks on some pages (N+1 authorization), implements two-level caching and scope caching to save hundreds of milliseconds per request, provides a test mode that tracks policy calls and reduces controller tests, and supports namespaces, failure reasons, and multi-context policies.

AI-written summary · about

  1. 0:00Start
  2. 4:16AUTHENTICATION
  3. 5:19EXAMPLE
  4. 7:37DISCRETIONARY (DAC)
  5. 8:41MANDATORY (MAC)
  6. 10:06ATTRIBUTE-BASED
  7. 12:26IN RAILS
  8. 14:04TOOLS
  9. 14:22WHAT PEOPLE SAY
  10. 17:09THE EVOLUTION
  11. 18:10WHY CUSTOMIZE?
  12. 19:45THE QUESTION
  13. 21:50Let's talk about
  14. 22:01BOILERPLATE
  15. 25:38PERFORMANCE
  16. 26:24ActiveSupport :: Notifications
  17. 26:51N+1 AUTHORIZATION
  18. 28:06CACHE STORE
  19. 31:23CASE: TESTING CONTROLLERS
  20. 32:07ACTION POLICY
  21. 33:53SCOPES
  22. 35:27NAMESPACES
  23. 38:31MORE FEATURES
  24. 39:40CONTEXTS
~/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.