Latest
Cloudflare acquires Varlock, the open-source secrets management toolkit
Image: Cloudflare

Cloudflare acquires Varlock, the open-source secrets management toolkit

Chat about this article with your favourite AI tool

Cloudflare has brought Varlock, an open-source toolkit for managing environment variables and secrets, into the company. Cloudflare said Varlock will keep being actively developed, stay under the MIT license and remain vendor-neutral.

The companies said they will invest in an open standard for environment configuration. They will also bring Varlock’s approach to Cloudflare Secrets Store and the rest of Cloudflare’s Developer Platform.

Cloudflare and Varlock announcement graphic for the secrets management acquisition
Image: Cloudflare

A schema for environment variables

Cloudflare said most projects have no single source of truth for configuration. Developers often piece together what an app needs from a stale .env.example file, a README, custom validation code and scattered comments. API keys sit in plaintext .env files on laptops, get passed around in chat and end up copied into several dashboards.

Varlock replaces .env.example with a .env.schema file that is committed to Git. It uses JSDoc-style decorator comments, such as @required, to declare types and rules. A function syntax loads secrets from external vaults or encrypted local files, with 1Password given as one example.

Cloudflare said the schema layer adds validation, type safety, declarative secret loading and extra security guardrails. It also lets coding agents work with environment variables without leaking the values.

Cloudflare and Varlock announcement graphic for the secrets management acquisition
Image: Cloudflare

What changes for Varlock

Cloudflare pointed to its earlier acquisitions of Astro and VoidZero, the team behind Vite and Oxc, as evidence that it supports open-source developer tools and stays neutral. Varlock will continue to ship first-party plugins for popular secret vaults and frameworks.

Much of the roadmap is unchanged. Planned work includes:

  • Better agentic workflows
  • Deeper language support beyond JavaScript
  • Improved native encryption utilities
  • SOPS-style team vaults that need no external backend

One thing does change. The effort that would have gone into a hosted Varlock product will now go into Cloudflare Secrets Store and into improving how config and secrets are handled across Cloudflare’s platform.

Pushing an open standard

Cloudflare also wants .env.schema and the @env-spec syntax to outgrow Varlock. It plans to promote them as an open standard that other technologies can adopt, and said it will need help from outside the company to do so.

Secrets in the age of AI

Cloudflare said AI-assisted development has made long-standing secrets problems much harder to ignore. There is more code and more secrets than before. AI also brings new exploit types such as prompt injection, and speeds up traditional vulnerabilities and supply chain attacks. A new wave of builders using AI tools is also meeting API keys for the first time.

The company said secrets management, identity and access need rethinking for the agentic era. Areas it is working on include:

  • Credential brokering
  • OpenID Connect (OIDC) and bot identity
  • Better machine flows for issuing and rotating secrets
  • More guardrails and stronger boundaries
  • Human-in-the-loop approvals

Cloudflare said it may eventually move away from most long-lived secrets altogether, though it called the road there long and bumpy.

Getting started

Developers can try Varlock through the Cloudflare Workers integration guide, or point a coding agent at the project’s documentation. Cloudflare said more updates for both Varlock and Cloudflare Secrets Store are coming in the next few months. Financial terms of the deal were not disclosed.

Source: Cloudflare Blog