Technology

Varlock joins Cloudflare with a schema for secrets

Varlock is joining Cloudflare with a schema that validates environment variables and gives coding agents a safer way to handle secrets.

StartupHub.ai Staff

By StartupHub.ai Staff, reviewed by Daniel Singer, Editor

3 min read

Varlock environment variable schema connecting a coding agent to Cloudflare Secrets Store
Credit: Cloudflare

Key facts

  • Varlock is joining Cloudflare and will remain open source under the MIT license
  • Varlock replaces .env.example with a .env.schema file committed to Git
  • Hosted Varlock work will move into Cloudflare Secrets Store

Environment variables are the settings a runtime hands to an application, from an API address to a Stripe key. Teams often reconstruct them from a stale .env.example file, a README and scattered validation code, while plaintext keys move through laptops, chat messages and dashboards.

That maintenance chore is now an agent-security problem.

Varlock, an open-source toolkit for environment configuration and secrets, is joining Cloudflare, which says the toolkit will remain actively developed, open source under the MIT license and vendor-neutral. Work that would have gone into a hosted Varlock product will instead feed Cloudflare Secrets Store and configuration handling across its developer platform.

Cloudflare points to its Astro and VoidZero acquisitions as evidence that it can support neutral open-source tools. It disclosed no purchase price or specific ship date for the Secrets Store work.

The mechanism starts with a schema, a machine-readable description of required configuration, stored in a .env.schema file committed to Git instead of .env.example. JSDoc-style decorator comments, metadata attached to a setting, add rules that software can check.

Cloudflare's example types API_URL as a URL. For STRIPE_SECRET_KEY, it adds # @required, # @sensitive, a string rule starting with sk_ and a link to Stripe's key documentation.

Loading is separate from validation: op("op://prod/stripe/secret-key") can retrieve the value through Varlock's 1Password plugin instead of storing it in the schema. WPNews ties decorators such as # @required and # @sensitive to the resulting agent boundary, a validated source of truth that does not expose secret values.

A coding agent can therefore discover that a Stripe key is required without receiving every credential. That does not stop prompt injection, where hostile text tries to steer an agent into unsafe actions, or prevent a compromised tool from abusing access it already has.

Varlock's harder work starts after validation

Varlock still has to turn a useful file format into a broader standard and rethink how credentials are issued. Its roadmap keeps better agent workflows, support beyond JavaScript, native encryption utilities and SOPS-style team vaults, meaning shared encrypted stores that need no external backend.

Theo Ephraim and Brendan Irvine-Broque, who wrote the announcement, want .env.schema and the @env-spec syntax adopted outside Varlock, with help from beyond Cloudflare. Cloudflare's unfinished list includes credential brokering, OpenID Connect and bot identity, machine-driven issuing and rotation, and human approval for sensitive actions.

OpenID Connect is a standard for verifying identity across services. Until those controls mature, a schema can describe a long-lived key without settling who may use it, when it rotates or which actions need approval.

Developers can try Varlock's Cloudflare Workers integration now and keep using other vault plugins. Watch whether frameworks and competing platforms implement @env-spec; adoption outside Cloudflare, not the acquisition itself, will decide whether this becomes a shared standard.

Sources

TopicsCloudflareVarlockCloudflare Secrets StoreCloudflare Workers.env.schema@env-spec1PasswordOpenID Connect

StartupHub.ai StaffDaniel SingerWritten by StartupHub.ai Staff, Editorial teamReviewed by Daniel Singer, EditorAbout

StartupHub.ai Staff, Editorial team

The staff writers of StartupHub.ai, ranging from investment analysts to avid AI tool users, early adopters and critical enthusiasts. Backgrounds span engineering, business and the arts. We hold every piece to rigorous standards of research and review.

Daniel Singer, Editor

Daniel Singer is an AI expert who has been writing about, covering and building AI technology since 2018.

More from Daniel Singer

Get the free daily brief every morning

Every morning the day's AI news, new AI startups and new funding rounds. Free and takes a few minutes to read, unsubscribe at any time.

Join 64,000 other subscribers.

Test your Agent Readiness now

Paste your website. How well ChatGPT, Claude and the other agents can read and use a site, in about a minute.

The videos behind the news, one flip at a time

The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.