function l(){return o.from("customers").select("*")}
function d(e){return o.from("customers").delete().neq("id",e)}
customersAnyone who opens atlas.example
Name
Email
Mara Quinn
mara@northwind.example
Theo Albers
theo@kestrel.example
Ines Duarte
ines@fieldnote.example
and 1,245 more rowsDelete all 1,248
permission denied for table customersThe website's public key can not read this table.
Lockpick
Database admin key in the website's code
FixedRechecked 22 Sep, 10:41 UTC
Before. Atlas's database admin key is in the website's code, and anyone who opens the site can open the customer table.
What we saw
A key that unlocks the whole database was sitting in the website's code.
Technical detail
Found in 1 of 4 scripts the homepage loads, /_next/static/chunks/app.js. A Supabase JWT starting eyJhbGciOiJI (redacted here) carries the role service_role, which skips row level security. Lockpick read the script the way any browser does and did not use the key.
What someone could do
Read, change or delete every customer record. No password needed.
The prompt
A ready-to-paste prompt for your coding agent. Rotate the key, move it to the server, lock the table, then recheck.
Public HTTPS pages only. Assess only sites you are authorised to test. An observation describes what was checked; it does not prove an exploit or complete security.