PART IV: Writing Secure Code & More

The first and most important step in reducing security and reliability issues is to educate developers. However, even the best-trained engineers make mistakes, security experts can write insecure code and SREs can miss reliability issues. It’s difficult to keep the many considerations and tradeoffs involved in building secure and reliable systems in mind simultaneously, especially if you’re also responsible for producing software.

Use frameworks to enforce security and reliability while writing code

Common Security Vulnerabilities

image26

Write Simple Code

Try to keep your code clean and simple.

Avoid Multi Level Nesting

Eliminate YAGNI Smells

Repay Technical Debt

Refactoring

Unit Testing

Fuzz Testing

Integration Testing

Last But not the least