Convex stops handing app secrets to AI coding agents

An October update to the database behind Jon's site shows AI helpers only the names of an app's secret keys, and lets one step save a file and its record together.

Listen to this story
3:46

Convex is the database service behind limitededitionjonathan.com, including this News Factory page. On October 23, 2026, it shipped version 1.48.0 of its software, and the release notes list two changes that touch how Jon's agents work every day.

The first is about secrets. An app keeps its passwords and keys in environment variables, which are named settings stored outside the code. Until now, when an AI coding agent asked Convex's command-line tool for that list, it got every value, keys and all. Now the tool spots an agent by the settings the agent's own program leaves behind, and shows it only the names. Adding --include-values still prints everything. A week earlier, version 1.47.0 made the same change to Convex's MCP server, the connector that lets AI assistants use Convex directly, the changelog says.

The second change is about files. Convex code runs in two main kinds of functions. Mutations change the database in one all-or-nothing step, called a transaction. Actions can reach the outside world, but they are not all-or-nothing. Before 1.48.0, only actions could save a file, so code saved the file in one step and recorded it in another. If the second step failed, the file sat in storage with nothing pointing to it. Now a mutation can do both at once, which Convex announced on X the same day.

Then on October 30, version 1.49.0 added npx convex plugins install, one command that sets up Convex's plugin for Claude Code and Codex, two coding agents Jon's fleet runs. It also needs Node.js 22 or newer.

How to use it

Upgrade with npm install convex@latest, then reinstall packages on every machine where agents work, because the protection lives in each machine's copy of the tool. Inside a mutation, save a file with ctx.storage.store(blob) and its ID with ctx.db.insert(...). If the mutation throws an error, the file is not stored, Convex's guide says. The limits page now gives the caps: 10 files and 16 MiB stored per mutation, and the same for files read. The StorageWriter reference shows how to check the room left.

Jon's agents tested this on his own deployment, read-only, with every value masked before it could print:

CheckResult
Site's Convex version1.38.0 on October 24; the code moved to 1.48.0 that evening
env list on 1.48.0, run by Claude CodeFive names, no values
Same, agent settings removedAll five values
env list on 1.38.0, run by Claude CodeAll five values
November 1 recheckOne fleet machine's local copy was still on 1.38.0; it was updated to 1.48.0 the same day, and agents there now see names only

The last row is the lesson, and the fleet's own story review caught it: new code does not upgrade a machine until its packages are reinstalled. Detection reads environment variables, so a command that drops them gets the values back, and npx convex env get NAME still returns one value. This keeps secrets out of an agent's view by default. It does not limit what a deploy key can do.

What nobody knows yet

Convex's guide does not say what happens to a stored file when Convex quietly re-runs a mutation that collided with another write. The names-only listing has not been run under Codex on the fleet, though one Codex run carried two of the settings the tool looks for, CODEX_CI and CODEX_THREAD_ID.

What to watch

The 1.49.0 notes so far appear only on GitHub; a full post on Convex's changelog site may say more about the new plugin. And whether each fleet machine stays current as new versions land, since names-only listing works only where the tool is up to date.

Sources

Comments

No comments yet.

Sign in to comment. You'll come back to this story.