~/talk

Row Level Security

Talkat PostgresOpen 2014 · 2014-09-17..09-19· [security, databases]
links:none on file
slides:none on file

Postgres adds native row‑level security in 9.5: enable it per table with ALTER TABLE ENABLE ROW LEVEL SECURITY, define per‑command policies with CREATE POLICY ... USING ... WITH CHECK (default deny, policies ORed, owners and superusers exempt unless you SET ROW SECURITY = FORCE), policies accept role lists, USING filters and WITH CHECK for inserts/updates, leakproof functions allow safe pushdown to indexes, no policy-on-views today, SELinux integration is proposed, and grant controls for policies are not yet implemented.

AI-written summary · about

  1. 0:00Row Level Security intro
  2. 1:59Prior RLS approaches in PostgreSQL
  3. 10:55Multi-schema RLS challenges
  4. 11:17Native RLS in PostgreSQL
  5. 13:45Enabling/disabling RLS policies
  6. 15:28Creating RLS policies
  7. 22:51Multiple policies and role membership
  8. 25:18RLS with data modification
  9. 30:11RLS and query planning
  10. 34:18Functions in RLS policies
  11. 36:55RLS policy security
  12. 41:12Default deny and visibility
  13. 43:38Inserting invisible records
  14. 45:02RLS with external security
  15. 47:10Leak-proof functions and performance
  16. 48:36EXPLAIN RLS queries
  17. 51:03Future RLS enhancements
~/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.