@r8s/supabase 0.3.2 → 0.3.4
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/dist/index.d.ts +28 -27
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DatabaseProps } from '@r8s/recipes';
|
|
1
|
+
import { type BucketProps, type DatabaseProps } from '@r8s/recipes';
|
|
2
2
|
export interface SupabaseProps {
|
|
3
3
|
/** Resource name — base for every derived resource (defaults to 'supabase') */
|
|
4
4
|
name?: string;
|
|
@@ -12,22 +12,32 @@ export interface SupabaseProps {
|
|
|
12
12
|
storage?: string;
|
|
13
13
|
/**
|
|
14
14
|
* Render the Storage API service (defaults to true). Set false to run a
|
|
15
|
-
* minimal auth + REST-only Supabase. The
|
|
16
|
-
*
|
|
15
|
+
* minimal auth + REST-only Supabase. The Storage API still declares its
|
|
16
|
+
* object-storage decision (see below) whenever the component renders.
|
|
17
17
|
*/
|
|
18
18
|
storageApi?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
* S3-compatible object storage for the Storage API (RustFS in the
|
|
21
|
-
*
|
|
22
|
-
* the
|
|
20
|
+
* S3-compatible object storage for the Storage API (RustFS in the
|
|
21
|
+
* platform). Resolution order: this prop → a `<Bucket name="…" />` descriptor →
|
|
22
|
+
* derived from the surrounding `<S3Provider>` (omit it entirely there —
|
|
23
|
+
* backups and storage then share one declared source).
|
|
24
|
+
*
|
|
25
|
+
* Storage-API-style consumers take a BUCKET NAME, not a prefixed path:
|
|
26
|
+
* a descriptor's `bucket` override selects the bucket, its `name` is
|
|
27
|
+
* only the logical scope (prefix). The bucket's credentials must live
|
|
28
|
+
* in a Secret provisioned by the secrets backend (keys: accessKey,
|
|
29
|
+
* secretKey) — never plaintext.
|
|
23
30
|
*/
|
|
24
|
-
objectStorage
|
|
31
|
+
objectStorage?: {
|
|
25
32
|
/** S3 endpoint URL, e.g. https://s3.internal.example.com */
|
|
26
33
|
endpoint: string;
|
|
27
34
|
/** Bucket for uploads and stored files */
|
|
28
35
|
bucket: string;
|
|
29
36
|
/** Name of the Secret holding accessKey / secretKey */
|
|
30
37
|
credentialsSecret: string;
|
|
38
|
+
} | {
|
|
39
|
+
type: unknown;
|
|
40
|
+
props: BucketProps;
|
|
31
41
|
};
|
|
32
42
|
/**
|
|
33
43
|
* S3 region reported to the Storage API (GLOBAL_S3_REGION, defaults to
|
|
@@ -100,44 +110,35 @@ export interface SupabaseProps {
|
|
|
100
110
|
* the `${name}-jwt` bundle is provisioned for you. Without a backend you
|
|
101
111
|
* must point `jwtSecretsName` at a pre-created Secret.
|
|
102
112
|
*
|
|
113
|
+
* Under an `<S3Provider>` both the database backups and the Storage API's
|
|
114
|
+
* object storage derive from it — `objectStorage` can be omitted entirely.
|
|
115
|
+
* Pass it only to target a different bucket than the provider's, either as
|
|
116
|
+
* a plain object or as `<Bucket name="…" bucket="…" />` (the descriptor's
|
|
117
|
+
* `bucket` selects the bucket; `name` is the logical scope).
|
|
118
|
+
*
|
|
103
119
|
* @example
|
|
104
120
|
* import { Platform, S3Provider, MinIO } from '@r8s/recipes'
|
|
105
121
|
* import { Supabase } from '@r8s/supabase'
|
|
106
122
|
*
|
|
107
|
-
* // Backups default to on — the S3Provider
|
|
123
|
+
* // Backups default to on, objectStorage derives — the S3Provider
|
|
124
|
+
* // supplies both targets and credentials
|
|
108
125
|
* export default (
|
|
109
126
|
* <S3Provider provider={<MinIO endpoint="https://rustfs:9000" bucket="infra" credentialsSecret="infra-s3-creds" />}>
|
|
110
127
|
* <Platform secrets={{ backend: 'openbao', mount: 'kv', path: 'apps' }}>
|
|
111
|
-
* <Supabase
|
|
112
|
-
* name="backend"
|
|
113
|
-
* host="backend.example.com"
|
|
114
|
-
* objectStorage={{
|
|
115
|
-
* endpoint: 'https://s3.internal.example.com',
|
|
116
|
-
* bucket: 'backend-uploads',
|
|
117
|
-
* credentialsSecret: 'backend-object-store-credentials',
|
|
118
|
-
* }}
|
|
119
|
-
* />
|
|
128
|
+
* <Supabase name="backend" host="backend.example.com" />
|
|
120
129
|
* </Platform>
|
|
121
130
|
* </S3Provider>
|
|
122
131
|
* )
|
|
123
132
|
*
|
|
124
133
|
* @example
|
|
125
134
|
* // Reference a pre-created JWT bundle instead of provisioning one —
|
|
126
|
-
* // still under an S3Provider so
|
|
135
|
+
* // still under an S3Provider so backups and storage stay derived
|
|
127
136
|
* import { S3Provider, MinIO } from '@r8s/recipes'
|
|
128
137
|
* import { Supabase } from '@r8s/supabase'
|
|
129
138
|
*
|
|
130
139
|
* export default (
|
|
131
140
|
* <S3Provider provider={<MinIO endpoint="https://rustfs:9000" bucket="infra" credentialsSecret="infra-s3-creds" />}>
|
|
132
|
-
* <Supabase
|
|
133
|
-
* host="backend.example.com"
|
|
134
|
-
* jwtSecretsName="backend-jwt"
|
|
135
|
-
* objectStorage={{
|
|
136
|
-
* endpoint: 'https://s3.internal.example.com',
|
|
137
|
-
* bucket: 'backend-uploads',
|
|
138
|
-
* credentialsSecret: 'backend-object-store-credentials',
|
|
139
|
-
* }}
|
|
140
|
-
* />
|
|
141
|
+
* <Supabase host="backend.example.com" jwtSecretsName="backend-jwt" />
|
|
141
142
|
* </S3Provider>
|
|
142
143
|
* )
|
|
143
144
|
*/
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAOL,KAAK,WAAW,EAChB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,aAAa;IAC5B,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mDAA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CAAC,KAAK,EAAE,aAAa,kCA0V5C"}
|
package/dist/index.js
CHANGED
|
@@ -33,44 +33,35 @@ const recipes_1 = require("@r8s/recipes");
|
|
|
33
33
|
* the `${name}-jwt` bundle is provisioned for you. Without a backend you
|
|
34
34
|
* must point `jwtSecretsName` at a pre-created Secret.
|
|
35
35
|
*
|
|
36
|
+
* Under an `<S3Provider>` both the database backups and the Storage API's
|
|
37
|
+
* object storage derive from it — `objectStorage` can be omitted entirely.
|
|
38
|
+
* Pass it only to target a different bucket than the provider's, either as
|
|
39
|
+
* a plain object or as `<Bucket name="…" bucket="…" />` (the descriptor's
|
|
40
|
+
* `bucket` selects the bucket; `name` is the logical scope).
|
|
41
|
+
*
|
|
36
42
|
* @example
|
|
37
43
|
* import { Platform, S3Provider, MinIO } from '@r8s/recipes'
|
|
38
44
|
* import { Supabase } from '@r8s/supabase'
|
|
39
45
|
*
|
|
40
|
-
* // Backups default to on — the S3Provider
|
|
46
|
+
* // Backups default to on, objectStorage derives — the S3Provider
|
|
47
|
+
* // supplies both targets and credentials
|
|
41
48
|
* export default (
|
|
42
49
|
* <S3Provider provider={<MinIO endpoint="https://rustfs:9000" bucket="infra" credentialsSecret="infra-s3-creds" />}>
|
|
43
50
|
* <Platform secrets={{ backend: 'openbao', mount: 'kv', path: 'apps' }}>
|
|
44
|
-
* <Supabase
|
|
45
|
-
* name="backend"
|
|
46
|
-
* host="backend.example.com"
|
|
47
|
-
* objectStorage={{
|
|
48
|
-
* endpoint: 'https://s3.internal.example.com',
|
|
49
|
-
* bucket: 'backend-uploads',
|
|
50
|
-
* credentialsSecret: 'backend-object-store-credentials',
|
|
51
|
-
* }}
|
|
52
|
-
* />
|
|
51
|
+
* <Supabase name="backend" host="backend.example.com" />
|
|
53
52
|
* </Platform>
|
|
54
53
|
* </S3Provider>
|
|
55
54
|
* )
|
|
56
55
|
*
|
|
57
56
|
* @example
|
|
58
57
|
* // Reference a pre-created JWT bundle instead of provisioning one —
|
|
59
|
-
* // still under an S3Provider so
|
|
58
|
+
* // still under an S3Provider so backups and storage stay derived
|
|
60
59
|
* import { S3Provider, MinIO } from '@r8s/recipes'
|
|
61
60
|
* import { Supabase } from '@r8s/supabase'
|
|
62
61
|
*
|
|
63
62
|
* export default (
|
|
64
63
|
* <S3Provider provider={<MinIO endpoint="https://rustfs:9000" bucket="infra" credentialsSecret="infra-s3-creds" />}>
|
|
65
|
-
* <Supabase
|
|
66
|
-
* host="backend.example.com"
|
|
67
|
-
* jwtSecretsName="backend-jwt"
|
|
68
|
-
* objectStorage={{
|
|
69
|
-
* endpoint: 'https://s3.internal.example.com',
|
|
70
|
-
* bucket: 'backend-uploads',
|
|
71
|
-
* credentialsSecret: 'backend-object-store-credentials',
|
|
72
|
-
* }}
|
|
73
|
-
* />
|
|
64
|
+
* <Supabase host="backend.example.com" jwtSecretsName="backend-jwt" />
|
|
74
65
|
* </S3Provider>
|
|
75
66
|
* )
|
|
76
67
|
*/
|
|
@@ -83,7 +74,11 @@ function Supabase(props) {
|
|
|
83
74
|
const secretProvider = (0, core_1.useContext)(defaults_1.SecretContext);
|
|
84
75
|
const resources_ = [];
|
|
85
76
|
const dbHost = `${name}-rw`;
|
|
86
|
-
|
|
77
|
+
// DB-password Secret per the central credentials contract: the backend
|
|
78
|
+
// provisions `<name>-db-credentials`; without a backend CNPG generates
|
|
79
|
+
// `<name>-app` (CloudNativePG does not create referenced initdb secrets).
|
|
80
|
+
// Every Postgres-backed service below references the same resolved Secret.
|
|
81
|
+
const dbCredentialsRef = (0, recipes_1.databaseCredentialsRef)(name, secretProvider);
|
|
87
82
|
const jwtBundleName = jwtSecretsName ?? `${name}-jwt`;
|
|
88
83
|
// Static parts only — the password arrives via $(PGPASSWORD), which every
|
|
89
84
|
// service declares through secretKeyRef (WebService resolves secrets
|
|
@@ -128,7 +123,7 @@ function Supabase(props) {
|
|
|
128
123
|
`Fix: configure a secrets backend on the Platform holding the bundle ` +
|
|
129
124
|
`at path <mount-path>/${name}/jwt:\n` +
|
|
130
125
|
` <Platform secrets={{ backend: 'openbao', mount: 'kv', path: 'apps' }}>\n` +
|
|
131
|
-
` <Supabase name="${name}" host="${host}"
|
|
126
|
+
` <Supabase name="${name}" host="${host}" />\n` +
|
|
132
127
|
` </Platform>\n` +
|
|
133
128
|
`\n` +
|
|
134
129
|
`Or reference a pre-created Secret (keys: jwtSecret, anonKey, serviceRoleKey, referrerURLs):\n` +
|
|
@@ -157,6 +152,12 @@ function Supabase(props) {
|
|
|
157
152
|
spec,
|
|
158
153
|
}));
|
|
159
154
|
}
|
|
155
|
+
// --- Object storage — derived from the S3Provider like backups -------------
|
|
156
|
+
// Same resolution contract as Database's backup decision (#115): an
|
|
157
|
+
// explicit object wins, a <Bucket/> descriptor points the Storage API at
|
|
158
|
+
// another store, and omission under an <S3Provider> derives everything.
|
|
159
|
+
const s3 = (0, recipes_1.useS3)();
|
|
160
|
+
const store = (0, recipes_1.resolveObjectStorage)('Supabase', name, 'the Storage API writes uploads and stored files to its bucket', objectStorage, s3);
|
|
160
161
|
// --- Database (CNPG) — the Postgres core -----------------------------------
|
|
161
162
|
// Wraps every Postgres-backed service so credentials stay consistent with
|
|
162
163
|
// the r8s Database recipe (CNPG dedicated cluster provisions the secret).
|
|
@@ -187,7 +188,7 @@ function Supabase(props) {
|
|
|
187
188
|
: uriAllowList,
|
|
188
189
|
}),
|
|
189
190
|
}, secrets: {
|
|
190
|
-
PGPASSWORD: { secret:
|
|
191
|
+
PGPASSWORD: { secret: dbCredentialsRef.name, key: dbCredentialsRef.key },
|
|
191
192
|
GOTRUE_JWT_SECRET: { secret: jwtBundleName, key: 'jwtSecret' },
|
|
192
193
|
} }), (0, jsx_runtime_1.jsx)(recipes_1.WebService, { name: `${name}-postgrest`, namespace: namespace, image: "postgrest/postgrest:v12", port: 3000, replicas: replicas, resources: resources, probes: {
|
|
193
194
|
liveness: { path: '/' },
|
|
@@ -199,7 +200,7 @@ function Supabase(props) {
|
|
|
199
200
|
PGRST_DB_ANON_ROLE: 'anon',
|
|
200
201
|
PGRST_DB_USE_LEGACY_GUCS: 'false',
|
|
201
202
|
}, secrets: {
|
|
202
|
-
PGPASSWORD: { secret:
|
|
203
|
+
PGPASSWORD: { secret: dbCredentialsRef.name, key: dbCredentialsRef.key },
|
|
203
204
|
PGRST_JWT_SECRET: { secret: jwtBundleName, key: 'jwtSecret' },
|
|
204
205
|
} }), (0, jsx_runtime_1.jsx)(recipes_1.WebService, { name: `${name}-realtime`, namespace: namespace, image: "supabase/realtime:v2", port: 4000, replicas: replicas, resources: resources, probes: {
|
|
205
206
|
liveness: { path: '/health' },
|
|
@@ -213,7 +214,7 @@ function Supabase(props) {
|
|
|
213
214
|
DB_ENC_KEY: 'supabaserealtime',
|
|
214
215
|
SECURE_CHANNELS: 'true',
|
|
215
216
|
}, secrets: {
|
|
216
|
-
DB_PASSWORD: { secret:
|
|
217
|
+
DB_PASSWORD: { secret: dbCredentialsRef.name, key: dbCredentialsRef.key },
|
|
217
218
|
API_JWT_SECRET: { secret: jwtBundleName, key: 'jwtSecret' },
|
|
218
219
|
} }), storageApi && ((0, jsx_runtime_1.jsx)(recipes_1.WebService, { name: `${name}-storage-api`, namespace: namespace, image: "supabase/storage-api:v0", port: 5000, replicas: replicas, resources: resources, probes: {
|
|
219
220
|
liveness: { path: '/status' },
|
|
@@ -222,23 +223,23 @@ function Supabase(props) {
|
|
|
222
223
|
PORT: '5000',
|
|
223
224
|
DATABASE_URL: dbUri,
|
|
224
225
|
STORAGE_BACKEND: 's3',
|
|
225
|
-
GLOBAL_S3_BUCKET:
|
|
226
|
-
GLOBAL_S3_ENDPOINT:
|
|
226
|
+
GLOBAL_S3_BUCKET: store.bucket,
|
|
227
|
+
GLOBAL_S3_ENDPOINT: store.endpoint,
|
|
227
228
|
GLOBAL_S3_REGION: region,
|
|
228
229
|
GLOBAL_S3_FORCE_PATH_STYLE: 'true',
|
|
229
230
|
IMGPROXY_URL: `http://${name}-imgproxy:8080`,
|
|
230
231
|
FILE_SIZE_LIMIT: '50GiB',
|
|
231
232
|
}, secrets: {
|
|
232
|
-
PGPASSWORD: { secret:
|
|
233
|
+
PGPASSWORD: { secret: dbCredentialsRef.name, key: dbCredentialsRef.key },
|
|
233
234
|
PGRST_JWT_SECRET: { secret: jwtBundleName, key: 'jwtSecret' },
|
|
234
235
|
ANON_KEY: { secret: jwtBundleName, key: 'anonKey' },
|
|
235
236
|
SERVICE_KEY: { secret: jwtBundleName, key: 'serviceRoleKey' },
|
|
236
237
|
GLOBAL_S3_ACCESS_KEY: {
|
|
237
|
-
secret:
|
|
238
|
+
secret: store.credentialsSecret,
|
|
238
239
|
key: 'accessKey',
|
|
239
240
|
},
|
|
240
241
|
GLOBAL_S3_SECRET_KEY: {
|
|
241
|
-
secret:
|
|
242
|
+
secret: store.credentialsSecret,
|
|
242
243
|
key: 'secretKey',
|
|
243
244
|
},
|
|
244
245
|
} }))] })),
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;AAsJA,4BA0VC;;AAhfD,oCAAqD;AACrD,iDAAgE;AAChE,0CASqB;AA+ErB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,SAAgB,QAAQ,CAAC,KAAoB;IAC3C,MAAM,EACJ,IAAI,GAAG,UAAU,EACjB,SAAS,EAAE,aAAa,EACxB,IAAI,EACJ,QAAQ,GAAG,CAAC,EACZ,OAAO,GAAG,MAAM,EAChB,UAAU,GAAG,IAAI,EACjB,MAAM,GAAG,WAAW,EACpB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,SAAS,GAAG;QACV,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE;QAC1C,MAAM,EAAE,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
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Supabase backend platform \u2014 Postgres core with GoTrue auth, PostgREST, Realtime, Storage API (S3/RustFS) and ImgProxy. This is Supabase, NOT Apache Superset.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Berget AI AB",
|