Multi-tenant isolation as defense-in-depth: when WHERE owner_user_id isn't enough 0 ▲ chs.us — Carl Sampson 122 days ago · Tech · hide · Fediverse post Every query that returns user data filters by owner. That's the contract — and one forgotten WHERE clause leaks another tenant's data. Here's a second, automatic layer that fails closed, built on a SQLAlchemy do_orm_execute hook. Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town