← All guides

Bubble Privacy Rules: Is Your App's Data Exposed?

Bubble

Your Bubble app works and people are signing up. Then a worrying thought arrives: can one user see another user’s data? Can someone who never logged in pull your whole database?

In Bubble, the answer depends almost entirely on your privacy rules. Bubble’s manual calls them “an essential part of your app’s security” and says any private or sensitive data “needs to be protected with privacy rules to be considered secure” (Bubble: Protecting data with privacy rules).

This guide starts with a quick test you can run yourself, then walks through setting up rules for each data type and the less obvious places data can leak.

Why hiding something on the page doesn’t protect it

It’s easy to assume that if a field isn’t shown on the page, users can’t see it. Bubble’s docs say otherwise. When a page loads data, Bubble sends the browser every field on that record that the user’s rules permit, not just the one you display. Once it arrives, Bubble’s docs say it sits in the browser “as plaintext” (Bubble: Client-side and server-side).

So hiding a group, filtering a list with :filtered, or leaving a field off the design does nothing for security. Bubble’s privacy rules article puts it plainly: once data reaches the user’s device, anyone using that device can read it from the traffic between the browser and Bubble’s server. Privacy rules are checked on the server, before anything is sent. That’s why they’re the fix.

Are new data types public?

It depends on a choice you made when you created each type. Bubble’s Data tab reference says that when you create a data type you can make it private or public. A private type starts with a rule that lets only the thing’s creator see its fields, search for it and open its files, while everyone else gets no access. A public type is “visible by everyone”. The same page warns that “by default, new data types are generally visible to all end-users”, so you should set rules before you handle real user data (Bubble: Data tab).

The privacy editor shows each type’s status as either Privacy rules applied or Publicly visible. That list is your starting point.

A quick test: is anything leaking?

You don’t need to be technical to run these checks. Do them on your live app as well as in development, because Bubble keeps separate development and live databases.

1. Read the status list

Open Data → Privacy in the editor. Write down every data type marked Publicly visible. For each one, ask: would I be fine with a stranger downloading every record of this? Products on a public store, maybe. Users, orders, messages, invoices or anything personal, no.

2. Run the privacy rules checker

Bubble’s security dashboard includes a privacy rules checker that reviews every data type and flags fields that anyone can read. It needs sample data in each type to give useful results, and it can take a few minutes on a large database (Bubble: Privacy rules checker). Bubble is clear that the dashboard “cannot cover every security concern”, so treat it as a first pass rather than a sign-off (Bubble: Security dashboard).

3. Open the app logged out and look at the network tab

Open your app in a private browser window without logging in. Open your browser’s developer tools, go to the Network tab, and reload. Click through the requests and look at the responses. If you see email addresses, phone numbers, other people’s records, or fields you never display, those are being sent to anyone.

Then log in as an ordinary test user and repeat. You should only see your own private records, plus anything that’s meant to be shared.

4. Test as each kind of user

Bubble has a built-in way to do this. In Data → App data, select the User type and click Run as on a user’s row. A new tab opens and you see the app exactly as that person would (Bubble: Introduction to testing and debugging).

One warning from Bubble’s docs: until you log out, you really are using the app as that user, so don’t make changes you didn’t mean to make (Bubble: The database editor).

5. Check whether the Data API is on

Go to Settings → API. Bubble ships with the Data API switched off (Bubble: The Data API). If Enable Data API is ticked, note which data types are checked. Each checked type is reachable at an address like https://yourapp.com/api/1.1/obj/typename (Bubble: Data API endpoints), and your privacy rules decide what it returns. Open one of those URLs in a logged-out private window. If records come back, so can anyone’s.

Writing rules for each data type

Privacy rules are set per data type in Data → Privacy. Each rule has a condition (who it applies to) and permissions (what they can do). Each rule reads roughly like a sentence: when this condition is true, the user can find this thing in searches, view its attached files, and view, search by and auto-bind the fields you tick.

The most important idea is that rules grant access. They don’t take it away. Bubble’s manual says rules are additive: a user who matches several rules gets the combined access of all of them, not the strictest. Its summary: “With privacy rules, you don’t prohibit access, you grant it.”

That leads to a simple pattern for private data:

  1. A rule for the owner. For example, This Order's Creator is Current User, with the fields and searches they need.
  2. A rule for anyone else who needs access, such as admins (a yes/no field on the User, defaulting to no) or a list of invited users on the thing.
  3. The “Everyone else” rule with everything unticked. Bubble generates this rule automatically and says to pay close attention to it, because it decides what happens to everyone who matches nothing.

For the User type, give other users only what they need, such as a display name, and keep email, phone and payment IDs owner-only.

Rules don’t refresh mid-session

If something changes a user’s access while they have the page open, Bubble won’t hide the data until the page is refreshed. Keep that in mind when you test.

Fields, searches and “find this in searches”

Field permissions are more than “can see it” and “can’t”. Each field has three checkboxes: View, Constraint and Auto-bind.

