🪟 Windows TippsRouter absichern: Diese vier Schritte empfiehlt das BSI(15.09.2026 um 13:58 Uhr)
🪟 Windows TippsExtron erweitert USB-Extender um Matrixfunktion(15.09.2026 um 13:15 Uhr)
🪟 Windows TippsPanasonic zeigt Projektoren und Displays in Roadshow(15.09.2026 um 13:20 Uhr)
🪟 Windows TippsLightware aktualisiert Raumautomation LARA auf Version 2.0(15.09.2026 um 13:30 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)
🪟 Windows TippsRouter absichern: Diese vier Schritte empfiehlt das BSI(15.09.2026 um 13:58 Uhr)
🪟 Windows TippsExtron erweitert USB-Extender um Matrixfunktion(15.09.2026 um 13:15 Uhr)
🪟 Windows TippsPanasonic zeigt Projektoren und Displays in Roadshow(15.09.2026 um 13:20 Uhr)
🪟 Windows TippsLightware aktualisiert Raumautomation LARA auf Version 2.0(15.09.2026 um 13:30 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)

🔧 Programmierung 🕛 vor 2 Monaten 4 Min Lesezeit
0

RLS fails silently. Here's how to actually test your Supabase policies.

↗ Quelle (dev.to)
🗣️ Stimme:

A wrong RLS policy doesn't throw an error, it just returns the wrong rows, so it ships untested and you find out when data leaks. rlsautotest generates the pgTAP tests and the seed data straight from your policies, so you can catch it. Free and open-source.



The problem: RLS fails quietly

Row-Level Security is what keeps one tenant's data from another's.

When it's wrong, it doesn't error. It returns the wrong rows.




  • Too strict → empty results → your app looks broken.

  • Too loose → rows the user shouldn't see → your app leaks.



Neither raises an exception. You find out from a confused user, or a security report.

And "it works in the SQL editor" proves nothing. The SQL editor bypasses RLS, so your policies were never exercised.



Why nobody tests it

Supabase's own docs admit writing pgTAP tests for RLS is "inaccessible to most web developers."

To test one policy by hand you have to:




  • create a few users (owner, other user, anon, role-holder)

  • insert rows owned by different users

  • become each identity (set JWT claims + role)

  • run SELECT / INSERT / UPDATE / DELETE as each

  • assert exactly which rows each can and can't touch



Per table. Per policy.



And the seed data matters as much as the test. Assert "the owner sees their row" against an empty table and it passes while proving nothing.

Most teams take one look and skip it. So the actual security boundary ships untested.



What a real RLS test checks

From each identity's point of view:



owner → sees and changes their own row

other user / tenant → can't see it at all

anon **→ blocked

**role-holder
→ exactly the access the role grants



All against a row really owned by the identity under test.

And "denied" has two flavors a good test keeps apart:



row-level filtering → zero rows

missing grant → permission error



That's a lot of careful setup, for every policy.



Generate it instead

I got tired of doing this by hand, so I built rlsautotest **(open-source, Apache-2.0).

**Repo
:

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Kubernetes Says Ready. Your LLM Still Isn’t.
1 Quelle
Why Continuous Application Security Testing Is No Longer Optional
1 Quelle
When TypeScript Types Meet Untrusted AI: Building Type-Safe LLM Pipelines With Runtime Validation
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten RLS fails silently. Here's how to actually test your Supabase policies.

Thematisch verwandte Begriffe: fails, silently, Heres, actually · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...