
Varlock joins Cloudflare while remaining open source and vendor neutral
Varlock, an open-source toolkit for environment variables and secrets, is joining Cloudflare. It will remain MIT licensed and vendor neutral as work continues on its schema format and Cloudflare Secrets Store.
Varlock, the open-source toolkit for managing environment variables and secrets, is joining Cloudflare. Cloudflare says Varlock will remain actively developed, open source under the MIT license, and vendor neutral for everyone. The teams are investing in an open standard for environment configuration and bringing Varlock's first-principles approach to Cloudflare Secrets Store and the rest of Cloudflare's Developer Platform.
Why environment variables need a schema
Cloudflare notes that secrets management underpins almost every application, but most projects lack a single source of truth and rely on bespoke logic to load and validate configuration. It says coding agents have turned this fragile chore into an immediate security risk. Teams often piece together required variables from a stale .env.example file, a README, custom validation code, and scattered comments. Sensitive API keys sit in plaintext .env files on developer laptops, move over chat messages, and end up in multiple dashboards, while key rotation is delayed until something leaks.
Varlock replaces .env.example with a .env.schema file committed to Git. It uses JSDoc-style decorator comments, such as # @required, to declare types and rules, and a new function syntax to load secrets securely from external vaults or encrypted local files. Cloudflare says this adds validation, type safety, secure declarative loading, a single source of truth, security guardrails, and a safe way for agents to interact with environment variables without leaking values.
Open source plans and Cloudflare Secrets Store
Varlock is not going away. Cloudflare points to its acquisitions of Astro and VoidZero as a track record of supporting open source developer tools and staying neutral. Varlock will remain open source under the MIT license and is committed to being a flexible open toolkit with first-party plugins for popular secret vaults and frameworks.
Much of the Varlock roadmap will not change. Cloudflare says better agentic workflows, deeper language support outside JavaScript, better native encryption utilities, and SOPS-style team vaults without an external backend are in the works. The effort that would have gone into a hosted Varlock solution will now be redirected into Cloudflare Secrets Store and improving config and secret handling across Cloudflare's platform. Cloudflare also wants .env.schema and the @env-spec syntax to outgrow Varlock and become an open standard.
Secrets in the age of AI
Cloudflare says these problems are not new, but the rise of agents and AI-powered development has amplified them. AI introduces new exploits, such as prompt injection, while accelerating traditional vulnerabilities and supply chain attacks. A new wave of builders using AI tools is encountering API keys for the first time, so secrets management, identity, and access need to be rethought for the agentic era.
Cloudflare lists credential brokering, OpenID Connect and bot identity, better machine flows for issuing and rotating secrets, more guardrails, stronger boundaries, and human-in-the-loop approvals as areas it is working on. More is coming for Varlock and Cloudflare Secrets Store in the coming months.
Sources: The Cloudflare Blog · thenewstack.io
SiTech — AI-powered web development
We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.