@lunora/server 1.0.0-alpha.274 → 1.0.0-alpha.275
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.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2324,8 +2324,10 @@ interface StorageServeAuthzContext {
|
|
|
2324
2324
|
* **403**; a throwing gate is a denial too, never a 500 (fail closed, mirroring
|
|
2325
2325
|
* `@lunora/storage`'s `createUploadHandler`).
|
|
2326
2326
|
*
|
|
2327
|
-
* For a signed-URL topology this is where `
|
|
2328
|
-
* `
|
|
2327
|
+
* For a signed-URL topology this is where `authorizeSignedGet` goes:
|
|
2328
|
+
* `authorizeSignedGet(secret, { bucketName })` from `@lunora/storage`. A bare
|
|
2329
|
+
* `verifySignedUrl(...).valid` check admits an upload URL, another bucket or
|
|
2330
|
+
* another key.
|
|
2329
2331
|
*/
|
|
2330
2332
|
type StorageServeAuthorizer = (context: StorageServeAuthzContext) => boolean | Promise<boolean>;
|
|
2331
2333
|
/**
|
|
@@ -2339,7 +2341,7 @@ type StorageServeAuthorizer = (context: StorageServeAuthzContext) => boolean | P
|
|
|
2339
2341
|
* `authorize` runs FIRST and is mandatory: this helper reads bytes out of a
|
|
2340
2342
|
* bucket and hands them to whoever asked, so without a gate every mounted route
|
|
2341
2343
|
* is an open object store. It does not verify signed URLs by itself — pass
|
|
2342
|
-
* `
|
|
2344
|
+
* `authorizeSignedGet` (or a session check) as the gate.
|
|
2343
2345
|
*
|
|
2344
2346
|
* Every response carries `x-content-type-options: nosniff`, and any object whose
|
|
2345
2347
|
* content type is not a raster image or media file also carries
|
package/dist/index.d.ts
CHANGED
|
@@ -2324,8 +2324,10 @@ interface StorageServeAuthzContext {
|
|
|
2324
2324
|
* **403**; a throwing gate is a denial too, never a 500 (fail closed, mirroring
|
|
2325
2325
|
* `@lunora/storage`'s `createUploadHandler`).
|
|
2326
2326
|
*
|
|
2327
|
-
* For a signed-URL topology this is where `
|
|
2328
|
-
* `
|
|
2327
|
+
* For a signed-URL topology this is where `authorizeSignedGet` goes:
|
|
2328
|
+
* `authorizeSignedGet(secret, { bucketName })` from `@lunora/storage`. A bare
|
|
2329
|
+
* `verifySignedUrl(...).valid` check admits an upload URL, another bucket or
|
|
2330
|
+
* another key.
|
|
2329
2331
|
*/
|
|
2330
2332
|
type StorageServeAuthorizer = (context: StorageServeAuthzContext) => boolean | Promise<boolean>;
|
|
2331
2333
|
/**
|
|
@@ -2339,7 +2341,7 @@ type StorageServeAuthorizer = (context: StorageServeAuthzContext) => boolean | P
|
|
|
2339
2341
|
* `authorize` runs FIRST and is mandatory: this helper reads bytes out of a
|
|
2340
2342
|
* bucket and hands them to whoever asked, so without a gate every mounted route
|
|
2341
2343
|
* is an open object store. It does not verify signed URLs by itself — pass
|
|
2342
|
-
* `
|
|
2344
|
+
* `authorizeSignedGet` (or a session check) as the gate.
|
|
2343
2345
|
*
|
|
2344
2346
|
* Every response carries `x-content-type-options: nosniff`, and any object whose
|
|
2345
2347
|
* content type is not a raster image or media file also carries
|