@sanoma-ai/connector-supabase 0.11.24 → 0.11.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -31,6 +31,8 @@ Four more operations call the Management API, each but the organizations' with t
|
|
|
31
31
|
|
|
32
32
|
Apply calls two of them after it creates a project (the type's `afterCreate`): `project.health` until the database and pooler are healthy, then `database.storeUrl` with the data file's export, so a host can name the URL as `secret("SANOMA_DATABASE_URL_STORE")`.
|
|
33
33
|
|
|
34
|
+
The runtime connects with that URL as the project's `postgres` role and makes its tables in the schema `public`. Supabase's Data API serves `public` to its `anon` and `authenticated` roles, and with Supabase's default grants those roles get every privilege on each table `postgres` makes there. Sanoma's tables have row-level security on with no policy ([Postgres](https://github.com/Sanoma-AI/sanoma/blob/main/packages/sanoma/README.md#postgres)), so through the Data API those roles read no row and write none. `service_role` bypasses row-level security: keep its key as secret as the database password.
|
|
35
|
+
|
|
34
36
|
The project type meets the [`Database` contract](https://github.com/Sanoma-AI/sanoma/blob/main/packages/sanoma/workflows/README.md#databases) (`database`): it neither pauses nor branches (a paid project never pauses, and a branch starts empty), takes `region` from Supabase's regions (`database.regions`), and stores its URL with `database.storeUrl`. Going live chooses it when the config has no Neon project type.
|
|
35
37
|
|
|
36
38
|
A data file declares a project with the constructor in `@sanoma-ai/connector-supabase/resources`, without its ref, which Supabase sets: which project a declaration means is its binding, in the [lockfile](https://github.com/Sanoma-AI/sanoma/blob/main/packages/sanoma/workflows/README.md#bindings), by its ref. A declaration with no binding is `absent` to a drift check.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanoma-ai/connector-supabase",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.26",
|
|
4
4
|
"description": "Supabase projects for Sanoma, through the OpenTofu provider and the Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"connector",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/pg": "^8.23.1",
|
|
66
66
|
"msw": "^3.0.3",
|
|
67
|
-
"sanoma": "0.11.
|
|
67
|
+
"sanoma": "0.11.26",
|
|
68
68
|
"zod": "^4.6.5"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"sanoma": "0.11.
|
|
71
|
+
"sanoma": "0.11.26",
|
|
72
72
|
"zod": "^4"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|