~/talk

Exploiting PostgreSQL's power with Elixir / Ecto applications

Talkat ElixirConf EU 2019 · 2019-04-08..04-09· [databases]
links:none on file
slides:none on file

Shows how to push access control into Postgres using database roles (e.g. chinook_admin, chinook_supervisor, chinook_agent, chinook_customer), a trigger that validates role strings (check_role_exists), and migrations that run SQL like CREATE POLICY and RLS rules expressing the supervisor/agent/customer row filters. Ecto code wraps queries in a Repo.transaction that runs SET LOCAL role and set_config('chinook.app_user', user_id) so application queries return only rows allowed by the DB policies; trade-offs: SQL skill and complex-policy planning.

AI-written summary · about

  1. 0:00Start
  2. 4:10Authorisation System
  3. 5:56Chinook Database
  4. 17:23Let's use Postgres
  5. 20:57Row Level Security (RLS)
~/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.