Deals & IPOs

Cloudflare Buys Varlock to Shield Secrets From AI Coding Agents

Cloudflare acquired open-source secrets toolkit Varlock on December 2, 2026, keeping it MIT-licensed so .env.schema can become a shared standard for AI agents that must use secrets without seeing them.

By Olivia Hart

3 min read

Cloudflare Buys Varlock to Shield Secrets From AI Coding Agents
TayebMEZAHDIA / pixabay

What's News

  • Cloudflare announced the Varlock acquisition on December 2, 2026; deal terms were not disclosed.
  • Varlock stays MIT-licensed and vendor-neutral; its team will work on Cloudflare Secrets Store instead of a standalone hosted service.
  • The .env.schema approach lets AI coding agents use secrets without being exposed to their raw values.
  • Cloudflare cites prompt injection and supply-chain attacks as reasons to tie secrets management to identity controls.
  • The stated goal is making .env.schema and @env-spec an open standard adopted beyond Varlock itself.

Cloudflare announced on December 2, 2026 that Varlock, an open-source toolkit for managing environment variables and secrets, is joining the company — and it will keep its MIT license and vendor-neutral stance rather than becoming another hosted service.

The deal puts a schema-based answer behind a problem Cloudflare frames as urgent: AI coding agents now touch application configuration constantly, while the secrets behind those applications still sit in plaintext .env files, pass through chat messages, and get copied into multiple dashboards. Terms of the acquisition were not disclosed, and Cloudflare has said nothing about Varlock's revenue, headcount or user base — the open-source roadmap is the entire substance of the announcement so far.

What does Varlock actually change?

Varlock replaces the familiar .env.example file with a .env.schema file committed to Git. JSDoc-style decorator comments — including @required — declare variable types and rules, while function syntax loads secrets from external vaults or encrypted local files.

The committed schema describes requirements and loading instructions without containing raw credentials. Cloudflare says the resulting layer delivers validation, type safety and declarative secret loading in one place, with guardrails that let coding agents interact with environment variables without leaking their values. In plain words: the agent can use the key without ever seeing it.

Cloudflare's diagnosis of the status quo is blunt. Environment configuration today is fragmented across stale .env.example files, READMEs, custom validation code and comments scattered through repositories. That sprawl makes key rotation easy to defer — until something leaks.

Why do AI agents raise the stakes?

Cloudflare says AI-powered development has increased both the amount of code and the number of secrets developers handle. Prompt injection adds a new class of exploit, while AI accelerates the pace of traditional vulnerabilities and supply-chain attacks. At the same time, newcomers building with AI tools are encountering API keys for the first time — often without the habits that long-time developers learned the hard way.

Those pressures push Cloudflare to tie secrets management to identity and access controls. The company says it is working on:

  • Credential brokering, OpenID Connect and bot identity
  • Machine flows for issuing and rotating secrets
  • Stronger boundaries and human-in-the-loop approvals

The longer-term aim: enabling development without most long-lived secrets at all. That is a promise, not a shipped product — Cloudflare describes this work as ongoing, and no timeline appears anywhere in the announcement.

Where does the code go now?

Varlock will remain actively developed under its MIT license. Work that would have gone into a standalone hosted Varlock service will instead support Cloudflare Secrets Store and improvements to configuration and secret handling across Cloudflare's Developer Platform — a trade that gives Cloudflare the engineering and gives up the standalone commercial product.

The team says the roadmap still includes:

  • Agent-oriented workflows
  • Support for more programming languages beyond JavaScript
  • Stronger built-in encryption tools
  • Team vaults that do not require an external backend
  • First-party plugins for popular secret vaults and frameworks

The stated goal is for .env.schema and the @env-spec syntax to become an open standard adopted beyond Varlock itself, with participation from outside Cloudflare. Vendor neutrality is the stated condition for that: broader adoption would let the same configuration format work across tools instead of tying it to one hosted service. Whether outside vendors actually adopt a format stewarded by Cloudflare is the open question the announcement cannot answer.

What is this worth?

The acquisition adds a configuration layer to Cloudflare's security work, not a revenue line. Its significance rests on two tests neither party can guarantee today: whether .env.schema becomes a shared format across tools, and whether the guardrails genuinely reduce agents' exposure to raw, long-lived credentials as development activity keeps growing. Until outside tools adopt the schema, this is a Cloudflare platform improvement wearing the clothes of a standard.

Source: unite.ai

Share this article:

More from Olivia Hart

Olivia Hart

Show full bio

Staff writer covering people, launches and day-to-day practice in entrepreneurship, startups and venture funding at Business Bearings.

2,993 articles

Related articles

« Previous articleNext article »