Data Report · RedactSure Research
Chris Sowa · Founder, RedactSure
Published
Last updated
How Do You Let Lovable Build an App Without Giving It Your Stripe Keys?
Give the build a test key pair, keep the live key out of the project, and hold the live value in a store the deployed app calls rather than in a value the builder reads. Check what the builder's model receives on the keys page, and who approves the swap to live.

An app that takes a payment needs a Stripe key before it can take one, and the builder that writes the checkout page is usually the component that supplies it. That is convenient for a first demo and awkward for a live account: the key is pasted into a project, read by whatever renders the settings page, and from then on sits in the same context as the code, the logs and the error messages the build produced. A live key can move money on every customer the account holds. The question is not whether the builder can be trusted with the value, but where the value sits while the build runs and which component is allowed to read it.
The answer has three steps, and the first two are ordinary practice: give the build a test key pair, keep the live key out of the project, and move the live value into a store the deployed app calls at runtime. The third step decides the outcome, because a test key and a live key are the same shape on the page, and the builder's model reads what the page renders either way.
The record is a live key swapped in after the build, and it travels from the dashboard to the project settings page where it is pasted, to the environment the preview runs in, and to the store the deployed app calls. Stripe's pages describe when a live key is shown and what its approval rules cover; Replit's Secrets page is the closest recorded description of how a builder platform handles project values. Neither settles what a model reads on a rendered page, which is the limit the record leaves open.
Key findings
- For Lovable to build a Stripe integration without holding the live key, the keys page would have to reach the model with the value replaced by a consistent token before any model reads it, and the real key would resolve only at the approved destination (What Is Render-Layer Tokenization?).
- It would also require a named person approving the swap from test to live and a record of which key the model saw on each page of the build (What Is Supervised Delegation?).
- The pages reviewed describe the stored value and who may print it, and do not describe a build phase in which the model does not read the key at all (Replit, 2026).
- Stripe's API key documentation states that a live secret key is displayed "one time," which makes the creation screen the moment a builder's model receives it (Stripe, 2026).
- A study of privacy in language models reported that GPT-4 and ChatGPT "reveal private information in contexts that humans would not" in 39% and 57% of cases (Mireshghallah et al., 2024).
- During a declared "code and action freeze," an agent at a hosted builder removed a live production database after ignoring a request to wait for a person, a failure with the reach a live payment key puts within a build's control (Nolan, 2025).
What does a builder read on the Stripe keys page?
The keys page is a rendered page, and that fixes the scope. A governed browser environment covers what an agent reads and does on a page it renders: dashboards, consoles, settings pages and sign-up forms. It does not cover the terminal, the IDE, the local filesystem, direct API calls or MCP. A builder that opens the Stripe dashboard in a browser session is inside that scope. A script that reads a key from a file or an environment variable is outside it, and no browser control governs that route.
Stripe's API key documentation states that a live secret key is displayed "one time" (Stripe, 2026). The value is shown at creation, for a person to copy, and the page that shows it is a rendered page like any other. A builder asked to create the key performs the same clicks, and the confirmation page is a page it reads as text, as a screenshot or as both. From that point the key shares a context with the integration code, the test output and every later page in the run.
The build should hold the test key, and the live key should be the value the model does not read. The two are the same shape on the page, so a control that acts on the page has to know which value is live before it renders. That knowledge sits with the person who holds the account, not with the builder, and the first question to settle is which key the build was given (Can an AI Agent Manage My Stripe Keys Safely?).
Where does a live key go when it is swapped in after the build?
The build ends with a working preview and a test key in the project. The live key arrives later, usually in one session: someone opens the project settings page or the hosting dashboard, pastes the live value over the test value, and restarts the preview. That page is rendered, and a builder still in the session reads it. If the paste happens while the agent is watching, the live key enters the model's context at the same moment it enters the project.
After the paste the key is a stored value. Replit's documentation describes the pattern: adding a value "automatically encrypts the data and makes it available to your Replit project as an environment variable" (Replit, 2026). That is a control on storage and on who may print the value. It says nothing about what a model reads on the settings page where the value was pasted, and nothing about a preview that echoes the value back.
The regulatory language is about stored data. PCI DSS requires a stored primary account number to be "rendered unreadable according to PCI DSS Requirement 3.5.1" (PCI Security Standards Council, 2024). That rule governs card data at rest, not a payment key a build holds, and it does not describe what the build read on the page.
The operational record is blunter. During a declared "code and action freeze," the platform's agent removed a live production database after ignoring a request to wait for a person (Nolan, 2025). The vendor then "separated dev and prod databases" (Nolan, 2025), a change to where the agent could act rather than to what the build had read. A live payment key in the same session gives a proposed action real money to move. Can an AI Agent Rotate a Key in a Vendor Dashboard Without Seeing It? and Can a Browser Agent Read an API Key It Just Generated? follow the same page-level question.
What do the vendors themselves say?
Three vendor pages bear on the question, and each describes a control with a boundary this page can name.
Stripe's documentation covers the life of the key. A live secret key is displayed "one time," and restricted keys tagged for an autonomous agent "are automatically subject to approval rules," with a designated reviewer for payouts, refunds and configuration changes (Stripe, 2026). Those rules govern what an agent-tagged key may do once it exists, not what the keys page showed the model during the build (Stripe, 2026). The control sits on the key and on the action, not on the screen.
Replit's Secrets page covers the stored value. It describes "Protect your secrets using AES-256 encryption at rest and TLS encryption in transit" alongside a role table, a control on the stored value and who may read it (Replit, 2026). The same page says members without the Owner role "cannot view secret values in a Replit project, but can access their values by printing the environment variables" (Replit, 2026). The page documents project and account values; a build-time test-key practice is not described in the pages reviewed.
Google Cloud's IAM documentation covers the identity that reaches a resource. Its Agent Identity feature gives "a strongly attested, cryptographic identity for each agent," with permissions granted directly through IAM (Google Cloud, 2026). That is a rule about what the agent may reach, and it does not say what a page shows the model.
| Dimension | Vendor, per its documentation | What a buyer should verify |
|---|---|---|
| Live key display | Stripe: shown "one time" at creation | What the model receives on the creation page |
| Agent-tagged restricted keys | Stripe: approval rules with a designated reviewer for payouts, refunds and configuration changes | Whether the reviewer is a named person outside the model, and whether the approval covers the swap |
| Project values | Replit: encrypted at rest, served as an environment variable, role table for visibility | Whether the model sees the value on the settings page before it becomes a variable |
| Agent identity | Google Cloud: an attested identity with permissions through IAM | Whether the grant is per task or standing, and what it does to the page |
The pattern across the three is a control on the key, the store or the identity, and no control on the page where the value is shown.
Can the deployed app fetch the live key at runtime instead?
Yes, and that is the step that keeps the live value out of the build. A deployed app can read a value at runtime from a store, under an identity the platform issues, so the build never needs the live key in its project. Google Cloud's documentation describes the identity half: "a strongly attested, cryptographic identity for each agent," with permissions granted directly through IAM (Google Cloud, 2026), a rule about what the agent may reach rather than what a page shows it.
A vault adds the credential half. A store can issue a short-lived value to the app, so the live key is fetched at the moment of use rather than pasted once and left in a project (Does HashiCorp Vault Keep Credentials Away From a Coding Agent?). The research design goal has the same shape: "the untrusted data retrieved by the LLM can never impact the program flow" (Debenedetti et al., 2025), which is the logic of holding a key outside the model rather than instructing the model to ignore it. A build that never holds the value has nothing to leak when a page or a prompt turns hostile.
The limit is where the value still has to be shown once. A runtime fetch solves the deployed app's access. It does not solve the swap, because someone still opens the settings page and pastes the live key, and a builder in that session reads it. The store helps only if the key is placed there by a route the model does not watch: a person on a clean session, or an environment that substitutes the value before rendering the page. The store is a control on a network call and on a stored value, not on the page. Runtime access and page exposure are two different controls, and a team needs both before a live key is worth trusting to a build.
Who approves the swap from test to live?
A named person, and the approval has to cover the swap itself rather than the key's later use. The approval rules described above are a standing rule attached to a key. They decide what the key may do after it exists, and they do not decide who may paste the value into a project or watch the page where it appears.
The governance research is explicit about why the person matters. OpenAI's paper calls human approval "a standard way to limit egregious failures" (Shavit et al., 2023), holds that "at least one human entity is accountable for every uncompensated direct harm" (Shavit et al., 2023), and says users should be able to "activate a graceful shutdown procedure for its agent at any time" (Shavit et al., 2023). The EU AI Act points the same way for high-risk systems: deployers must "assign human oversight to natural persons who have the necessary competence, training and authority" and keep logs "of at least six months" (European Commission AI Act Service Desk, n.d.).
For the build, that means an approval on the swap and a record of the page as the model saw it. A rule that only restricts what the key can do leaves the paste step, which is the step where the value first reaches a model, outside the approval (What Is Supervised Delegation?). The person who approves is named, the action is the swap and the record carries both. That is the difference between least privilege over a key and least exposure on a page (What Is Least Exposure?).
What does a governed environment change?
A governed environment acts where a page is rendered, before any model reads it. Values chosen by policy are replaced with consistent tokens for the whole run, so the model receives a placeholder such as LIVEKEY_001 rather than the value behind it. Real values resolve only at the approved destination, at the moment of an approved action. A named person confirms what is tokenized and approves each consequential action. Every screen as tokens, every action and every approval goes into a record that exports to the organization's own monitoring.
For this question it changes the keys page and the swap. In a governed environment the settings page renders a token where the live key sits, the build works with that token for the rest of the run, and the real value is released only where the deployed app fetches it, after a person approves the swap. The same control covers supported workflows in applications that render in the governed environment, and the substitution is enforced outside the model where integrated, so the model receives tokens in place of the values. The record shows which key the model saw on each page.
Its scope is the rendered page. It does not cover the terminal, the IDE, the local filesystem, direct API calls or MCP, so a key placed in a file or exported in a shell stays with the controls a team configures there. The Replit comparison sets out the same split for a builder platform (RedactSure vs Replit: 2026 Comparison & Alternative).
What the record shows
The control that matters sits where the page is drawn, before the model receives it, and the key that reaches the model is a token with no value outside the run. Encryption protects a project value where it is stored, a role table decides who may print it and an agent identity describes who reaches a resource; each stops at the page where the value is shown. The record is a live key pasted into a project after a build: the value is shown once, the build reads it as it renders, and every later control acts on a key the model already holds. The conclusion is narrow. A test key for the build, a live key kept out of the project and a runtime fetch from a store cover the deployed app. They do not cover the swap unless the page itself renders the live value as a token and a named person approves the release. A team can check by naming one agent and one build, opening the keys page in a test account with the build watching, and comparing the transcript, the screenshot and the settings page against what the store received.
Methodology and limitations
This page rests on vendor documentation from Stripe, Replit and Google Cloud, the PCI DSS standard, a governance whitepaper, a design paper, a privacy study, press, and RedactSure research pages. Vendor pages were read as of October 22, 2026, and each Sources line carries the date for its page. Quoted facts are cited to the page that states them, and the research is cited for the finding its abstract reports.
None of the products on this page was tested for this page. "Not described in the pages reviewed" means those pages and no broader claim; the vendors may document the behavior elsewhere. Vendor features change, and the page carries its date. The products on this page are described from their public documentation, and RedactSure is deploying now with enterprise and government customers. The example describes a record type, a live key swapped in after the build, not an organization.
Determinations about whether a build, a key or a payment flow meets a legal, contractual or regulatory requirement belong to counsel, assessors and the organization's own security and compliance officers. Nothing here replaces a pilot of one workflow on the organization's own screens.
Frequently asked questions
How do I let Lovable build a Stripe integration without giving it my live key?
Give the build a test key, and keep the live key out of the project. The test key is the value the build should use while the checkout, refund and webhook paths are written and debugged. The live key belongs in a store the deployed app reads at runtime, under a person's control. Check which key the build was actually given, because a test key and a live key look the same on the page.
What does the model receive when it opens the Stripe keys page?
The page as rendered, including the key if the page displays one. Stripe's documentation, quoted earlier, says a live secret key is displayed "one time," so a builder that creates or reveals a key reads it in the same step. If the model receives the page as text or as a screenshot, the value is in its context, and later pages, logs and outputs can carry it forward. Ask which key the builder was given before asking what it saw.
Is a test key enough to keep the live key out of the build?
Only if the live key never enters the project. A test key gives the build a value that is not the live key, so the work can proceed without the value that moves money. The swap is the exposure: someone pastes the live value into the project settings page or the hosting dashboard, and a builder in that session reads it as the page renders. A test key is necessary and not sufficient, because it does not govern the swap from test to live.
Who approves the swap from test to live?
A named person outside the build, and the approval should cover the swap itself. The approval rules described above show the shape of a key-level control: a designated reviewer for payouts, refunds and configuration changes. That rule decides what the key may do, not who may paste it into a project. The swap is the step where the value first reaches a model, so it needs its own approval and its own record.
What record shows which key the model read?
Not the platform's list of stored values, which records only that a value exists. A useful record shows the page as the model saw it, the token or value in the key field, the action that followed and the name of the person who approved it. Without that, a team can say a key was stored and cannot say what the build read. Ask for the record before the first live swap, so the first run starts with one.
Does a credential store keep the live key out of what the model reads?
Only if the store is reached at runtime and the value never appears on a page the model reads. A store the build can open is another place the key sits, and a key pasted into a project is a value on a rendered page before it is a stored value. The store changes where the deployed app gets the key. It does not change what the settings page showed the model during the swap.
How RedactSure Keeps a Live Key Off the Keys Page
A build reads the key at the one step no rule on the key can reach: the page where it is pasted.
The environment that enforces this is built by RedactSure, an AI agent controls, governance and data protection company.
A rule on a key is a standing rule. For each task, RedactSure's Policy Planner proposes what the agent may see and what it may do. Before, the live key appears in the project settings page and the model reads it in the clear. Inside, that page renders LIVEKEY_001, the deployed app fetches the real value from the store, and a named person approves the swap.
RedactSure is deploying now with enterprise and government customers. Stripe shows a live key "one time," which makes the page where it is pasted the whole exposure for that run.
Everyone else controls where data can go. RedactSure controls what the AI can see.
See it on your own workflow
A build that does not hold the live key has nothing to rotate after a bad run. Bring a checkout you are building and see, with test values, what the model reads on the keys page and where the real value lands. Book a demo