wip #2449
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!2449
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2449/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: #1981
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1981
Original created: 2025-11-23T14:54:13Z
Original updated: 2025-11-23T14:55:34Z
Original head: carverauto/serviceradar:chore/fixing_pub_pkgs
Original base: main
Original merged: 2025-11-23T14:54:51Z 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, Other
Description
Add rpmbuild installation and Bazel cache refresh in release workflow
Disable remote execution/cache for packaging to ensure local rpmbuild availability
Switch package publishing from RBE to local execution with platform constraints
Create new linux_pkg_local platform with rules_pkg rpm compatibility gate
Diagram Walkthrough
File Walkthrough
release.yml
Configure local rpmbuild execution for package publishing.github/workflows/release.yml
bazel clean --expungeafterrpm install
--config=remoteto--config=no_remotewith local platform and rpmbuild availability flag
BUILD.bazel
Add linux_pkg_local platform for rpm packagingbuild/platforms/BUILD.bazel
linux_pkg_localplatform targeting x86_64 Linux@rules_pkg//pkg:not_compatibleconstraint to satisfy rules_pkgrpm compatibility requirements
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1981#issuecomment-3568037676
Original created: 2025-11-23T14:54:35Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Supply chain risk
Description: Installing and invoking system-wide packages with sudo in CI without pinning versions or
verifying package integrity (apt-get update/install of rpm/rpm2cpio) enables supply-chain
risk if the package repository is compromised or changes unexpectedly; consider pinning
versions, using apt-get with signed repository configuration, or containerized, pinned
images.
release.yml [75-87]
Referred Code
Build config persistence
Description: Disabling remote cache/execution globally by writing .bazelrc.remote may unintentionally
persist across subsequent workflow steps or jobs if the workspace is cached or artifacts
are reused, potentially altering build isolation and trust assumptions; ensure the change
is scoped to the job and restored/isolated.
release.yml [218-223]
Referred Code
Non-hermetic build risk
Description: Forcing local execution of packaging (no remote) relies on the runner’s environment and
network and may exfiltrate secrets via unpinned tools or environment differences during
bazel run; prefer hermetic containers or locked toolchains to minimize environmental
attack surface.
release.yml [263-268]
Referred 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:
Missing Audit Logs: Workflow steps that modify build environment (package install, cache expunge, remote
toggle) add no audit-oriented logging of actor, timestamp, or outcomes beyond default
GitHub Actions logs.
Referred Code
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status:
Limited Failure Handling: Shell steps perform installs and Bazel operations without explicit retries or contextual
error messaging beyond a single rpmbuild check, which may cause opaque failures in CI
environments.
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/1981#issuecomment-3568038417
Original created: 2025-11-23T14:55:34Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Simplify forcing local RPM builds
The current method for forcing local RPM builds is overly complex. It should be
simplified by using standard Bazel features like execution strategies
(
--strategy==local) or target tags (no-remote) instead of runtime dependencyinstallation, cache clearing, and platform workarounds.
Examples:
.github/workflows/release.yml [73-87]
.github/workflows/release.yml [215-270]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: This is an excellent high-level suggestion that correctly identifies the current approach as complex and brittle, and proposes more idiomatic and robust Bazel strategies (
--strategyortags) which could significantly improve the build's performance and maintainability.