Skip to content
redactsure
Book a demo

Explore.

Data Report · RedactSure Research
Chris Sowa · Founder, RedactSure
Published
Last updated

Does Lovable See the Supabase Keys It Configures?

Not by default: a Supabase service role key that a builder agent configures passes through the agent's context on its way into the project, and no builder page reviewed here describes a path that keeps it out. Ask the vendor where the value is entered, what the model receives and whether the key can be read back.

A credential reference travels from a browser record through a bounded route to a separate API destination.

A team that ships an app on Supabase has to put a key in the app, and the builder agent that writes the integration is usually the component that supplies it. The agent opens the project page that displays the key, copies the service role value, and writes it where the app will read it at deploy. From that moment the value sits in the model's context beside everything else the run produced, and a later summary, commit message, support thread or config file can carry it further. A builder that has a person paste the key into an environment settings page the agent never reads draws a different boundary, and the encryption a platform advertises for stored values does not move that boundary. Where a value is kept has a documented answer on most platforms; what a model is given when it uses the value is usually left to the application. This means a team can point to an encryption claim, a role rule and a display rule and still have no answer to what its build read. The team that finds out which one it bought can tell its customers where the key went. One throwaway key, entered three ways, shows the difference.

Key findings

  • For a service role key to stay out of a builder agent's context, the value on the settings page would have to be replaced with a consistent token before any model reads it, and the real key released only at the destination a named person approved (What Is Render-Layer Tokenization?).
  • It would also require a named person approving the change that uses the key and a record of what the model received, because a key on a settings page stays in the context of every step that follows (How Do You Let an AI Agent Manage API Keys Without Reading Them?).
  • None of the pages reviewed describes what a builder agent receives when it configures a Supabase key, and the one vendor page on agent requests documents authentication while leaving the token handling out (SAP Learning, 2026).
  • Replit's Secrets page states that the tool "automatically encrypts the data and makes it available to your Replit project as an environment variable," a control over how a stored value is kept and delivered (Replit, 2026).
  • A Columbia DAPLab incident list records one agent that "deleted PocketOS's production database via a single rogue API call" and adds that the same happened to a builder's project: "So did Replit's agent last July even when instructed not to" (Columbia DAPLab, 2026).
  • Chan and colleagues propose "agent identifiers, real-time monitoring, and activity logging" as the measures that make agent activity visible, which is the shape of record a configured key would need (Chan et al., 2024).

What does the agent receive when it configures a Supabase key?

The record for this page is a service role key on its way into an env file. Two surfaces are involved: the project page that displays the key, and the place the value lands, whether that is the builder's environment settings page or the env file the agent writes. A value the agent never reads cannot be repeated in a summary, and a value it reads is in the context for the rest of the run, including every later step that touches the project.

A governed environment covers what an agent reads and does on a rendered page: a dashboard, a console, a settings page, a sign-up form. It does not cover the terminal, the IDE, the local filesystem, direct API calls or MCP. The boundary cuts through this record. The project page that prints the key is inside it; the env file the agent writes with a shell command is outside it, and a browser control says nothing about what a command reads from disk. The same value is governed on one surface and ungoverned on the other.

Three routes put the key in the project, and each hands the model something different. A person pastes the value into the builder's environment settings page while the agent is not reading that page, and the model receives nothing; the exposure moves to whether the agent can open the env file later. The agent is asked to wire the integration, so it opens the project page, reads the value and writes it into the file, and the model receives the key twice, once as the page it read and once as the text it wrote. A third route has the agent create the key itself, which is its own question.

Which route a builder's agent takes is a question for the vendor, and the answer is a sentence about the page, not about the model. Is Replit Agent Safe With Your API Keys? puts the same question to another builder, and the shape of the answer is the same: name the page, name what the agent is given there, and name the step that keeps the value out.

Where does the key go once the agent writes it into the project?

