-
-
Notifications
You must be signed in to change notification settings - Fork 230
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(experimental): adds seclang parser. #1101
base: main
Are you sure you want to change the base?
Conversation
@jcchavezs Ready to merge? |
not really @fzipi I am hoping the requester to do something with it and
validate this is needed before merge it.
…On Sun, Jul 28, 2024 at 4:47 PM Felipe Zipitría ***@***.***> wrote:
@jcchavezs <https://github.com/jcchavezs> Ready to merge?
—
Reply to this email directly, view it on GitHub
<#1101 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXOYASXT6LDIZ4P3ACUJBLZOUAARAVCNFSM6AAAAABLDMZYZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGU2DIMZWHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jcchavezs Sorry I've been derailed a bit with other tasks, but this one is on my list, thanks |
Some really simple code to test:
go.mod:
Truncated output:
I can import parser from experimental packages, problem here is that it does not give any additional information like line number inside rule file or rule ID at least and error message is wrapped. The original request idea was to allow external code interface directly with parser and get a bit more information in case of invalid rules, to help actually find invalid rules (line number, id, ...), in current state it does not help much. |
…oraza into adds_parser_experimental_pkg
Valid point @s3rj1k. Try it now
|
@jcchavezs Yep, now it looks great and on-par with libmodsecurity, thanks! |
@jcchavezs Do we merge this one? |
@s3rj1k any chance you have public the code where you consume this parser? I am inclined to merge this but I would expect to have implementation code using this. |
sadly zero-chance |
what
why