fix: Netflow tweaks to collector conversions and bump 0.8.4 version #2826
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2826
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2826/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #2658
Original author: @mikemiles-dev
Original URL: https://github.com/carverauto/serviceradar/pull/2658
Original created: 2026-02-01T18:34:33Z
Original updated: 2026-02-03T23:06:59Z
Original head: mikemiles-dev/serviceradar:fix/netflow_tweaks
Original base: staging
User description
IMPORTANT: Please sign the Developer Certificate of Origin
Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
PR Type
Enhancement, Bug fix
Description
Add protocol name field to NetFlow data collection and display
protocol_namefrom NetFlow packets in Rust collectorImprove field value conversion robustness in NetFlow parser
DataNumberandProtocolTypevariants explicitlyRefactor cache statistics structure for simplified reporting
CacheStatsVectype to use unifiedParserCacheStatsUpdate dependencies and add comprehensive test coverage
netflow_parserfrom 0.8.1 to 0.8.4Diagram Walkthrough
File Walkthrough
7 files
Add protocol name display with intelligent fallbackImplement protocol name extraction and robust field conversionsRefactor cache statistics to unified structureUpdate metrics logging for consolidated cache statsUse protocol_name field with fallback to numeric mappingUse protocol_name field with fallback to numeric mappingAdd protocol_name string field to FlowMessage1 files
Add missing nats_creds_file field to test config1 files
Bump netflow_parser dependency to 0.8.4Imported GitHub PR comment.
Original author: @CLAassistant
Original URL: https://github.com/carverauto/serviceradar/pull/2658#issuecomment-3831727232
Original created: 2026-02-01T18:34:39Z
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
mikemiles-dev seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2658#issuecomment-3831728508
Original created: 2026-02-01T18:35:10Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Log injection
Description: Untrusted NetFlow source identifiers are interpolated directly into log lines via
source(derived from parser keys) without sanitization, which could enable log forging/injection
(e.g., embedded newlines/control characters) if an attacker can influence the parsed
source key representation.
metrics.rs [34-63]
Referred Code
🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
Generic: Comprehensive Audit Trails
Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.
Status: Passed
Generic: Meaningful Naming and Self-Documenting Code
Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting
Status: Passed
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status: Passed
Generic: Secure Error Handling
Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.
Status: Passed
Generic: Secure Logging Practices
Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.
Status: Passed
Generic: Security-First Input Validation and Data Handling
Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities
Status: Passed
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2658#issuecomment-3831730820
Original created: 2026-02-01T18:36:18Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Consolidate protocol mapping logic
To improve maintainability, centralize the protocol number-to-name mapping
within the Rust collector. This involves removing the redundant fallback logic
from the OCSF mapping file and the Elixir web UI.
Examples:
packaging/zen/rules/netflow_to_ocsf.json [69]
web-ng/lib/serviceradar_web_ng_web/live/netflow_live/index.ex [264-275]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: This is a significant architectural suggestion that correctly identifies duplicated logic introduced in the PR across multiple components, proposing a cleaner, more maintainable single-source-of-truth design.
annotate async test properly
Add the
#[tokio::test]attribute to thetest_publisher_creationfunction toensure it is executed by the test runner.
rust/netflow-collector/src/publisher.rs [219-243]
[To ensure code accuracy, apply this suggestion manually]Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies that the
test_publisher_creationfunction is not a runnable test and proposes adding the#[tokio::test]attribute to fix it.Imported GitHub PR comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2658#issuecomment-3844288052
Original created: 2026-02-03T23:06:58Z
closing, stale, already merged with another PR
Pull request closed