Photo by Ethan Bouffard-Roy on Unsplash

When building applications, it’s important to consider up front how you’ll store your application’s configuration. As described in classic Twelve-Factor App, config is considered anything that “varies between deployments”, and often includes values for log levels, feature flags, API hostnames, etc. By managing this configuration outside of the application, we’re more likely to be able to build the application build/container/package once and run it anywhere (multiple environments, with different configs, etc.).

Disclaimer — Avoid using environment variables for secrets

Before we start, a quick disclaimer — don’t use environment variables to store application secrets (database passwords, API keys, session keys, for instance). Environment variables are generally globally available…

Andre Giannico

I’m a full-stack developer with a passion for all technology. I enjoy sharing ideas and collaborating with new people. Feel free to reach out to me!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store