fix: resolve 1.0 audit bugs (closes #104, #105, #106, #107, #108) #109

Merged
sneak merged 6 commits from fix/1.0-audit-bugs into main 2026-02-20 13:47:12 +01:00
Showing only changes of commit cd0354e86c - Show all commits

View File

@ -1,6 +1,7 @@
package handlers package handlers
import ( import (
"context"
"encoding/json" "encoding/json"
"net/http" "net/http"
"strconv" "strconv"
@ -344,7 +345,11 @@ func (h *Handlers) HandleAPITriggerDeploy() http.HandlerFunc {
return return
} }
deployErr := h.deploy.Deploy(request.Context(), application, nil, true) // Use a detached context so the deployment continues even if the
// HTTP client disconnects.
deployCtx := context.WithoutCancel(request.Context())
deployErr := h.deploy.Deploy(deployCtx, application, nil, true)
if deployErr != nil { if deployErr != nil {
h.log.Error("api: failed to trigger deploy", "error", deployErr) h.log.Error("api: failed to trigger deploy", "error", deployErr)
h.respondJSON(writer, request, h.respondJSON(writer, request,