DEV Community

Discussion on: 4 Reasons Not To Use Environment Variables

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

Secrets should always be stored in environment variable

JSON is also bad for storing configuration data : no comments allowed, people almost never provide a JSON schema.

YAML has a different set of problems.

I tend to use TOML or properties files for simple stuff.

Collapse
 
bentorvo profile image
Ben Brazier

Storing secrets in environment variables doesn't improve security.

This article isn't about the differences between JSON/YAML/TOML.

Collapse
 
nombrekeff profile image
Keff

Neither does storing them in JSON/YAML, in terms of security they're mostly the same