Map Of Content
- Good Code - this is a combination of a few topics
- Writing A Good Library - what to look for in a reusable library intended for external use
- NASA power of ten - are general guidelines for wiring safe and performant code for mission critical components
- How To Prevent Bugs
- Principles
- Fail Fast Principle - fast failure for efficient error handling, if an error state is detected, exit immediately
- Structuring
- Interface Vs Implementation Simplicity - for producing code that is efficient
- Layering - for better structured components that can easily be used and extended
- Write Code That Is Easy To Delete, Not Extend
- Coding
Store secrets in a secret manager
Use secret managers or stores for all your secrets. ^[https://www.nodejs-security.com/blog/do-not-use-secrets-in-environment-variables-and-here-is-how-to-do-it-better]
Downsides of storing them in environment:
- Easily leaked
- Shared between processes
- Poorly maneged
- Not version controlled
- Leaked from logs
- Built into docker images