
Free mini course
Your Cache Key Forgot the Tenant
The key is built from the resource id and nothing else, so invoice 42 is one entry for the entire platform. Tenant A misses and the response gets stored. Tenant B sends the same URL a second later, hits that key, and reads another company's invoice out of your cache.
This Short draws the leak moving: one shared key, two tenants, a cross tenant hit, and every authorization check you wrote still passing because the cache answered before any of them ran. Then the fix: a fully qualified key carryin
Watch on YouTubeThe key is built from the resource id and nothing else, so invoice 42 is one entry for the entire platform. Tenant A misses and the response gets stored. Tenant B sends the same URL a second later, hits that key, and reads another company's invoice out of your cache.
This Short draws the leak moving: one shared key, two tenants, a cross tenant hit, and every authorization check you wrote still passing because the cache answered before any of them ran. Then the fix: a fully qualified key carryin
Frequently asked questions
What is Your Cache Key Forgot the Tenant about?
The key is built from the resource id and nothing else, so invoice 42 is one entry for the entire platform. Tenant A misses and the response gets stored.
Which topics does this mini course relate to?
Node.js, Backend Development, System Design, Web Development, TypeScript, Databases.