The value lands in the project's environment: an env file the app reads at start, an environment variable the platform sets, or a configuration page the deploy reads. Whatever the form, the running app can read it, and so can anything with access to the project. Replit's page says a member without the Owner role "can access their values by printing the environment variables" (Replit, 2026). Hiding a value on the page a person sees does not hide it from a process that runs in the project, and an agent working in that project is such a process.

The model's copy is the second destination, and it arrives before the file. Anything in the context is sent to the model for that request, which is why the route the value takes matters more than the store it lands in (Does My AI Vendor See the API Keys My Coding Agent Reads?). Once the value is in that context, later text can repeat it: a summary the agent writes, a diff it proposes, a commit message it drafts, a note it leaves for the next person. Siddiqui and colleagues found that "poisoned data retrieved from one component can change the model's behavior and compromise the entire system," including coercing the model to spread confidential data to untrusted components (Siddiqui et al., 2025).

A buyer should ask for the route in writing, and the reason is not only technical. Accenture's Technology Vision survey reports that "77% of executives believe unlocking the true benefits of AI will only be possible when it's built on a foundation of trust," a figure that explains why the boundary question comes up in procurement as well as in engineering (Accenture, 2025). The answer the vendor gives names the page where the value is entered and the step that keeps it from the model.

What do the vendors themselves say?

The vendor pages in the record describe where a credential sits, who may see it, how a stored value is encrypted and how an inbound request is authenticated. Each answers a question about storage, display, transport or admission rather than about what an agent is given when it configures a key.

Replit's Secrets page is the closest credential documentation in the record, and it is explicit about its own shape. The tool "automatically encrypts the data and makes it available to your Replit project as an environment variable," and the page lists "AES-256 encryption at rest and TLS encryption in transit" (Replit, 2026). Its visibility table is a permission rule: a member without the Owner role "cannot view secret values in a Replit project, but can access their values by printing the environment variables" (Replit, 2026). That pair of sentences is the most useful thing on the page for this question, because it separates what the interface shows from what a process in the project can obtain.

Dimension The vendor pages, per their documentation What a buyer should verify
Where the value is stored Replit "automatically encrypts the data and makes it available to your Replit project as an environment variable" (Replit, 2026) Whether the agent's own tool calls read the environment
Encryption Replit lists "AES-256 encryption at rest and TLS encryption in transit" (Replit, 2026) That these cover storage and transit, not the context
Who may view it Replit: members without the Owner role "can access their values by printing the environment variables" (Replit, 2026) Whether a display rule or a read is the exposure you care about
What the agent may do Coder: "use separate identities with limited scope whenever interacting autonomously" (Coder, 2026) Whether the rule is set per task or per identity
How a request is authenticated SAP: inbound A2A requests route through Joule via the Agent Hub, which "enforces authentication and authorization" (SAP Learning, 2026) Token handling for that request, which the course does not document

These are controls over stored data and the network path. Encryption at rest governs the value where it sits, TLS governs it in transit, the role rule governs who may display it, and the Agent Hub governs admission to an inbound request. None of them is a statement about the rendered page where an agent reads or types a key, and none of them substitutes a token for the value in a model's context. The page covers project and account credentials; it does not describe an agent's handling of a key it configures. Coder's guidance sits on the same side of the line: a separate identity with limited scope changes what the agent may do, and the read that put the value in its context has already happened.

Why does an encrypted credential store not settle what the model reads?

A store is judged by how it keeps a value, and a read is judged by what it returns. Those are different events in an agent's run, and the storage question comes second: the page is rendered, the agent reads it, the value is in the request, and only then does anything about storage apply. Encryption at rest and TLS in transit answer what happens to a value once the platform holds it. They do not answer what the model was given on the way in.

Role rules are standing rules. Replit's visibility table decides which member may view a value in the project, and Coder's guidance decides which identity an agent runs under. Both bind a person or an identity across everything that person or identity does. A task that needs one key for one change is a different scope, and a standing rule cannot express it: the rule either lets the identity print the variable for every task or it does not, with no step that says this task and not the next.

