You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/supabase-alternative/index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Supabase RLS Alternative
3
-
description: Show the limitation of Supabase RLS with a multi-tenancy SaaS example and introduce ZenStack as an alternative.
4
-
tags: [supabase, rls, baas, zenstack]
3
+
description: Show the limitation of Supabase RLS(Row Level Security) with a multi-tenancy SaaS example and introduce ZenStack as an alternative.
4
+
tags: [supabase, rls, auth, baas, zenstack]
5
5
authors: jiasheng
6
6
date: 2024-07-24
7
7
image: ./cover.png
@@ -13,12 +13,12 @@ image: ./cover.png
13
13
14
14
## A Short History of BaaS
15
15
16
-
In the early days of web and mobile app development, building a backend from scratch was laborious and error-prone. Developers had to manage servers, databases, and infrastructure and ensure scalability while writing the core business logic of their applications. Then came Backend-as-a-Service (BaaS), promising to liberate developers from this burden.
16
+
In the early days of web and mobile app development, building a backend from scratch was laborious and error-prone. Developers had to manage servers, databases, and infrastructure and ensure scalability while writing the core business logic of their applications. Then came BaaS(Backend-as-a-Service), promising to liberate developers from this burden.
17
17
18
18
<!--truncate-->
19
19
### Firebase: The Pioneer
20
20
21
-
Firebase was one of the first BaaS platforms to gain widespread adoption. It was acquired by Google, and at Google I/O in **2016**, it announced an expansion of its services to become a unified backend-as-a-service (BaaS) platform for mobile developers. Firebase quickly became popular among developers for its ease of use and integration with Google's ecosystem.
21
+
Firebase was one of the first BaaS platforms to gain widespread adoption. It was acquired by Google, and at Google I/O in **2016**, it announced an expansion of its services to become a unified BaaS platform for mobile developers. Firebase quickly became popular among developers for its ease of use and integration with Google's ecosystem.
22
22
23
23
However, as projects grew in complexity, so did concerns about vendor lock-in and data control. Its rigid data models and scalability issues led developers to seek more flexible and robust alternatives.
24
24
@@ -49,9 +49,9 @@ service cloud.firestore {
49
49
}
50
50
```
51
51
52
-
### Supabase: RLS
52
+
### Supabase: RLS(Row Level Security)
53
53
54
-
Since Supabase is built upon Postgres, it could leverage PostgreSQL's robust RLS(Row-Level Security) to handle access control.
54
+
Since Supabase is built upon Postgres, it could leverage PostgreSQL's robust RLS to handle access control.
55
55
56
56
```sql
57
57
-- owner has full access to her own posts
@@ -451,4 +451,4 @@ Software engineering is an art of trade-offs. It involves balancing time and spa
451
451
Someone has completed the artwork in production 😉
452
452
453
453
> We've launched MermaidChart's team feature using ZenStack. Much cleaner and easier to maintain than writing RLS policies or application level checks that will surely leak after some time.
454
-
— Sid from [MermaidChart](https://www.mermaidchart.com/)
0 commit comments