fixing build issues after zen upgrade #2518
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!2518
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2518/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: #2074
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2074
Original created: 2025-12-08T02:58:35Z
Original updated: 2025-12-08T03:04:30Z
Original head: carverauto/serviceradar:chore/bump_zen
Original base: main
Original merged: 2025-12-08T03:04:27Z 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
Update zen-engine dependency from 0.47 to 0.52
Adapt code to zen-engine API changes in imports and types
Update DecisionLoader trait implementation for new signature
Improve error handling and messages in message processor
Diagram Walkthrough
File Walkthrough
Cargo.toml
Upgrade zen-engine dependency versioncmd/consumers/zen/Cargo.toml
engine.rs
Update imports and simplify type aliasescmd/consumers/zen/src/engine.rs
handler::custom_node_adapter::NoopCustomNodeto
nodes::custom::NoopCustomNodeSharedEnginetype alias to useDecisionEnginedirectlyinstead of generic type parameters
EngineTypetype aliaskv_loader.rs
Adapt DecisionLoader trait implementationcmd/consumers/zen/src/kv_loader.rs
FutureandPinto support new trait signatureDecisionLoader::loadmethod signature to returnPin
Future>>instead of async fnRemove
.into()calls onLoaderErrorvariants to match new error typeexpectations
Wrap async operation withBox::pin()for trait compatibilitymessage_processor.rs
Improve error handling and messagescmd/consumers/zen/src/message_processor.rs
le.as_ref()toleforLoaderErrorcase
anyhow::anyhow!()macro instead ofwrapping with context
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2074#issuecomment-3624361265
Original created: 2025-12-08T02:59:04Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
No security concerns identified
No security vulnerabilities detected by AI analysis. Human verification advised for critical code.🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
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 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: Comprehensive Audit Trails
Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.
Status:
Missing audit logs: New error and rule-evaluation paths do not add structured audit logs for critical actions
(rule load/evaluate success/failure), making it unclear who did what and when.
Referred Code
Generic: Secure Error Handling
Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.
Status:
Detailed errors surfaced: The returned error includes internal details via
{e}which might be propagated to usersdepending on caller behavior, risking leakage of internal information.
Referred Code
Generic: Security-First Input Validation and Data Handling
Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities
Status:
Input validation unclear: The code constructs decision keys from external message subjects and evaluates rules
without visible sanitation or validation in the new changes.
Referred Code
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/2074#issuecomment-3624364388
Original created: 2025-12-08T02:59:54Z
PR Code Suggestions ✨
No code suggestions found for the PR.