That is why "the key is encrypted" and "the key is not in the model" can both be true. The store did its job on a copy the platform holds, and the agent's read did its job on a copy the model holds. A buyer who asks only the first question gets a true answer that does not cover what the agent read. The page that would settle it is the one where the value is entered, and the sentence to ask for says whether a token stood in for the value on that page before the agent saw it. Can a Browser Agent Read an API Key It Just Generated? shows what that design looks like when the value is typed rather than displayed.

Can the agent read the key back from the environment?

Yes, if the agent's tools can open the file or print the project's variables. A builder agent works inside the project: it can read an env file, run a command that echoes an environment variable, or ask the platform for the value. Replit's page documents the print path for a member who cannot even view the value, which is the clearest recorded statement that the read is a separate permission from the display (Replit, 2026).

The authority that comes with the key is the part worth weighing. A Columbia DAPLab incident list records one agent that "deleted PocketOS's production database via a single rogue API call" and adds that the same happened to a builder's project: "So did Replit's agent last July even when instructed not to" (Columbia DAPLab, 2026). OWASP's agentic threat reference is "a threat-model-based reference of emerging agentic threats," which catalogs what an agent can do rather than what it reads (OWASP, 2025). An instruction not to act did not stop the agent in that record. A value the agent never read is not available to be misused.

What would show the read happened is a record. Chan and colleagues propose "agent identifiers, real-time monitoring, and activity logging" as the visibility measures, and a read of the environment is the kind of event those measures would have to capture (Chan et al., 2024). Without one, a team learns about the read from its consequences, which arrive as a changed deployment, a support ticket or a bill. Can a Coding Agent Escalate Its Own Permissions? sets out the permission side of the same question, where an agent asks for more access than the task needs.

What does a governed environment change?

A governed environment changes what the model is given, not only where the run is allowed to go. The page the agent reads is drawn with the values a policy names replaced by consistent tokens, so a service role key renders as KEY_001 and the model works with that string for the whole run. The real value resolves only at the approved destination, at the moment a named person approves the action that needs it. Every screen as the model saw it, every action and every approval land in a record the customer exports. Because the substitution happens before any model reads the page, the control works with any model, and a change of model does not change what the page shows.

The design has a defined edge. Its scope is the rendered page the agent reads and acts on: a dashboard, a console, a settings page, a sign-up form. It does not cover the terminal, the IDE, the local filesystem, direct API calls or MCP, which is why the env file in the first section needs a second answer, a scoped key and a workspace that does not hold production values. A team that governs pages still has to settle the file.

The research places the control at the boundary where a tool's input and output cross, described as "a simple, modular, and model-agnostic defense operating at the agent-tool interface" (Bhagwatkar et al., 2026). A store sits later, on a copy the platform keeps. What separates the two designs is sequence: the value is replaced before the read, released at the destination a person approved, and written into a record. RedactSure vs Replit: 2026 Comparison & Alternative compares the two designs for a builder platform.

What the record shows

The control that decides this question sits before the model reads anything: the value on the rendered page replaced with a consistent token, the real key released only at the destination a named person approved, and a record of what the model received. A store is judged by how it keeps a value at rest and on the wire, a role rule by who may display it, and an encryption claim after the read. For a builder agent configuring a Supabase key, the answer follows the route: a person who pastes the value into a settings page the agent does not read keeps it out of the model, and an agent that reads the page and writes the file puts it in. The pages reviewed describe the store and leave the route open, and the route is the sentence to get in writing. The test takes one throwaway project: create a service role key on an empty project, ask the agent to configure it, then print the project's environment variables and read the request the model received. If the dummy value appears in either, the boundary was never drawn.

Methodology and limitations

