Phase 8 · APIs & Security
API design, evolution, testing, OAuth2/JWT and application security.
- API Design: REST, GraphQL & gRPC: Resource modeling, HTTP semantics, problem+json errors, cursor pagination, idempotency keys, ETags, bulk operations, GraphQL (DataLoader, cost limits, persisted queries), gRPC (protobuf, deadlines, streaming) and how to choose between them.
- API Versioning, Contracts & Testing: Evolving APIs without breaking consumers: semantic versioning, URI/header/media-type versioning, expand-contract, deprecation and Sunset, automated breaking-change detection, protobuf evolution, consumer-driven contracts with Pact, Testcontainers, and the strangler fig for monolith APIs.
- API Authentication, Authorization & Threat Modeling: OAuth2 grants, PKCE, JWT validation and revocation, opaque tokens, OIDC, mTLS, scopes vs fine-grained authz, STRIDE and the OWASP API Top 10
- Application Security, Secrets & Multi-Tenancy: TLS, envelope encryption with KMS, password hashing, secrets management, RBAC/ABAC/ReBAC, tenant isolation with Postgres RLS, injection/XSS/CSRF/SSRF, layered DDoS defence and zero trust
- Authentication Building Blocks: Sessions vs Tokens, SSO (SAML & OIDC), 2FA/TOTP, JWT vs PASETO & API Keys: Where session state lives, the five ways to authenticate a REST call (incl. SigV4-style HMAC signing), API-key lifecycle, SSO end to end with SAML and OIDC, single logout, TOTP math, passkeys, PASETO and auth for a multi-app company