<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>multi-tenancy on krtffl.dev</title>
    <link>https://krtffl.dev/tags/multi-tenancy/</link>
    <description>Recent content in multi-tenancy on krtffl.dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>© [krtffl](https://krtffl.dev)</copyright>
    <lastBuildDate>Mon, 06 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://krtffl.dev/tags/multi-tenancy/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>multi-tenant isolation is a security boundary, not a query filter</title>
      <link>https://krtffl.dev/posts/multi-tenant-isolation-security-boundary/</link>
      <pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate>
      
      <guid>https://krtffl.dev/posts/multi-tenant-isolation-security-boundary/</guid>
      <description>&lt;p&gt;i&amp;rsquo;m building a small multi-tenant cms for local businesses — a barbershop, a physio, a bakery each get a little site they can edit themselves. one payload backend, one postgres, many tenants. the whole promise is that the bakery&amp;rsquo;s editor logs in and sees the bakery. not the barbershop. never the barbershop.&lt;/p&gt;
&lt;p&gt;so during a pre-launch hardening pass i did the thing i&amp;rsquo;ve learned to do: i stopped admiring the isolation and started attacking it. i logged in as a low-privilege editor — scoped to exactly one tenant — and sent one request to edit &lt;em&gt;my own user account&lt;/em&gt;. not someone else&amp;rsquo;s. mine. i just added a second tenant to the list of tenants i belong to.&lt;/p&gt;
&lt;p&gt;it went through. &lt;code&gt;200&lt;/code&gt;. and on the next request i could read, edit and delete another business&amp;rsquo;s pages as if they were my own.&lt;/p&gt;
&lt;p&gt;nobody broke in. i handed myself the keys through the front door, using an endpoint that exists specifically so users can edit themselves. an isolation boundary you can widen with a &lt;code&gt;PATCH&lt;/code&gt; to your own profile isn&amp;rsquo;t a boundary. it&amp;rsquo;s a default you forgot to close.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
