Comment

Comment by throw1234651234

The whole .env file holding all your configs thing is a disaster. People forget to update the template, it has to be passed around, etc.

Configure your secrets in Azure Key Vault (AWS Secrets Manager, GCP-something-I-forget) or whatever the non-cloud Vault software is called.

Devs only set client_id, client_secret, and env defaulted to dev. On startup, the app fetches configs for the secret store. The needed secrets are in source control. If the needed secret is missing from the secret store, there is a clear error on startup.

You are welcome, I just saved you weeks of onboarding, confusion, and devs passing around .envs on Slack.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton