English edition · cyberattaques.org in FrenchFrançais
IT news

Cloudflare acquires Varlock, the open-source toolkit for environment variables and secrets

Varlock, an open-source toolkit that validates and loads environment variables and secrets, is joining Cloudflare and will stay under the MIT license. Development teams using Varlock or plain .env files, and Cloudflare Secrets Store customers, are the ones affected.

What to do now Illustration photo (developer laptop code configuration)

On 2 December 2026, Cloudflare announced on its blog that Varlock, an open-source toolkit for managing environment variables and application secrets, is joining the company. No financial terms were disclosed. According to the post, Varlock will remain open source under the MIT license, stay actively developed and remain vendor-neutral. Cloudflare points to its earlier acquisitions of Astro and VoidZero, the team behind Vite and Oxc, as precedent.

The project addresses a common gap: most applications have no single source of truth for the configuration they expect. Developers piece the list together from a stale .env.example file, a README or custom validation code. Sensitive API keys sit in plaintext .env files on laptops, get passed around in chat and end up copied into several dashboards. As a result, key rotation tends to be postponed until something leaks.

Varlock replaces .env.example with a .env.schema file that is committed to Git. JSDoc-style decorator comments such as @required, @sensitive and @type declare each variable's type and rules. A function syntax loads secrets from external vaults, for example 1Password through a plugin, or from encrypted local files. The result is validation, type safety and declarative secret loading. The project also presents it as a way for coding agents to work with environment variables without seeing their values.

For existing users, most of the roadmap is unchanged. Planned work includes better agentic workflows, deeper support for languages beyond JavaScript and native encryption utilities. It also covers SOPS-style team vaults that need no external backend. The main change concerns the hosted Varlock service that was planned: that effort now goes into Cloudflare Secrets Store and into configuration and secret handling across Cloudflare's Developer Platform. The post gives no timeline for these changes.

Cloudflare also wants the .env.schema format and the @env-spec syntax to become an open standard used beyond Varlock, and is asking outside contributors to get involved.

The announcement frames the move around AI-assisted development. It cites prompt injection, faster-moving supply chain attacks and a wave of new builders handling API keys for the first time. Cloudflare says it is working on credential brokering, OIDC and bot identity, machine flows for issuing and rotating secrets, and human-in-the-loop approvals. None of these items has a delivery date yet.

Action plan

What to do now

  1. If your projects rely on Varlock, watch its GitHub repository for upcoming changes; the announcement says the MIT license and open development continue.
  2. If you were waiting for a hosted Varlock service, evaluate Cloudflare Secrets Store, where that work is being redirected.
  3. Inventory secrets kept in plaintext .env files or shared over chat, and plan to move them into a vault (general good practice).
  4. To document what configuration your applications expect, consider replacing .env.example files with a versioned schema such as .env.schema.

Sources