The check comes back with a table of customer names and phone numbers that anyone can read without signing in. Two jobs start at the same moment: close it, and find out whether someone else got there first. The order you do them in matters, and so does what you save before you close anything.
This is a guide for the agency that maintains the app, written for apps whose users are in the EU or the UK, where GDPR sets the clock. It is not legal advice. The decisions that carry legal weight belong to your client, ideally with their adviser. Your job is to give them the facts quickly enough to make those decisions in time.
First hour: save what shows the problem, then close it
Before you change anything, write down what you found and when: the table or bucket, the columns it exposes, how many rows it holds, and the exact policy or setting that made it open. A screenshot of the policy as it stands is worth more later than a description from memory.
Then close it the narrow way. Fix the one policy, add the missing condition, or take the grant away from the anonymous role. Do not delete the table, restore an old backup over it or rebuild the project. Each of those destroys the evidence you are about to need, and can take the client's working data with it. If a secret key was exposed, revoke it at the provider as part of closing; keys in browser code covers that case.
Note the time it was closed. Together with the time it opened, that is the window everyone will ask about.
Same day: keep the logs before they expire
The question "did anyone read it?" is answered by request logs, and those do not last long. On Supabase, API and database logs are kept for one day on the Free plan and seven days on Pro. Open the project's logs, filter on requests to the exposed table or bucket, and export what you find: times, addresses, the kind of client, and how much was returned.
Look for three things. Requests from your own checks and from the app's normal use, which you can explain. Requests from addresses and tools you cannot explain. And gaps, where the logs no longer reach back to when the problem started.
Then find out when it started. The app's version history, the database migrations or the policy's creation in the project usually give a date. Sometimes the answer is launch day; more often it is the change that added the table or loosened the rule.
Was it a breach, or an open door?
Under GDPR a personal data breach is a security incident that leads to personal data being destroyed, lost, altered, or disclosed to or accessed by someone who should not have it. An open table is a security problem either way. Whether it is also a breach depends on whether personal data was in fact accessed or disclosed.
- If the logs cover the whole window and show only requests you can explain, the client may conclude that the door was open but nobody walked through.
- If the logs show requests you cannot explain reading the table, treat it as a breach.
- If the logs do not reach back far enough, you cannot show either. Say so plainly, and let the client and their adviser decide with that uncertainty on the table.
The EDPB guidelines on breach notification describe a short first investigation to establish, with a reasonable degree of certainty, whether a breach happened. They do not treat it as a way to stop the clock. Work fast.
Who tells whom
For the app's users, the client is almost always the controller: the business that decided to collect the data. An agency that maintains the app and works in its database is usually a processor on the client's behalf. The roles decide the duties:
- The agency tells the client without undue delay after becoming aware of a breach. In practice that means the same day, by phone first and in writing after.
- The client tells the supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware, unless the breach is unlikely to result in a risk to the people whose data it was.
- The client tells the people affected directly when the breach is likely to result in a high risk to them.
Give the client what a notification asks for, so they are not waiting for you: what kind of data was exposed, roughly how many people and records, from when to when, what the logs show, the likely consequences, and what has been done. A client with that in hand on day one can decide in a day. A client who gets it on day three cannot.
What to say to the client
Call before you write. The structure in how to tell a client about a security finding holds: what could have happened, whether it did, what you have done, what they need to do. The last part is new here. They have a decision to make about notification, possibly within hours, and they should hear that from you, not discover it later.
Avoid two things. Do not promise that nobody saw the data unless the logs show it. And do not guess at blame on the call. Where the problem came from is part of the written account, once you know it.
After the first 72 hours
Whatever the client decides about notification, GDPR expects them to document the breach, including the facts, the effects and what was done. Your timeline, log exports and screenshots are most of that record, so hand them over in one place.
Then close the route it came in by. If a prompt created the table without rules, look at every table created since launch. If a rule was loosened to fix an error, look for others like it. And make sure the same problem would be caught the next night rather than the next quarter: a check for tables readable without a login, and a two-user test for data that signed-in users should not share.
The difference between a bad week and a lost client is rarely the problem itself. It is how quickly the client heard about it, and whether they heard it from you.