Writing Secure Go code

AppsFlyer ∴ 2022

Miki Tebeka miki@353solutions.com, @tebeka, mikitebeka, blog

Shameless Plugs

Agenda

  • Common security threats (OWASP top 10)
  • Avoiding injection
  • Secure HTTP requests
  • Avoiding sensitive data leak
  • Handling secrets
  • The security mindset and adding security to your development process

Terminal Log

Links

Data & Other

  • ./run-db.sh
    • Will start postgres on port 5432
  • docker exec -it <ID> psql -U postgres
    • or pgcli -p 5432 -U postgres -h localhost
  • curl -d@_ws/add-1.json http://localhost:8080/api/journal
    • Try with add-2.json and add-3.json
  • openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj /CN=localhost