The page rests on public vendor documentation and published research: Replit's Secrets page, Coder's best-practices page, SAP's interoperability course, OWASP's agentic threat reference, a Columbia DAPLab incident list, and three papers on agent security, information flow and agent visibility. Public documentation read in full gives a sound view of where each product applies its control. Vendor pages were read between October 16, 2026 and October 22, 2026, and each Sources line carries the date for its page.

No product on this page was tested for it. The statements are the vendors' own, and "not described in the pages reviewed" means the sentences recorded for a page, not what a product cannot do. Vendor features change, and the page carries its date. RedactSure is deploying now with enterprise and government customers. The example describes a record type, not an organization. Determinations about credential custody and disclosure belong to counsel, assessors and the organization's own security and compliance officers, and nothing here replaces a pilot of one workflow on the organization's own screens.

Frequently asked questions

Does Lovable see the Supabase keys it configures?

Yes, when the agent is the thing doing the configuring. A value the agent reads on a project page, or writes into an env file, is in the model's context for that request, and the pages reviewed describe no step that removes it. If a person pastes the key into an environment settings page the agent never opens, the model receives nothing and the answer changes. The distinction is the route, not the encryption the platform advertises for stored values.

What does the model receive when the agent writes the key into a project?

The page it read and the text it wrote. If the agent copies a service role value from a project page and places it in an env file, both the page content and the file content are in the context, along with the variable name that identifies the value. From there a later summary, diff or commit message can repeat it. Nothing in that sequence substitutes a token for the value, which is why the request the model receives is the thing to inspect.

Where can the agent still read the key once it is configured?

In the project's environment. A value stored in an environment variable is read by the running app and by any process with access to the project, and Replit's own page says a member without the Owner role "can access their values by printing the environment variables" (Replit, 2026). A builder agent working in the same project can take the same step. Hiding a value in the interface is a display rule, and it does not close the read path.

Who approves the agent's use of a service role key?

Usually nobody, in the sense the question needs. A platform may require a person to click through a deploy or a plan change, and that approval covers the action, not the read that put the key in the context. A governed run puts the approver at the action that releases the real value, with the destination written into the policy before the run starts. Without that step, the person approves a command without knowing which value it releases.

What record shows which key an agent configured?

Few vendor pages describe one. A platform's activity log may show that a deployment changed, and the session itself is the only account of what the model read. A record that answers the question lists the page or file the agent opened, the values that were replaced, the tokens the model saw, and the person who approved any use of a real value. That is the record an assessor asks for after an incident.

Should a team give a builder agent a production key?

Not while the key can be avoided. A scoped key that reaches one service and expires limits what a copy is worth, and a separate project for agent work keeps the production value out of the workspace. Where the task needs the production value itself, the stronger move is a control that shows the model a token and releases the real key only at an approved destination. The two measures cover different surfaces.

About the author

Chris Sowa is a founder of RedactSure and a former CEO of an AI company; he started it years before ChatGPT existed. He previously led AI at Accenture, served as Global VP of Strategy & Innovation at Schneider Electric, was CCO of Sovos, and spent more than a decade at Oracle, with earlier roles at SAP and IBM.

How RedactSure Keeps a Configured Key Out of the Agent's Context

An agent that reads a key on a settings page and writes it into an env file keeps it for the run. Replit's page states the limit: a member without the Owner role "can access their values by printing the environment variables" (Replit, 2026).

The environment that enforces this is built by RedactSure, an AI agent controls, governance and data protection company.

Before, the agent copied the key from the project page and wrote it into the env file, where every later step could read it. Inside, the page renders KEY_001, the agent writes KEY_001, and the real key resolves only at the destination a named person approved. For each task, RedactSure's Policy Planner proposes what the agent may see and what it may do.

RedactSure is deploying now with enterprise and government customers.

Everyone else controls where data can go. RedactSure controls what the AI can see.

See it on your own workflow

A key an agent configures stays in its context for the rest of the run. Bring one throwaway key and see, with test values, what the model reads, who approves the release and what the record holds. Book a demo

Book a demo

Book a demo

Having trouble? Open the booking page or email us.