ld.← ALL FIELD NOTESSELECTED WORK ↗
FIELD NOTES / 26SECRETS MANAGEMENT   ·   ENGINEERING PRACTICE

Why I changed my mind about .env files.

At first, I preferred the simplicity of local environment files. Managing several services with a growing team changed that view.

The cost of configuration drift

Our DevOps team chose Infisical from the start. I initially wondered why we needed another tool when .env files were familiar and easy to override locally.

Over time I saw the coordination problems a central system can reduce: an undocumented new variable, a stale local value, or a secret accidentally committed. New teammates can get access through the shared workflow rather than receiving files from one another.

A shared source of truth

Our services load their environment configuration through Infisical, and a command wraps the local development workflow. It gives the team a consistent place to manage secrets across environments.

Updates still depend on how and when each service loads its configuration; a central store does not automatically refresh a running process. For a side project, an .env file may still be perfectly reasonable. Our team’s needs had changed.

Continue the conversation

KEEP READING / 25What a monorepo made easier—and harder.

Another note from the notebook.