mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
oops, just return a fake signature
This commit is contained in:
@@ -54,11 +54,13 @@
|
||||
"vars": {
|
||||
"ENVIRONMENT": "development", // overridden during deployment
|
||||
"SENTRY_RELEASE": "unknown", // overridden during deployment
|
||||
// Feature flag for `?sig=p1` response signing. OFF: signing buffers the whole
|
||||
// object into the isolate instead of streaming it from R2, then pays a SHA-1
|
||||
// over the full body plus an RSA-2048 private-key op on every edge-cache miss.
|
||||
// Nothing verifies the `Content-Signature` header today. Flip to true (and set
|
||||
// a real IMG_SIGNING_KEY) if something ever needs to.
|
||||
// Feature flag for REAL `?sig=p1` signing. OFF: the client only needs a
|
||||
// Content-Signature header to EXIST, and never checks it, while signing for
|
||||
// real buffers the whole object into the isolate instead of streaming it from
|
||||
// R2 and pays a SHA-1 over the full body plus an RSA-2048 private-key op on
|
||||
// every edge-cache miss. So the header is filled with a placeholder derived
|
||||
// from the object key (see stubSignature in src/img.app.ts). Flip to true if
|
||||
// anything ever needs to verify it.
|
||||
"IMG_SIGNING_ENABLED": false,
|
||||
// RSA-2048 private key (PKCS8 DER, base64) used to sign image responses
|
||||
// requested with ?sig=p1. This is an INSECURE DEV KEY committed for local
|
||||
|
||||
Reference in New Issue
Block a user