Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(workers): drop em-dashes from the vendored worker_security docstrings and reword a cad params comment

nirholasdebdc79cb191
diff --git a/src/cad/params.js b/src/cad/params.js
index c61112947..c37fb761f 100644
--- a/src/cad/params.js
+++ b/src/cad/params.js
@@ -9,7 +9,7 @@
// WIDTH = 80 # Overall width [40..160 mm]
// WALL = 2.4 # Wall thickness [1.2..6 mm]
//
-// parseDesign() reads those lines into slider definitions, and applyParams()
+// The parser reads those lines into slider definitions, and the applier
// rewrites only the value on each matching line. Nothing else in the program is
// ever touched, so what the sliders build is exactly the source a user sees and
// downloads.
diff --git a/workers/avatar-pipeline-controller/worker_security.py b/workers/avatar-pipeline-controller/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/avatar-pipeline-controller/worker_security.py
+++ b/workers/avatar-pipeline-controller/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/avatar-reconstruction/worker_security.py b/workers/avatar-reconstruction/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/avatar-reconstruction/worker_security.py
+++ b/workers/avatar-reconstruction/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/cad-forge/worker_security.py b/workers/cad-forge/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/cad-forge/worker_security.py
+++ b/workers/cad-forge/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/garment-forge/worker_security.py b/workers/garment-forge/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/garment-forge/worker_security.py
+++ b/workers/garment-forge/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/longcat/worker_security.py b/workers/longcat/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/longcat/worker_security.py
+++ b/workers/longcat/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/model-hunyuan3d/worker_security.py b/workers/model-hunyuan3d/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/model-hunyuan3d/worker_security.py
+++ b/workers/model-hunyuan3d/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/model-text2motion/worker_security.py b/workers/model-text2motion/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/model-text2motion/worker_security.py
+++ b/workers/model-text2motion/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/model-trellis/worker_security.py b/workers/model-trellis/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/model-trellis/worker_security.py
+++ b/workers/model-trellis/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/model-triposg/worker_security.py b/workers/model-triposg/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/model-triposg/worker_security.py
+++ b/workers/model-triposg/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/model-triposr/worker_security.py b/workers/model-triposr/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/model-triposr/worker_security.py
+++ b/workers/model-triposr/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/model-video2motion/worker_security.py b/workers/model-video2motion/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/model-video2motion/worker_security.py
+++ b/workers/model-video2motion/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/model-video2scene/worker_security.py b/workers/model-video2scene/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/model-video2scene/worker_security.py
+++ b/workers/model-video2scene/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/rembg/worker_security.py b/workers/rembg/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/rembg/worker_security.py
+++ b/workers/rembg/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/remesh/worker_security.py b/workers/remesh/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/remesh/worker_security.py
+++ b/workers/remesh/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/rig/worker_security.py b/workers/rig/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/rig/worker_security.py
+++ b/workers/rig/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/segment/worker_security.py b/workers/segment/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/segment/worker_security.py
+++ b/workers/segment/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/stylize/worker_security.py b/workers/stylize/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/stylize/worker_security.py
+++ b/workers/stylize/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.
diff --git a/workers/texture/worker_security.py b/workers/texture/worker_security.py
index a0360fe96..21951efcd 100644
--- a/workers/texture/worker_security.py
+++ b/workers/texture/worker_security.py
@@ -7,11 +7,11 @@ file lives in each worker directory; keep them byte-identical when editing.
It provides three primitives that every worker needs:
- 1. ``require_api_key`` — constant-time bearer-token check (timing-safe).
- 2. ``fetch_remote_bytes`` — SSRF-hardened HTTP(S) fetch of caller-supplied
+ 1. ``require_api_key`` - constant-time bearer-token check (timing-safe).
+ 2. ``fetch_remote_bytes`` - SSRF-hardened HTTP(S) fetch of caller-supplied
URLs: https-only, DNS resolution with private/loopback/link-local/metadata
IP rejection, per-hop redirect re-validation, and a bounded response size.
- 3. ``safe_error`` — turns an exception into an opaque, correlation-id-tagged
+ 3. ``safe_error`` - turns an exception into an opaque, correlation-id-tagged
message safe to persist/return to callers, after logging the full
traceback server-side only.
"""
@@ -141,7 +141,7 @@ def fetch_remote_bytes(
Hardening applied:
* https-only (unless ``allow_http``).
- * every URL — including each redirect target — is DNS-resolved and
+ * every URL - including each redirect target - is DNS-resolved and
rejected if it maps to a private/loopback/link-local/metadata address.
* redirects are followed manually (max ``_MAX_REDIRECTS``) so each hop is
re-validated; httpx's own redirect following is disabled.