imperva_cloud_waf: Handle multiple IPs in cef.extensions.xff - #13244
Merged
Conversation
kcreddy
commented
Mar 21, 2025
| "Customer": "CEFcustomer123", | ||
| "cs11": "[{\"api_specification_violation_type\":\"INVALID_PARAM_NAME\",\"parameter_name\":\"somename\"}]", | ||
| "deviceFacility": "mia", | ||
| "xff": "1.128.0.0, 81.2.69.144", |
Contributor
Author
There was a problem hiding this comment.
"xff": "1.128.0.0, 81.2.69.144" comma-separated values
kcreddy
marked this pull request as ready for review
March 21, 2025 16:33
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
efd6
reviewed
Mar 23, 2025
Comment on lines
+565
to
+575
| # - convert: | ||
| # field: cef.extensions.xff | ||
| # tag: convert_extensions_xff_to_ip | ||
| # target_field: imperva_cloud_waf.event.extensions.xff | ||
| # type: ip | ||
| # ignore_missing: true | ||
| # if: ctx.cef?.extensions?.xff != null && ctx.cef.extensions.xff != '' | ||
| # on_failure: | ||
| # - append: | ||
| # field: error.message | ||
| # value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}' |
Contributor
🚀 Benchmarks reportPackage
|
| Data stream | Previous EPS | New EPS | Diff (%) | Result |
|---|---|---|---|---|
event |
1636.66 | 1283.7 | -352.96 (-21.57%) | 💔 |
To see the full report comment with /test benchmark fullreport
💚 Build Succeeded
History
cc @kcreddy |
|
efd6
approved these changes
Mar 25, 2025
Contributor
|
Package imperva_cloud_waf - 1.11.2 containing this change is available at https://epr.elastic.co/package/imperva_cloud_waf/1.11.2/ |
flexitrev
pushed a commit
that referenced
this pull request
Mar 25, 2025
It is possible that cef.extensions.xff can contain ',' separated IPs. Handle such cases and convert the field as array by default.
flexitrev
pushed a commit
that referenced
this pull request
Mar 28, 2025
It is possible that cef.extensions.xff can contain ',' separated IPs. Handle such cases and convert the field as array by default.
flexitrev
pushed a commit
that referenced
this pull request
Mar 28, 2025
It is possible that cef.extensions.xff can contain ',' separated IPs. Handle such cases and convert the field as array by default.
flexitrev
pushed a commit
that referenced
this pull request
Mar 28, 2025
It is possible that cef.extensions.xff can contain ',' separated IPs. Handle such cases and convert the field as array by default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Proposed commit message
Checklist
changelog.ymlfile.How to test this PR locally
Passes pipeline tests (with comma-separated
xff)