Calendar Icon White
November 20, 2026
Clock Icon
3
 min read

How to securely store sensitive PII, PHI data & API Keys in Bubble

Secure your Bubble instance if you are dealing with sensitive data

How to securely store sensitive PII, PHI data & API Keys in Bubble
ChatGPT
Perplexity
Grok
Google AI
Claude
Summarize and analyze this article with:

TL;DR

  • Bubble stores whatever your users type in its own database, where app editors, workflows, and connected tools can read it. That includes PII, PHI, card numbers, and the API keys your app uses to call Stripe or Twilio.
  • At the time of writing, Bubble's own documentation advises against building HIPAA apps on the platform, and Bubble does not offer a BAA on its current plans.
  • The exposure grew in 2026. The Bubble MCP lets Claude Code, Codex, and other AI tools take actions inside your app, and community MCP servers connect AI assistants straight to the Bubble Data API.
  • Strac collects sensitive fields in isolated iframes, keeps the real values in its vault, and hands Bubble a token. The Strac proxy sends real values to partners without Bubble ever holding them, and MCP DLP redacts what AI agents read.
  • Bubble is one app in a wider SaaS DLP program. Start from the pillar on AI data governance.

‍

What Does It Mean to Securely Store Sensitive Data in Bubble?

Securely storing sensitive data in Bubble means the raw value never lives in Bubble at all. A Social Security number, a diagnosis, a bank account, or a Stripe secret key sits in a separate vault built for that job, and your Bubble app keeps a reference to it.

That reference is a token. It looks like tkn_8f2c..., it means nothing on its own, and it cannot be reversed without the vault. Your app can save it, search on it, pass it between workflows, and show the last four digits to a user. If someone exports your database, the export holds tokens, not customer data.

This is data tokenization, and it is the cleanest answer to a narrow question: does your Bubble app need to hold the real value to do its job? Almost never. Your app needs to know a patient has insurance on file, not the member ID itself.

Is It Safe to Store Sensitive Data in Bubble?

Bubble ships a solid baseline for a no-code platform. It holds SOC 2 Type II, encrypts data in transit with TLS and at rest with AES-256 on AWS, and gives builders privacy rules that limit which users can see which records and fields. A security dashboard scans for exposed API keys and loose privacy rules before you deploy.

These controls are real, and they have clear edges:

  • They protect access, not content. A Social Security number saved to a text field is stored as readable text. Anyone with access to your app's data tab, and every workflow that touches the record, sees the real value.
  • They depend on perfect configuration. One missing privacy rule can expose a whole data type to the front end, where any logged in user can query it.
  • API keys live with your collaborators. Keys saved in the API Connector or a plugin are hidden from end users, but every editor on the app can view them.
  • Logs remember too much. Server logs and the workflow debugger can capture values that pass through workflows and API calls.
  • HIPAA is not covered today. Bubble's documentation says it does not support HIPAA compliant apps, and Bubble has said HIPAA support is planned for a future Enterprise plan. Until a BAA is available and signed, PHI should not rest in Bubble. Check Bubble's current documentation before you plan around a change.
  • AI now reads your app. The Bubble MCP and third party MCP connectors give AI tools a path into your app that privacy rules were never designed to filter.

Bubble secures the platform; tokenization secures the data inside your app.

Where PII, PHI, and API Keys Leak in a Bubble App

Most Bubble exposure follows eight paths:

  • Input forms. Signup, onboarding, and intake forms write names, dates of birth, SSNs, and insurance IDs straight into Bubble database fields.
  • File uploads. Driver's licenses, lab results, tax forms, and bank statements land in Bubble file storage, where a file name tells you nothing about what is inside.
  • The API Connector and plugins. Stripe, Twilio, Plaid, and OpenAI keys sit in settings that every collaborator can open. Read sharing and storing API keys securely for the wider picture.
  • Calls to partners. Sending a patient record to a lab or a card number to a processor means Bubble has to hold the real value first, unless something else sends it for you.
  • AI features inside your app. A workflow that sends a support message or a medical note to an AI model sends every piece of PII in it to the model provider.
  • The Bubble MCP and AI builders. When a builder connects Claude Code or Codex to the Bubble MCP, or plugs Claude into a community MCP server for the Data API, the AI tool works with whatever the connection can reach.
  • Exports and copies. A CSV export of a user table moves data onto a laptop, where only endpoint DLP can see it.
  • Builders pasting data into chat tools. A developer pastes a user record into ChatGPT to debug a workflow, or drops it into a Slack thread for a teammate.

