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
docs: add permissions section to project status and clarify future support for custom start functions (#278)
functions
- Updated project status to include information about permissions and upcoming features
- Clarified that pgflow currently has no built-in permissions and requires manual database
configuration
- Mentioned future support for custom start functions to enable authorization and multi-tenant
scenarios in the TypeScript Client
Copy file name to clipboardExpand all lines: pkgs/website/src/content/docs/project-status.mdx
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,21 @@ pgflow is in **public beta** and being used in production by early adopters. Cor
12
12
13
13
## Known Limitations & Active Work
14
14
15
-
<CardGrid>
16
-
<Cardtitle="Performance"icon="rocket">
17
-
Core operations are optimized with batching, proper indexing, and declarative SQL. However, **large-scale workloads** may reveal additional optimization opportunities. Start with your expected workload and scale as needed.
18
-
</Card>
15
+
<Cardtitle="Performance"icon="rocket">
16
+
Core operations are optimized with batching, proper indexing, and declarative SQL. However, **large-scale workloads** may reveal additional optimization opportunities. Start with your expected workload and scale as needed.
17
+
</Card>
19
18
20
-
<Cardtitle="Worker Management"icon="setting">
21
-
Edge Functions have platform execution time limits. For production reliability, set up a **pg_cron job** to automatically restart workers when needed. See [deployment guide](/deploy/supabase/keep-workers-running/) for the simple 2-minute setup.
22
-
</Card>
19
+
<Cardtitle="Worker Management"icon="setting">
20
+
Edge Functions have platform execution time limits. For production reliability, set up a **pg_cron job** to automatically restart workers when needed. See [deployment guide](/deploy/supabase/keep-workers-running/) for the simple 2-minute setup.
21
+
</Card>
23
22
24
-
<Cardtitle="Fair Processing"icon="warning">
25
-
Fair processing across flows is not currently implemented. A flow with many tasks (especially map steps processing large arrays) can fill the queue ahead of other flows. This is more noticeable with the introduction of map steps in 0.7.0. For multi-tenant or multi-flow scenarios where fairness is important, join [Discord](https://pgflow.dev/discord/) to discuss approaches and workarounds.
26
-
</Card>
27
-
</CardGrid>
23
+
<Cardtitle="Fair Processing"icon="warning">
24
+
Fair processing across flows is not currently implemented. A flow with many tasks (especially map steps processing large arrays) can fill the queue ahead of other flows. This is more noticeable with the introduction of map steps in 0.7.0. For multi-tenant or multi-flow scenarios where fairness is important, join [Discord](https://pgflow.dev/discord/) to discuss approaches and workarounds.
25
+
</Card>
26
+
27
+
<Cardtitle="Permissions"icon="approve-check">
28
+
pgflow ships with zero built-in permissions or access controls. [Database permissions](/reference/permissions/) must be manually configured when using the TypeScript Client or Supabase RPC from client applications. In a future release, pgflow will support custom start functions for the TypeScript Client, enabling authorization logic at the database level and supporting multi-tenant scenarios.
Copy file name to clipboardExpand all lines: pkgs/website/src/content/docs/reference/permissions.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ supabase migration up
85
85
86
86
With **[Supabase RPC](/build/starting-flows/supabase-rpc/)**, you have full control - wrap `pgflow.start_flow` in your own database functions to implement custom permissions and security logic.
87
87
88
-
In a future release, pgflow will support **custom start functions** for the TypeScript Client, allowing you to implement authorization logic at the database level.
88
+
In a future release, pgflow will support **custom start functions** for the TypeScript Client, allowing you to implement authorization logic at the database level and enabling multi-tenant scenarios where runs can be associated with specific users or tenants.
0 commit comments