Constraint matters because people can learn a hidden value by searching on it. Bubble’s example is a salary field: a user who can’t view it, but can search with Salary > 100,000, finds out who earns more than that from which records come back.

To close that gap, Bubble has search privacy modes in Settings → General: Off, Automatic and Strict. For apps that search sensitive data, Bubble recommends Strict, where a field can only be searched on if you’ve explicitly permitted it. Automatic is described as “a strong default while you get there”. Bubble doesn’t recommend Off for apps that search sensitive data. Bubble’s article has a checklist for switching safely.

A note on wording: Find this in searches controls Do a search for specifically, and Bubble warns that the record “can still be fetched in other ways”. View all fields controls reading, not editing. That leads to workflows.

Workflows, backend workflows and the Data API

Workflows run as the current user

In Bubble’s model, a workflow acts on behalf of whoever triggered it, so that person’s privacy rules apply to it. But privacy rules limit what a workflow can see, not what it can do. A Make changes to a thing action still runs on a field the user can’t view, and turning off auto-bind doesn’t stop the same change happening in a workflow. To stop actions you don’t want, add Only when conditions to the workflow or action.

Backend (API) workflows

API workflows respect privacy rules too, except when Ignore privacy rules when running the workflow is ticked (Bubble: Workflow API privacy rules). That setting has real uses, but combine it with public exposure and you’ve built a door with no lock.

Bubble’s security guide explains that unticking Expose as a public API workflow removes that workflow’s endpoint entirely. To let a workflow run with no authentication, you have to expose it and set Authentication to None required, and optionally ignore privacy rules too (Bubble: Workflow API security). Review every exposed backend workflow and ask whether it really needs to be public.

The Data API

If you’ve enabled the Data API:

  • Only tick the data types that need it. Unchecked types aren’t reachable through it at all (Bubble: Data API security).
  • Understand admin tokens. A client using a Bubble API token gets full admin access, and “all privacy rules will be disregarded” (Bubble: Data API privacy rules). Keep those tokens on servers you control and never in front-end code.
  • Leave Create, Modify and Delete via API off unless you need them. Bubble adds these three options to a type’s rules when you expose it, and they’re unchecked by default.

Option sets and files

Option sets are always public

Option sets are bundled into the JavaScript Bubble sends to every visitor. Bubble’s docs say every option set, “including all its options and their attributes”, can be seen by anyone who opens developer tools, and privacy rules don’t apply to them (Bubble: Option sets). Never store discount codes, internal prices, API keys or anything private there.

Files need two settings

According to Bubble’s files article:

  • An uploaded file gets a public address right away, which Bubble says “anyone with the link can view”, even before you save it.
  • Privacy rules don’t cover files you add yourself in the editor, so only upload public files that way.
  • To make a user’s upload private, tick Make this file private on the uploader and attach it to a thing. The file then inherits that data type’s rules, and View attached files must be unticked for anyone who shouldn’t see it. The uploader setting alone isn’t enough.

When to get a second pair of eyes

A careful owner can do everything above. A review is worth it when you have many data types, several roles, backend workflows that ignore privacy rules, or the Data API connected to other systems. The security checklist for AI-built apps and the production readiness guide are also worth a read.

If it’s still worrying you, a vetted senior engineer can review your privacy rules and fix them, and show you what was exposed. Fixed price, agreed upfront. See /fix/bubble.

FAQ

Are Bubble apps secure by default?

Not automatically. Bubble gives you the tools, but its security docs describe a shared responsibility: you have to set privacy rules on your data types. A type created as public, or left without rules, is visible to everyone, and the security dashboard won’t catch every issue.

Do privacy rules slow my app down?

Bubble’s workload docs suggest the opposite can happen. Its backend workflows article says privacy rules work much like search constraints, so a query can finish faster and return a shorter list. Rules also stop unneeded fields being sent, which reduces the data each page downloads.

Why does a page still show data after I added a rule?

Check four things. First, privacy rules don’t update on a page that’s already open, so refresh. Second, rules are additive, so another rule (such as an admin or “logged in” rule) may still be granting access. Third, check the “Everyone else” rule. Fourth, if you’re testing the live app, deploy first; rule changes made in development don’t reach live until you deploy.

Can people see my data without logging in?

Yes, if your rules allow it. Bubble even gives logged-out visitors a temporary user by default. Test with a private window and the network tab, and open your Data API URLs logged out if the API is enabled.

Do I need rules if I don’t use the Data API?

Yes. The Data API is just one route. Your own pages download every field the rules allow, and anyone can read that from the browser. Privacy rules are what stop the data leaving Bubble’s server in the first place.

Comments

Add a comment

Generated for you. Click to type your own.

Required. Never shown on the page. Privacy policy.

Basic markdown: **bold**, *italic*, `code`, lists, quotes, and fenced code blocks. HTML shows as plain text.

Your draft stays on this device until you post.