r/SQL • • Oct 17 '26

SQLite Row Level Security in SQLite on Cloudflare

https://mainbrella.com/blog/row-level-security-in-sqlite-on-cloudflare/
6 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/groupicorn Oct 17 '26

Fair. "Gateway-enforced row permissions" would be more accurate. SQLite trusts the gateway’s SQL, so this doesn’t provide the independent database enforcement people expect from RLS.

There is still a useful boundary: browser clients and browser-invoked functions can’t submit arbitrary SQL. Their database operations go through the same authorization layer, which checks ownership on the existing row and rejects ownership changes. Forgetting an ownership filter in an application function therefore doesn’t bypass that check.

Yeah basic for sure right now. Just getting started...