Skip to content

[SECURITY] Contain backend panics in the goroutine executing each request #26

Open

Description

@jeffreyaven

StackQL tracking: stackql/stackql#830
Priority: HIGH
Effort: MEDIUM

Recovery must run in the goroutine executing the backend request. Parent-goroutine recovery and semaphore cleanup cannot contain a panic elsewhere.

Acceptance:

  • Add recovery boundaries around wire-owned goroutines invoking backend work.
  • Inject panics into simple and extended query paths.
  • Keep the server available to other connections.
  • Return a sanitized protocol error or close the affected connection when necessary.
  • Release streams, admission slots and other wire-owned resources.
  • Preserve useful operator diagnostics without leaking sensitive data.

Document the boundary: host/SDK-created goroutines require their own handling. StackQL must test the assembled server and retain separate root-cause fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions