I built a toy app using this, with a front-end only app and postgrest + RBS. The app was seriously two forms behind a login. It was a huge pain. RBS is "insecure by default" meaning if you don't set it up right, all users can access all data. And, because it's SQL, it's really easy to write a valid and successful configuration that doesn't work. You have to test it. And for views, you have to do some real heroics to…
A few things, RLS is secure by default, it's postgrest that's insecure by default. RLS disables all operations on a table once enabled and is only operable once there's a passing policy unless you can bypass RLS. When it comes to access control, you should probably always have tests for anything halfway important. Views are a bit of a footgun when it comes to RLS, they bypass it by default. But getting them to play n…
What makes you think that? PostgREST delegates all the authorization to PostgreSQL, which is secure by default. You have to explicitly assign privileges to roles for every operation.
Relevant previous discussion: https://news.ycombinator.com/item?id=38689294