Playbook

Debugging Tenant Cache Bugs

Tenant cache bugs are both correctness and security incidents.

Pattern

A cache key misses tenant or user scope and serves stale data across accounts.

warningSymptoms

  • arrow_rightWrong tenant data
  • arrow_rightIntermittent only after warm cache
  • arrow_rightSecurity report tied to performance optimization

searchWhere to look

  • arrow_rightCache key builder
  • arrow_rightTenant context propagation
  • arrow_rightShared process memory
  • arrow_rightInvalidation paths

buildCommon fixes

  • arrow_rightInclude tenant in keys
  • arrow_rightCentralize cache key construction
  • arrow_rightAdd cross-tenant regression tests

Practice challenges