Skip to main content

Identity & Access

The guard shouldn't lock out the builder.

1Principles

The owner can't get in.

  • Auth succeeds but authorization fails — two different systems, two different failure modes
  • PostgreSQL 22P02: query passes Clerk userId where UUID expected
  • The bug is in the query, not the data — even with correct roles, the query crashes
  • Default-deny is right, but only after roles exist to assign
ProblemQuestionDecision
Owner locked out of own appFix the guard or fix the query?Fix the query — 22P02 uses wrong ID type
Platform owner staring at a locked dashboard — the guard meant to protect strangers is blocking the builder
1 / 5

Five Questions

  1. Can the owner get in without touching the database?
  2. How many errors are we generating before revenue?
  3. What percentage of infrastructure is wired, not just built?
  4. Which ventures are waiting on this to ship?
  5. Who fixes, who commissions, who's locked out?