Almost rightLesson 081 min
The password is in the code
A program has its API key typed straight into the file. It runs perfectly, so nothing signals a problem, but code gets shared, and the key travels with it. The fix is to read the key from the environment. The real value stays on the machine that runs the code, and the program stops with a clear error if it is missing.
Remember
Code says what to do; a secret says who you are. Keep them apart.
