helm updates for flowgger and netflow #2823
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!2823
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2823/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: #2654
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2654
Original created: 2026-02-01T05:23:26Z
Original updated: 2026-02-01T05:25:00Z
Original head: carverauto/serviceradar:chore/k8s-updates
Original base: staging
Original merged: 2026-02-01T05:23:43Z by @mfreeman451
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
Description
Add
externalTrafficPolicyconfiguration to Helm templates for flowgger and netflow servicesUpdate demo values with new IP addresses and pool names for MetalLB
Set
externalTrafficPolicy: Localin demo and production Kubernetes manifestsAdd documentation comments explaining Calico BGP requirement for traffic policy
Diagram Walkthrough
File Walkthrough
flowgger.yaml
Add externalTrafficPolicy to flowgger servicehelm/serviceradar/templates/flowgger.yaml
externalTrafficPolicyfield to flowgger externalservice spec
Values.flowgger.externalService.externalTrafficPolicynetflow-collector.yaml
Add externalTrafficPolicy to netflow servicehelm/serviceradar/templates/netflow-collector.yaml
externalTrafficPolicyfield to netflow collectorservice spec
Values.netflowCollector.service.externalTrafficPolicyserviceradar-netflow-collector.yaml
Add externalTrafficPolicy to netflow servicek8s/demo/base/serviceradar-netflow-collector.yaml
externalTrafficPolicy: Localto netflow collector service specserviceradar-flowgger-external.yaml
Add externalTrafficPolicy to flowgger servicek8s/demo/prod/serviceradar-flowgger-external.yaml
externalTrafficPolicy: Localto flowgger external service specvalues.yaml
Add externalTrafficPolicy defaults with documentationhelm/serviceradar/values.yaml
externalTrafficPolicy: Clusterdefault for flowgger externalservice
externalTrafficPolicy: Clusterdefault for netflow collectorservice
values-demo.yaml
Update demo IPs, pools, and traffic policieshelm/serviceradar/values-demo.yaml
192.168.6.81to23.138.124.24192.168.6.82to23.138.124.25k3s-lan-pooltok3s-poolfor bothservices
externalTrafficPolicy: Localfor both flowgger and netflowservices
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2654#issuecomment-3830402974
Original created: 2026-02-01T05:23:52Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Public service exposure
Description: The demo Helm values introduce hardcoded public
loadBalancerIPaddresses (23.138.124.24and
23.138.124.25) which can unintentionally expose syslog/NetFlow ingestion endpoints tothe public Internet when applied, increasing the risk of unauthorized traffic ingestion,
DDoS, or data leakage if these endpoints are not additionally protected (e.g., by source
IP restrictions, firewall rules, or private address pools).
values-demo.yaml [94-107]
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/2654#issuecomment-3830404070
Original created: 2026-02-01T05:25:00Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Prevent invalid Kubernetes service manifest
Conditionally render the
externalTrafficPolicyfield only when the service typeis not
ClusterIPto prevent Kubernetes API validation errors during Helminstallation.
helm/serviceradar/templates/netflow-collector.yaml [145-152]
Suggestion importance[1-10]: 9
__
Why: This suggestion correctly identifies a bug where
helm installwould fail with default values becauseexternalTrafficPolicyis invalid for the default service typeClusterIP. The proposed fix prevents this deployment failure, making it a critical correction.Fix template field indentation
Replace the
withblock with anifblock and add proper indentation to ensure theexternalTrafficPolicyfield is rendered correctly in the final YAML.helm/serviceradar/templates/flowgger.yaml [193-195]
Suggestion importance[1-10]: 5
__
Why: The suggestion correctly points out that the current
{{- with ... }}block with a leading space on the next line will produce incorrect YAML indentation. The proposed fix using{{- if ... }}and adding indentation is a necessary correction for the Helm template to be valid.Correct YAML indentation in template
Replace the
withblock with anifblock and add proper indentation to ensure theexternalTrafficPolicyfield is correctly aligned in the generated servicemanifest.
helm/serviceradar/templates/netflow-collector.yaml [147-149]
Suggestion importance[1-10]: 5
__
Why: The suggestion correctly identifies that the current
{{- with ... }}block combined with a leading space on the next line will generate invalid YAML due to incorrect indentation. The proposed fix using{{- if ... }}and adding indentation is required for the Helm template to function correctly.Consolidate Kubernetes manifests into Helm
The suggestion recommends consolidating Kubernetes configurations into Helm
charts. It points out that maintaining both Helm and static manifests increases
overhead and risks inconsistencies.
Examples:
k8s/demo/base/serviceradar-netflow-collector.yaml [157]
helm/serviceradar/values-demo.yaml [107]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies a significant architectural issue of maintaining parallel Helm and static Kubernetes configurations, which the PR perpetuates, and proposes a valid long-term solution.
Clarify default policy comment
Update the comment for
externalTrafficPolicyto clarify that the default isClusterand explain when to set it toLocal.helm/serviceradar/values.yaml [255-256]
Suggestion importance[1-10]: 6
__
Why: The suggestion correctly identifies that the comment for
externalTrafficPolicyis misleading, as it describes the behavior ofLocalwhile the default value isCluster. Fixing this improves clarity and prevents potential misconfiguration by users.