Jamie Craane personal blog

My views, thoughts and experiences about Fullstack software development.

Multi-Tenancy With Postgres Row-Level Security in Ktor

Enforcing tenant isolation in the database instead of in every query

How I use Postgres Row-Level Security, a non-owner application role, and a small Kotlin transaction wrapper to guarantee tenant isolation in a production Ktor and Exposed application.