All studies

Access policy verification

A policy shape flagged 22.4% · the runtime estimate was about 4.5%

The same owner-update policy can guard user-editable data or expose fields the server controls. We checked which cases met a strict runtime criterion.

Policy shape prevalence
Static shape
22.4%
Runtime estimate
≈4.5%

The static shape appeared in 168 of 749 fully loaded repositories. The runtime estimate applies the confirmation rate to that group. The marked range is the propagated 95% Wilson interval, about 1.8% to 9.3%.

Study report

What we measured

Strict runtime confirmations
Strict confirmations
4 of 20

Follow-up covered repositories flagged by the static rule. A strict confirmation required a successful isolated write and a server-side writer visible in source.

Follow-up counts

Method

We screened row-level security policies for an owner-update shape on profile-style tables with columns flagged by name. The static denominator included only repositories whose database schema loaded fully. We then drew a random follow-up sample within each of two strata defined by a builder marker.

For the follow-up we reviewed who controlled the flagged data, then checked actual behavior in an isolated environment that represented the platform’s default grants. We multiplied the share flagged in the fully loaded cohort by the strict confirmation rate from the follow-up.

Limits

A small follow-up sample leaves a wide interval. The estimate covers this policy shape and the fully loaded cohort. Related templates can recur in the corpus, and column names can miss values the application controls.

Pinned source and isolated execution establish the benchmark result. Production grants and policy state can differ. The Supabase User Management example behaved as intended for the fields shipped in the example. An application that extends it with server-controlled fields changes that ownership model.

What to check

When a profile schema grows, review who can change the new fields. Verify that legitimate profile edits work and that values governing access or billing stay under application control.

Report and data

Run npx viberaven.