[imperva_cloud_waf] Encode spaces in URL - #14220
Conversation
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
🚀 Benchmarks reportTo see the full report comment with |
| lang: painless | ||
| source: | | ||
| ctx.url.original = ctx.network.application + "://" + ctx.url.original | ||
| if: ctx.url?.original != null && ctx.network?.application != null |
There was a problem hiding this comment.
I think we should also check that neither of these is ''.
Note also that this can be a set processor:
- set:
field: url.original
value: '{{{network.application}}}://{{{url.original}}}'
if: ctx.url?.original != null && ctx.url.original != '' && ctx.network?.application != null && ctx.network.application != ''
There was a problem hiding this comment.
Yes, this looks more reliable. Thanks!
|
💚 Build Succeeded
History
|
efd6
left a comment
There was a problem hiding this comment.
We may have additional issues with this since there are other codepoints that must be percent encoded. Let's revisit if they become an issue.
|
Package imperva_cloud_waf - 1.12.1 containing this change is available at https://epr.elastic.co/package/imperva_cloud_waf/1.12.1/ |




Proposed commit message
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Pipeline Tests:
Related issues
Screenshots