Skip to main content
HashiTalks 2025 Learn about unique use cases, homelab setups, and best practices at scale at our 24-hour virtual knowledge sharing event. Register
Presentation

8 Best Practices for Writing Secure Go Code

Learn 8 for writing secure code in Golang from engineers at Snyk. Learn 8 for writing secure code in Golang from engineers at Snyk.

»The 8 Best Practices

The video will explain each of these suggested best practices for securing Golang code from Snyk.

1. Use reflection sparingly

2. Defend against injection

3. Use HTML/template

4. Subshelling

5. Vulnerability scanning

6. Avoid unsafe and cgo

7. Use standard crypto packages

8. Minimize the container attack surface

More resources like this one

4/11/2024FAQ

Introduction to HashiCorp Vault

Vault identity diagram
12/28/2023FAQ

Why should we use identity-based or "identity-first" security as we adopt cloud infrastructure?

3/28/2023Presentation

Hidden Hazards: Unique Burnout Risks in Tech

3/28/2023Presentation

Vault and Boundary - Managing Secrets at Home