FEATURE: Togglable server-side (Docker) log streaming debug endpoint #45
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Title:
FEATURE: Togglable server-side (Docker) log streaming debug endpoint with dual-authentication
Problem / Requirement:
Administrators and developers need a lightweight, real-time method to stream application stdout/stderr logs (which correspond exactly to Docker container logs in standard setups) directly through the API. This enables easier live debugging without requiring full Docker daemon or terminal access.
Success Criteria:
Amended the plan to include a high-priority bypass using the
X-Webhook-Secretrequest header:X-Webhook-Secretheader, we verify if it matches the configuredSOFARR_WEBHOOK_SECRETenvironment variable.I have updated the
implementation_plan.mdartifact to reflect this amendment.Amended the plan to add client-side console log capturing and streaming options:
Proposed Client Logging Design:
console.log,console.warn,console.error) at client-side startup.POST /api/debug/client-logs(every 2 seconds or when the queue hits 20 items) to minimize network overhead.clientLogBuffer.GET /api/debug/client-logs/stream(under the exact same dual-auth/webhook-secret constraints) to stream client-side logs in real-time via SSE to debugging tools.The
implementation_plan.mdartifact has been successfully updated with these options.FEATURE: Log streaming debug endpoint with dual-authentication and runtime configurationto FEATURE: Togglable server-side (Docker) log streaming debug endpointResolved in commit
3c6791658c.