envoy icon indicating copy to clipboard operation
envoy copied to clipboard

allow configuring max request buffer size without buffering it per route

Open spacewander opened this issue 10 months ago • 9 comments

Commit Message: allow configuring max request buffer size without buffering it per route Additional Description: With this feature, we can increase the buffer size for some routes which has filters that buffers the request optionally, for example, a WAF filter. Risk Level: Low Testing: Unit & Integration Docs Changes: Release Notes: Platform Specific Features: [Optional Runtime guard:] Fixes #32205 [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional API Considerations:]

spacewander avatar Apr 09 '24 11:04 spacewander

As a reminder, PRs marked as draft will not be automatically assigned reviewers, or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

:cat:

Caused by: https://github.com/envoyproxy/envoy/pull/33412 was opened by spacewander.

see: more, trace.

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/). envoyproxy/api-shepherds assignee is @markdroth CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

:cat:

Caused by: https://github.com/envoyproxy/envoy/pull/33412 was opened by spacewander.

see: more, trace.

/assign @KBaichoo

RyanTheOptimist avatar Apr 10 '24 16:04 RyanTheOptimist

The discussion in #32205 seems to have landed on adding this to the buffer filter instead of adding a knob to the route config. I think that approach would be better than adding a new top-level field like this.

/wait

markdroth avatar Apr 10 '24 19:04 markdroth

The discussion in #32205 seems to have landed on adding this to the buffer filter instead of adding a knob to the route config. I think that approach would be better than adding a new top-level field like this.

/wait

There is a later discussion happened in https://github.com/envoyproxy/envoy/pull/32571. Sorry for not sync it to the original discussion issue.

@alyssawilk explained a new idea about adding it to the route part: https://github.com/envoyproxy/envoy/pull/32571#pullrequestreview-1917411023

I think it's reasonable so I create a new PR here.

spacewander avatar Apr 11 '24 02:04 spacewander

The discussion in #32205 seems to have landed on adding this to the buffer filter instead of adding a knob to the route config. I think that approach would be better than adding a new top-level field like this. /wait

There is a later discussion happened in #32571. Sorry for not sync it to the original discussion issue.

@alyssawilk explained a new idea about adding it to the route part: #32571 (review)

I think it's reasonable so I create a new PR here.

May I ask why you can't set the buffer limit in your WAF filter?

soulxu avatar Apr 11 '24 13:04 soulxu

The discussion in #32205 seems to have landed on adding this to the buffer filter instead of adding a knob to the route config. I think that approach would be better than adding a new top-level field like this. /wait

There is a later discussion happened in #32571. Sorry for not sync it to the original discussion issue. @alyssawilk explained a new idea about adding it to the route part: #32571 (review) I think it's reasonable so I create a new PR here.

May I ask why you can't set the buffer limit in your WAF filter?

@soulxu Two reasons:

  1. The WAF filter is written in WASM and there is no way to set limit in Wasm code.
  2. There can be a general solution, not just apply to WAF filter, but also to any filter which buffering the data optionally.

spacewander avatar Apr 12 '24 02:04 spacewander

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

github-actions[bot] avatar May 12 '24 04:05 github-actions[bot]

@soulxu Would you take a look at this again?

spacewander avatar May 13 '24 03:05 spacewander

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

github-actions[bot] avatar Jun 12 '24 08:06 github-actions[bot]

Any update?

spacewander avatar Jun 12 '24 09:06 spacewander

@soulxu Would you take a look at this again?

sorry, I missed your message, I will try to give a review tomorrow

soulxu avatar Jun 12 '24 09:06 soulxu

/assign @soulxu

soulxu avatar Jun 12 '24 09:06 soulxu

/wait

API comment

tyxia avatar Jun 21 '24 18:06 tyxia

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

github-actions[bot] avatar Jul 24 '24 04:07 github-actions[bot]

This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

github-actions[bot] avatar Jul 31 '24 08:07 github-actions[bot]