Skip to content

feat: pure-ASGI security middleware (no BaseHTTPMiddleware) #157

Closed

Description

@rennf93

Framework projects that ban BaseHTTPMiddleware (open-webui bans it in main.py with a written rationale: the anyio task group cancels in-flight downstream DB calls on client disconnect) currently cannot adopt guard at all.

Requested: a pure-ASGI variant of SecurityMiddleware running the identical screening pipeline without BaseHTTPMiddleware, with body replay for the downstream app and header injection directly on http.response.start.

Delivered by #156.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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