You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5c58e02
Browse filesBrowse the repository at this point in the historyBrowse files
fix(comfy): redact reflected request credentials across generation failures
Reuse the Ollama exact-header redactor through the provider HTTP SDK, scrub structured and truncated diagnostics before retaining them, and cover decoded Basic credentials observed in real ComfyUI proxy failures. Preserve optional header and seed behavior while consolidating tests and documenting the shared boundary.
Co-authored-by: Markus Hartung <[email protected]>
|`mode`|`"local"` or `"cloud"`| Connection mode. Defaults to `"local"`. |
217
-
|`baseUrl`| string | Defaults to `http://127.0.0.1:8188` for local or `https://cloud.comfy.org` for cloud. |
218
-
|`apiKey`| string | Optional inline key, alternative to `COMFY_API_KEY` / `COMFY_CLOUD_API_KEY` env vars. |
219
-
|`allowPrivateNetwork`| boolean | Allow a private/LAN `baseUrl` in cloud mode or a local private-DNS FQDN. |
220
-
|`headers`| object (string → string or [secret reference](/gateway/configuration-reference#secrets)) | Extra headers sent with every request, e.g. `Authorization` for a ComfyUI instance behind HTTP auth. Each value accepts a literal string or a SecretRef, same as `apiKey`. Merged over the plugin's own headers; a key set here always wins, except a configured `Content-Type` is ignored on image-upload requests specifically, since the multipart form boundary there must come from the runtime. A header pointed at an unresolvable SecretRef fails the request rather than sending it unauthenticated. |
|`mode`|`"local"` or `"cloud"`| Connection mode. Defaults to `"local"`. |
217
+
|`baseUrl`| string | Defaults to `http://127.0.0.1:8188` for local or `https://cloud.comfy.org` for cloud. |
218
+
|`apiKey`| string or SecretRef | Optional cloud key, alternative to `COMFY_API_KEY` / `COMFY_CLOUD_API_KEY` env vars. |
219
+
|`allowPrivateNetwork`| boolean | Allow a private/LAN `baseUrl` in cloud mode or a local private-DNS FQDN. |
220
+
|`headers`| object | Extra request headers; each value accepts a string or SecretRef. |
221
+
222
+
Use `headers.Authorization` for a ComfyUI instance behind HTTP authentication.
223
+
Prefer a [secret reference](/gateway/configuration-reference#secrets) for credentials.
224
+
Headers apply to uploads, workflow submissions, polling, and downloads in both
225
+
modes. They override default headers case-insensitively, except `Content-Type`
226
+
on image uploads: the runtime sets the multipart boundary. An unavailable
227
+
header SecretRef fails before any request is sent. Reflected header values are
228
+
redacted from response errors.
221
229
222
230
<Note>
223
231
In `local` mode, loopback/private IP literals and single-label service names such as `http://comfyui:8188` work without `allowPrivateNetwork`. Public-looking private-DNS FQDNs such as `https://comfy.local.example.com` require `allowPrivateNetwork: true`. Private-origin trust stays scoped to the configured scheme, hostname, and port; local redirects cannot leave the configured hostname, while cloud redirects to public CDNs are checked with the default SSRF policy.
0 commit comments