Giter Club home page Giter Club logo

Comments (9)

jptosso avatar jptosso commented on August 23, 2024

Hey! The reason behind this is long-term maintenance; if you want a specific API or set of APIs, please mention them on this issue so we can review this. We don't have any problem with exposing additional APIs as long as it's safe, it doesn't break compatibility, and there is a clear use case.

There are certain limitations, for example, we cannot expose additional functions for existing immutable interfaces, as it breaks compatibility. In which case we would have to release Wrappers to access to them. Like:

tx := tx.(types.TransactionState)
tx = tx.(otherpackage.TransactionExtended)

from coraza.

s3rj1k avatar s3rj1k commented on August 23, 2024

In my case described above I guess I would want access to:

  • corazawaf.NewWAF()
  • seclang.NewParser()
  • parser.FromString()

from coraza.

fzipi avatar fzipi commented on August 23, 2024

Do you want to create a new parser, or just add some directives?

from coraza.

s3rj1k avatar s3rj1k commented on August 23, 2024

No, some utility that checks rules validity and has a bit more verbose error messages in regards to where the actual broken rule is (file:linenumber).

from coraza.

jcchavezs avatar jcchavezs commented on August 23, 2024

from coraza.

s3rj1k avatar s3rj1k commented on August 23, 2024

@jptosso Another solution maybe just standalone CLI utility in repository that just loads ruleset and reports error if any, I am fine with doing PRs as long as there is some kind of simplified entry point for rule testing that is.

Also this will be similar to what has libmodsecurity, they ship standalone CLI to just do rule verification.

This way there is no need to wraparound into experimental API.

from coraza.

jcchavezs avatar jcchavezs commented on August 23, 2024

from coraza.

s3rj1k avatar s3rj1k commented on August 23, 2024

@jptosso Yea, sounds also good

from coraza.

jcchavezs avatar jcchavezs commented on August 23, 2024

Check https://github.com/corazawaf/coraza/pull/1101/files

from coraza.

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.