Git Product home page Git Product logo

Comments (8)

rcbarnett-zz avatar rcbarnett-zz commented on May 18, 2024

Original reporter: brectanus

from modsecurity.

rcbarnett-zz avatar rcbarnett-zz commented on May 18, 2024

brectanus: Changeset: 1185

from modsecurity.

rcbarnett-zz avatar rcbarnett-zz commented on May 18, 2024

ivanr: The code is all right, but I don't think the name of the ctl option is adequate, especially in the light of MODSEC-17. There are two different features here: one is request buffering from an external point of view, and the other is the same but from the internal point of view. I think most users would take request buffering to refer to the former. For example, ModSecurity 2.5.6 always buffers requests, but what we are adding with this ticket is having request data in a continuous buffer.

Being practical, I think we should only change the name of the directive at this point to, say, haveRequestBodyVariable, purely from the perspective that this feature is going to be used by 2.5.x users to inspect traffic that they wouldn't otherwise be able to inspect.

from modsecurity.

rcbarnett-zz avatar rcbarnett-zz commented on May 18, 2024

brectanus: I agree, but I am not sure that haveRequestBodyVariable makes much sense to the user either. What we are doing is forcing the creation and allowing use of REQUEST_BODY. Some other choices:

  • setRequestBodyVariable
  • forceRequestBodyVariable
  • allowRequestBodyVariable

Any preference?

from modsecurity.

rcbarnett-zz avatar rcbarnett-zz commented on May 18, 2024

ivanr: I think forceRequestBodyVariable is the best choice.

from modsecurity.

rcbarnett-zz avatar rcbarnett-zz commented on May 18, 2024

brectanus: Ivan,

I am just waiting a review on this before closing.

Thanks,
-B

from modsecurity.

rcbarnett-zz avatar rcbarnett-zz commented on May 18, 2024

brectanus: The attached patch adds support for ctl:requestBodyBuffering=on|off to force request body buffering in memory and populating REQUEST_BODY.

from modsecurity.

rcbarnett-zz avatar rcbarnett-zz commented on May 18, 2024

brectanus: Changed in #1201.

from modsecurity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.