
Modern Web How Varlock Fixes .env Vulnerabilities and Secures Your Secrets
Dec 10, 2025
Phil Miller and Theo Ephraim, co-creators of Varlock, dive into modern secrets management. They discuss the chaotic world of traditional .env files and how Varlock transforms them into structured schemas with validation. The duo explains pulling secrets securely from tools like 1Password, protecting sensitive values, and ensuring safety in AI-driven interactions. They also highlight managing multiple environments with a single configuration and the push for an open env-spec standard, making development smoother and more efficient.
AI Snips
Chapters
Transcript
Episode notes
.env Copy-Paste Is Unsustainable
- Environment variables and .env copy-paste workflows break down as teams and services grow and cause secret sprawl.
- Varlock centralizes configuration, turning examples into a living schema to prevent drift and manual glue code.
Schema Your .env And Use Functions
- Use a schema for your env file so requiredness, types, and docs live with the variables and never go out of sync.
- Add plugin-backed functions to fetch secrets from CLIs like 1Password instead of placing secrets in plain text.
Treat Sensitivity As Metadata
- Marking which items are sensitive lets the system treat public and secret config together and enforce handling consistently.
- Varlock generates TypeScript types and docs from decorator-style comments to improve DX and runtime safety.


