-
Notifications
You must be signed in to change notification settings - Fork 489
[iptables] invoke community_id processor only for supported protocols #10676
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
[iptables] invoke community_id processor only for supported protocols #10676
Conversation
🚀 Benchmarks reportTo see the full report comment with |
Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices) |
Support for named iana protocols is limited by the table in the processor, but if the log line has I don't think I have ever compared the named transports in netfilter to see if the table has full coverage. |
Supported named iana protocols of the processor are here and indeed 47 is supported. However, iptables integration doesn't set any iana_number and anything that comes in |
Nothing, your fix is good for the bug at hand. I mention the
|
packages/iptables/data_stream/log/elasticsearch/ingest_pipeline/default.yml
Outdated
Show resolved
Hide resolved
packages/iptables/data_stream/log/elasticsearch/ingest_pipeline/default.yml
Outdated
Show resolved
Hide resolved
I will open a new issue for handling It should not assume that every iana_number has a name. And instead it should be able to compute the value after knowing that it not TCP / UDP / SCTP / ICMP. Refs Update: Opened ES issue at elastic/elasticsearch#111517 |
New issue: #10678 |
hmmm you are right @andrewkroh I for some reason assumed the same after looking at the community id src, that PROTO= is a name of protocol and not a number, but this assumption is not correct. I did push a commit to handle that 🙂 |
packages/iptables/data_stream/log/elasticsearch/ingest_pipeline/default.yml
Outdated
Show resolved
Hide resolved
packages/iptables/data_stream/log/elasticsearch/ingest_pipeline/default.yml
Outdated
Show resolved
Hide resolved
packages/iptables/data_stream/log/elasticsearch/ingest_pipeline/default.yml
Outdated
Show resolved
Hide resolved
… transport fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💚 Build Succeeded
History
|
|
Package iptables - 1.16.1 containing this change is available at https://epr.elastic.co/search?package=iptables |
…elastic#10676) * fix: invoke community_id processor only for supported protocols * feat: update pull request link in changelog.yml * fix: revisit on_failure error message format * fix: handle correctly numeric PROTO values * fix: update README.md * fix: rework iana_number and transport processing * fix: switch to a single rename processor for handling iana_number and transport fields
…elastic#10676) * fix: invoke community_id processor only for supported protocols * feat: update pull request link in changelog.yml * fix: revisit on_failure error message format * fix: handle correctly numeric PROTO values * fix: update README.md * fix: rework iana_number and transport processing * fix: switch to a single rename processor for handling iana_number and transport fields
Proposed commit message
This PR prevents invoking the
community_id
processor for unsupported protocols (supported protocols captured here) foriptables
integrationChecklist
changelog.yml
file.Author's Checklist
N/A
How to test this PR locally
elastic-package test pipeline
Related issues
Screenshots
N/A