Blog: notes on backend, data and AI
Notes on backend engineering, data and building products with AI.
70 posts · page 7 of 7
November 20, 2026 · 2 min read
Least privilege and role-based access control
Give every user and service only the access it needs. Roles make permissions manageable, and server-side checks make them real.
securityauthorization
November 20, 2026 · 2 min read
Dependency vulnerabilities and supply chain basics
Your application is mostly other people's code. Lock versions, scan for known vulnerabilities, update steadily and be wary of what you install.
securitysupply-chain
November 20, 2026 · 2 min read
Managing secrets: keep keys out of code and rotate them
API keys, passwords and certificates need their own lifecycle: stored encrypted, scoped narrowly, injected at runtime and rotated. What to do after a leak.
securitysecrets
November 20, 2026 · 2 min read
CORS explained: what it protects and what it does not
CORS lets a server say which other origins may read its responses in a browser. It is not authentication. Preflight, credentials and common mistakes explained.
securityhttp
November 20, 2026 · 2 min read
HTTPS, TLS and HSTS: what the padlock actually promises
TLS encrypts traffic and proves which server you reached. Certificates, redirects and HSTS make sure browsers never fall back to plain HTTP.
securitytls
November 20, 2026 · 2 min read
Storing passwords: salted hashing with bcrypt or Argon2
Never store passwords in plain text or with a fast hash. Use a slow, salted password hash such as bcrypt or Argon2 so stolen databases are hard to crack.
securitypasswords
November 20, 2026 · 2 min read
CSRF and SameSite cookies
Cross-site request forgery tricks a logged-in browser into sending a request you did not intend. SameSite cookies and CSRF tokens stop it.
securitycsrf
November 20, 2026 · 2 min read
XSS: output encoding and Content Security Policy
Cross-site scripting runs an attacker's script in your users' browsers. Encode output by context and add a Content Security Policy as a second layer.
securityxss
November 20, 2026 · 2 min read
SQL injection and parameterised queries
SQL injection happens when user input is glued into a query. Parameterised queries keep data and code separate and remove the whole class of bug.
securitysql
November 20, 2026 · 2 min read
The OWASP Top 10 in plain words
The OWASP Top 10 lists the most common web application risks. A short tour of the 2021 edition and what each category means for your code.
securityowasp