✨ How Strac Tokenization Works in Bubble

Strac connects to Bubble through the Strac Bubble plugin or through the Bubble API Connector calling Strac APIs directly. The plugin is built on the same APIs, so both paths behave the same way.

Collect. You place Strac UI Components on your Bubble page in place of normal inputs. Each component is a text field, a text area, or a display label, served in an iframe from Strac's domain. Bubble's page scripts cannot read what the user types. When the user submits, Strac stores the value in its vault and returns a token, and your workflow saves that token in your Bubble database. Read more on collecting data on apps.

Display. When a user needs to see their own data, a Strac label component shows it. Strac checks the request against your authorization rules before it reveals anything, and server side detokenization only works from IP addresses you allow. For most screens you never reveal the full value; Strac returns partial details such as the last four digits.

Store documents. IDs, tax forms, and medical records go to the Strac Document Vault instead of Bubble file storage. Each upload returns a reference ID, and stored documents cannot be changed in place.

Send to partners. Your Bubble workflow calls the Strac proxy with tokens and the partner's URL. Strac swaps each token for the real value and forwards the request to that partner, which must be on your allowed list. Bubble never holds the raw data on the way out. See sending data to partners.

Receive webhooks. Partners that post sensitive data back to your app send it to a Strac webhook address first. Strac tokenizes the payload and passes your Bubble backend workflow the tokens.

Store API keys. You save your Stripe, Twilio, or Plaid secret as a Strac token. The API Connector sends the token through the Strac proxy, and Strac inserts the real key before the request reaches the provider. The key is no longer sitting in your app settings for every editor to copy.

Encryption protects data where it rests; tokenization makes sure there is nothing worth stealing in Bubble to begin with.

✨ Strac: Secure PII, PHI & API Keys in Bubble

Strac gives Bubble builders the data layer Bubble does not ship. It detects and protects Social Security numbers, dates of birth, driver's license and passport numbers, card numbers, bank details, API keys, and HIPAA PHI data elements, including text inside images and PDFs. The full list lives in the Strac catalog of sensitive data elements.

The same policy follows Bubble data wherever it travels:

  • AI features in your app. The Strac redaction proxy sits between your API Connector and the AI model, so a support message or clinical note reaches OpenAI or Claude with the PII already removed. See data masking for the redaction modes.
  • AI agents over MCP. MCP DLP sits as a gateway between the AI agent and the MCP server. Every request and every response passes through Strac, so PII, PHI, card data, and secrets are redacted before they reach the model. Browse the supported MCP integrations, and use Claude Code security when your builders work in Claude Code.
  • Builders using chat tools. AI DLP and Browser DLP catch the user record a developer pastes into ChatGPT or Claude while debugging.
  • Keys that escape. Secret scanning finds API keys shared in Slack, Gmail, and Jira, so a leaked key gets rotated before it is used. Read credential exposure for the causes and the fixes.
  • Logs outside Bubble. If your workflows push events to Datadog, CloudWatch, or New Relic, Strac Logs DLP redacts sensitive values in those logs.

Strac remediates each finding in four ways:

  • Redact / mask. Strac replaces sensitive values with tokens or masked text in Bubble records, AI requests, Slack messages, emails, and tickets.
  • Block. Strac stops sensitive data from being sent to an AI model or a destination that is not on your allowed list.
  • Warn and coach. Strac alerts the security team in Slack or email and tells the user which data type and policy were involved.
  • Revoke access. Originals live in the Strac vault, and audit reports show who opened which value and when.

