Enhancing Tenant Isolation in Laravel Queues
Introduction
In multi-tenant applications, ensuring data isolation between tenants is paramount. We encountered an issue in our Reimpact/platform project where queue jobs and dashboard caching mechanisms weren't properly respecting the tenant context, leading to errors and potential data leakage.
The Problem: Missing Tenant Context
Two key areas were affected:
- Queue Jobs: