Cloudflare says open-source secrets toolkit Varlock is joining the company

Cloudflare says Varlock, a tool for handling environment variables and secrets in applications, will stay open source under the MIT licence and remain vendor-neutral.

Numbers in brackets link to the sources listed below.

Cloudflare announced that Varlock, an open-source tool for handling environment variables and secrets, is joining the company[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]]. Environment variables are named values that a program reads from its surroundings when it runs. Cloudflare says Varlock will continue to be actively developed, stay open source under the MIT licence and remain vendor-neutral[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]].

In its blog post, Cloudflare describes the problem the tool targets. To find out what configuration values an application requires, the company says, developers typically have to gather clues from several places: a stale example env file, the README, bespoke validation logic, and notes scattered throughout the repository[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]]. The company also says sensitive API keys often sit as plaintext in .env files on developers' laptops, get passed along in chat messages and end up pasted into several dashboards[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]].

How the tool works

According to Cloudflare, Varlock swaps the .env.example file for a .env.schema file that teams commit to Git[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]]. Cloudflare says types and rules are declared in that file through decorator comments modelled on JSDoc, for example # @required[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]]. Git is a version control system that tracks changes to source code.

Cloudflare says this schema layer adds validation, type safety and a single source of truth, and gives coding agents a safe way to work with environment variables without leaking values[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]]. The company adds that AI-assisted development has amplified these long-standing problems, and it names prompt injection as one new class of exploit[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]].

What changes under Cloudflare

Cloudflare says work that was headed toward a hosted version of Varlock will instead go to Cloudflare Secrets Store and to improving how configuration and secrets are handled across its platform[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]]. It cites its recent purchases of Astro and of VoidZero, which it says is the team behind Vite, Oxc and more, as evidence of a track record of backing open-source developer tools while staying neutral[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]].

The company says much of the existing Varlock roadmap is unchanged. According to Cloudflare, work is under way on better agentic workflows, broader support for languages beyond JavaScript, improved built-in encryption tools and team vaults in the style of SOPS that need no external backend[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]].

Cloudflare also says it wants the .env.schema format and @env-spec syntax to extend beyond Varlock and be pushed as an open standard across many technologies[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]]. It says that effort will need help from outside the company and asks interested parties to get in touch[1The Cloudflare BlogVarlock is joining CloudflareOpen sourceSources [1]].

Sources

  1. 1
    Varlock is joining Cloudflare

    PrimaryThe Cloudflare BlogAccessed

ITANU’s newsroom system produced this article with AI and checked it against the sources listed above. How we work

ITANU Magazine

AI, computing and science news