---
title: "Posts tagged \"security\" | Blog | Suriyaprakash Somu"
canonical: "https://www.suriyaprakash.in/blog/tag/security"
robots: "index, follow"
---

# Articles tagged security

Page 1 of 1


Read about authentication, browser and transport security as connected boundaries. Begin with the threat or failure mode, then follow the controls and tradeoffs through the application.

- [Webhooks in Depth: Signatures, Replay Protection, and Idempotent Delivery](https://www.suriyaprakash.in/blog/engineering/webhooks-signatures-replay-idempotent-delivery)
  Receive webhooks safely: verify HMAC signatures on the raw body, reject replays with a timestamp tolerance, and process each event once.
- [RBAC and ABAC in Practice: Building Permission Systems with CASL](https://www.suriyaprakash.in/blog/engineering/rbac-abac-casl-permissions)
  Build a permission system with CASL: roles to rules, ownership and tenant conditions, field-level access, deny-rule ordering, database filters, and testing.
- [Password Hashing, MFA, and Account Security in Depth: Storing Credentials and Defending Accounts](https://www.suriyaprakash.in/blog/engineering/password-hashing-mfa-account-security)
  How to store passwords with Argon2id or bcrypt, block breached passwords, throttle logins, design reset codes, and add TOTP or passkey MFA.
- [OAuth 2.0 and OpenID Connect in Depth: Authorization Flows and Social Login in Practice](https://www.suriyaprakash.in/blog/engineering/oauth-oidc-in-depth)
  A practical guide to OAuth 2.0 and OpenID Connect covering authorization code flow, PKCE, ID tokens, scopes, social login, redirect URI security, and production mistakes.
- [Sessions vs JWTs: Where Tokens Live, How They Expire, and Why It Matters](https://www.suriyaprakash.in/blog/engineering/sessions-vs-jwts)
  A practical comparison of server-side sessions and JWT authentication, covering storage, cookies, expiry, revocation, refresh-token rotation, browser security, and production tradeoffs.
- [Authentication vs Authorization in Depth: Sessions, JWTs, RBAC, ABAC, and Access Control](https://www.suriyaprakash.in/blog/engineering/authentication-vs-authorization)
  A practical guide to authentication and authorization covering sessions, JWTs, access tokens, refresh tokens, RBAC, ABAC, tenant boundaries, and production access-control mistakes.
- [TLS and HTTPS in Depth: Handshakes, Certificates, SNI, ALPN, HSTS, and OCSP](https://www.suriyaprakash.in/blog/engineering/tls-https-in-depth)
  A practical guide to TLS and HTTPS, covering the TLS 1.3 handshake, certificate chains, SNI, ALPN, cipher suites, forward secrecy, HSTS, OCSP, and how to debug common SSL failures.
