Due: Sun, Aug 24, 2025 @ 10:59 PM CDT • 20% weight
Show 3 different ways of using secrets with a simple node app. Don’t keep hard coded or plaintext passwords around if you can help it. Best way is to use a real secrets manager like AWS Secrets Manager, but here we just demo 3 ways.
Make a repo with a simple node app. Hard code one variable (like a fake API key) and use it in your app. Example:
Put a secrets.json
file in your repo. Push it to GitHub. When
I clone your repo and run it, the app should work with those secrets. Then
see if GitHub complains.
No hard coded secrets, no secrets file in repo. Use a .env
file that is not committed. The app should break without it, and in your
README explain what secret is needed.