Bubble is rarely the only app holding customer data. The same platform covers Zendesk DLP, Intercom DLP, Salesforce DLP, Postgres data masking, and endpoint DLP, with DSPM and sensitive data discovery for data at rest. Strac signs a BAA, and findings map to HIPAA, PCI DSS, SOC 2, GDPR, and CCPA. Teams building on Bubble for healthcare and fintech start here.

Setup takes minutes. Add the Strac plugin or API Connector calls, swap your sensitive inputs for Strac UI Components, and point partner calls at the Strac proxy.

👉 Related reading:

Bubble Security Checklist

  • ☐ Write a privacy rule for every data type, then test it as a logged out user and as a normal user.
  • ☐ Replace inputs that collect SSNs, card numbers, health details, and bank details with Strac UI Components.
  • ☐ Move ID and medical document uploads out of Bubble file storage and into the Strac Document Vault.
  • ☐ Store third party secrets as Strac tokens and send API Connector calls through the Strac proxy.
  • ☐ Review who has editor access to your app every quarter, and remove anyone who no longer needs it.
  • ☐ Route any AI model calls through the Strac redaction proxy before PII leaves your app.
  • ☐ Put MCP DLP between AI agents and any MCP server connected to your Bubble app.
  • ☐ Scan your existing Bubble data with a PII scanner, tokenize what you find, and apply data minimization to the rest.

Related reading:

The Bottom Line

Bubble makes it fast to ship an app that collects SSNs, health records, and payment details, and in 2026 AI agents can reach into that app too. Privacy rules and access settings fail eventually; the data layer is the backstop. Keep real values in the Strac vault, give Bubble tokens, and redact what AI agents read, and a compromised account never becomes a breach.

‍Book a demo to see Strac secure the sensitive data in your Bubble app.

🌶️ Spicy FAQs for Securing Sensitive Data in Bubble

Is tokenization the same as encrypting a field in Bubble?

No. An encryption plugin still stores the data in Bubble and keeps the key somewhere your app can reach. Tokenization moves the real value out of Bubble entirely, so your database holds only references that are useless without the Strac vault.

Does Strac replace Bubble privacy rules?

No. Strac works alongside them. Keep privacy rules in place to decide who sees which records, and let Strac make sure the most sensitive fields never sit in those records at all, on any Bubble plan.

Will Strac slow down my Bubble app?

No. Users type into a normal looking field, and your workflows handle tokens like any other text. Real values are only fetched when a screen or a partner call truly needs them.

Can Strac make my Bubble app HIPAA compliant on its own?

Not on its own. HIPAA also covers access controls, training, policies, and a BAA with every vendor that touches PHI. Strac signs a BAA and keeps PHI out of Bubble, which removes the biggest gap. See HIPAA DLP for the full scope.

Is it safe to connect Claude Code or other AI tools to my Bubble app over MCP?

It is safe when a data-layer control sits in the path. Without one, the AI tool works with whatever data the connection reaches. Read the pillar on MCP DLP and the guide to MCP security.

Customer story

“Don’t just alert on problems, fix them.”

Scott Roberts, Chief Information Security Officer, UiPath

  • UiPath
  • Crypto.com
  • Inmar Intelligence
  • thredUP
  • Paymentology
  • Enveda
  • Genesis Molecular AI
  • MeridianLink
More customer stories →
Discover & Protect Data on SaaS, AI, MCP, Endpoints & Cloud
Strac provides end-to-end data loss prevention for all SaaS and Cloud apps. Integrate in under 10 minutes and experience the benefits of live DLP scanning, live redaction, and a fortified SaaS environment.

Customers include

  • UiPath
  • Crypto.com
  • Inmar Intelligence
  • thredUP
  • Paymentology
  • Enveda
  • Genesis Molecular AI
  • MeridianLink
Trusted by enterprises
Data Security + Compliance Automation

Latest articles

Browse all

Get Your Datasheet

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Close Icon