Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ws): introduce limits on HTTP body/header size #195

Merged

Conversation

thesuperzapper
Copy link
Member

This PR rejects clearly malformed/malicious HTTP requests by hard dropping the connection if:

  1. The header size exceeds 128 Kib
  2. The body size exceeds 4 Mib

Also, we were not using the ReadJSON method, so I have removed it to avoid confusion.

@google-oss-prow google-oss-prow bot requested a review from kimwnasptd February 5, 2025 19:59
@thesuperzapper thesuperzapper requested review from ederign and removed request for kimwnasptd February 5, 2025 19:59
@ederign
Copy link
Member

ederign commented Feb 5, 2025

/lgtm

@thesuperzapper
Copy link
Member Author

/approve

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ederign, thesuperzapper

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit f9da864 into kubeflow:notebooks-v2 Feb 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants