Update/rust edge onboarding #2537
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!2537
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2537/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: #2096
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2096
Original created: 2025-12-10T05:44:29Z
Original updated: 2025-12-10T15:00:01Z
Original head: carverauto/serviceradar:update/rust_edge_onboarding
Original base: main
Original merged: 2025-12-10T14:59:57Z 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, Tests
Description
Add EL9 (RHEL 9) build support with ZFS-enabled sysmon binary
--config=el9Bazel configuration targeting Oracle Linux 9Implement version management system via Bazel module extension
build/version.bzlreads VERSION file at load timeEnhance RPM packaging with dynamic version/release substitution
package_file_nameparameter topkg_rpmrulesMigrate GitHub Actions to self-hosted runners (arc-runner-set)
Add manifest flag to release publisher for flexible artifact selection
Diagram Walkthrough
File Walkthrough
15 files
New Bazel module extension for version managementAdd ZFS constraint and EL9 RBE platform definitionAdd dynamic RPM naming and spec template supportSplit sysmon into ZFS and non-ZFS variants with custom specSeparate EL9 packages from standard release artifactsExport custom RPM spec template fileNew custom RPM spec template disabling AutoReqAdd ZFS-enabled library and binary targets with constraintsAdd manifest flag for flexible artifact selectionAdd separate publish_packages_el9 binary targetNew workflow to build EL9 RBE executor Docker imageAdd EL9 package publishing step with ZFS supportAdd version_ext module extension and libzetta crate dependencyAdd ZFS development libraries and update library pathsRefactor to separate musl and ZFS builder stages7 files
Add el9 build configuration with EL9 platform settingsMigrate to self-hosted arc-runner-set runnersMigrate to self-hosted arc-runner-set runnersMigrate to self-hosted arc-runner-set runnersMigrate to self-hosted arc-runner-set runnersMigrate to self-hosted arc-runner-set runnersMigrate to self-hosted arc-runner-set runners1 files
Update checkout action version from v6 to v41 files
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2096#issuecomment-3635492179
Original created: 2025-12-10T05:45:09Z
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: 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
Generic: Comprehensive Audit Trails
Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.
Status:
Action Logging: The new publishing step executes critical release actions without adding explicit audit
logs that include actor identity and outcomes, making it unclear if all critical actions
are recorded.
Referred Code
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status:
Error Handling: The EL9 publish step exits on failure without retry or detailed diagnostic logging beyond
a generic message, which may not provide actionable context for failures.
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/2096#issuecomment-3635494895
Original created: 2025-12-10T05:46:21Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Consolidate build logic into Bazel
Eliminate the redundant
cargobuild process within theDockerfile.rpm.sysmonfile. Instead, leverage the existing Bazel build system to produce the binaries
and use those artifacts directly for RPM packaging.
Examples:
docker/rpm/Dockerfile.rpm.sysmon [1-76]
cmd/checkers/sysmon/BUILD.bazel [38-89]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: This suggestion correctly identifies a major architectural flaw where a parallel build system in Docker undermines the purpose of using Bazel, leading to maintenance overhead and potential inconsistencies.
Avoid hardcoding the Docker image tag
Avoid hardcoding the Docker image tag
v1.0.23in thebuild-rbe-image-el9.ymlworkflow. Instead, adopt a versioning strategy based on git tags to ensure image
versions are explicit and immutable.
.github/workflows/build-rbe-image-el9.yml [41-51]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies that hardcoding the Docker image tag
v1.0.23is risky, as it can lead to overwriting a stable image and breaking remote builds. Proposing a git-tag-based versioning strategy is a significant improvement for maintainability and build stability.Make manifest flag a required argument
Make the
-manifestflag a required argument inrelease/publish_packages.go.Removing the default value forces the caller to explicitly provide the manifest
path, which improves robustness and clarity since the tool is used with
different manifests.
release/publish_packages.go [91]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies that having a default manifest path is brittle, given that the tool is now used in two different contexts with different manifests. Making the
-manifestflag required forces explicit configuration, making the build definitions more robust and less ambiguous.Optimize Rust installation in Dockerfile
Optimize the Rust installation in
docker/rpm/Dockerfile.rpm.sysmonby using theminimalprofile withrustup. This will create a smaller, more efficient buildstage by installing only the necessary compiler and Cargo components.
docker/rpm/Dockerfile.rpm.sysmon [43-45]
Suggestion importance[1-10]: 6
__
Why: The suggestion provides a valid optimization by using the
minimalprofile for therustupinstallation, which reduces Docker image size and build time by avoiding unnecessary components like documentation.Improve handling of boolean script argument
Refactor the handling of the
OVERWRITE_ASSETSvariable in the release workflowscript. Explicitly pass
--overwrite_assets=trueor--overwrite_assets=falsetomake the script's behavior clearer and more robust.
.github/workflows/release.yml [315-317]
Suggestion importance[1-10]: 5
__
Why: The suggestion correctly points out that the shell logic for the
OVERWRITE_ASSETSflag is brittle. The proposed change makes the argument passing more explicit and robust by always providing a cleartrueorfalsevalue, improving the script's reliability.