Chore/fixing pub pkgs #2451
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!2451
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2451/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: #1983
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1983
Original created: 2025-11-23T15:49:02Z
Original updated: 2025-12-08T06:54:38Z
Original head: carverauto/serviceradar:chore/fixing_pub_pkgs
Original base: main
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 rpmbuild toolchain detection and installation in CI/CD pipeline
Configure local packaging execution to ensure rpmbuild availability
Create new linux_pkg_local platform for local RPM package builds
Disable remote execution/cache during packaging workflow steps
Diagram Walkthrough
File Walkthrough
release.yml
Configure local RPM packaging in release workflow.github/workflows/release.yml
command
BUILD.bazel
Add linux_pkg_local platform for local packagingbuild/platforms/BUILD.bazel
linux_pkg_localplatform definition@rules_pkg//pkg:not_compatibleconstraint for RPM compatibilityImported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1983#issuecomment-3568096909
Original created: 2025-11-23T15:49:24Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Unpinned package install
Description: Using 'sudo apt-get update' and installing packages directly in CI without pinning
versions or verifying package integrity can enable supply chain attacks or break
reproducible builds if upstream packages are compromised or change unexpectedly.
release.yml [75-81]
Referred Code
Execution isolation risk
Description: Overwriting '.bazelrc.remote' in CI to disable remote cache/execution could
unintentionally persist across steps or jobs and weaken isolation guarantees, risking
leakage of secrets via local execution logs or differing trust boundaries unless the
workspace is cleaned between steps.
release.yml [221-226]
Referred Code
Local build supply chain
Description: Forcing local Bazel execution with '--config=no_remote' and host/local platforms increases
reliance on the runner environment; if untrusted code or dependencies are built, this can
elevate risk of supply chain compromise compared to controlled remote executors.
release.yml [268-274]
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 Auditing: The added CI steps perform critical actions (package installation, cache/exec
configuration, and publishing) without emitting structured audit logs containing actor,
timestamp, action, and outcome details.
Referred Code
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status:
Shallow Errors: Shell steps use simple command failures and a single explicit exit without comprehensive
checks or contextual error messages for edge cases (e.g., apt failures, bazel
unavailability, write failures to .bazelrc.remote).
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/1983#issuecomment-3568097707
Original created: 2025-11-23T15:50:26Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Use a custom RBE container image
Instead of disabling remote build execution (RBE) and installing
rpmbuildlocally, create a custom RBE Docker image that includes
rpmbuild. This maintainsa fully remote, consistent, and cached build process.
Examples:
.github/workflows/release.yml [73-91]
.github/workflows/release.yml [219-274]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: This is a significant architectural suggestion that proposes a more robust, scalable, and idiomatic solution for using RBE, addressing the performance and consistency drawbacks of the PR's hybrid build approach.
Use correct rpmbuild availability constraint
Replace the incorrect
@rules_pkg//pkg:not_compatibleconstraint with the correct@rules_pkg//pkg:rpmbuild_availableto properly signalrpmbuildavailability forthe platform.
build/platforms/BUILD.bazel [39-48]
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a critical error in the Bazel platform definition that would likely cause build failures, and provides the correct constraint to fix it.
Simplify and optimize package installation
Remove the redundant
rpm2cpiopackage from the installation step and combine theapt-get updateandapt-get installcommands for better efficiency..github/workflows/release.yml [73-81]
Suggestion importance[1-10]: 4
__
Why: The suggestion correctly identifies a redundant package installation and applies a best practice for
apt-getusage in CI, which slightly improves script efficiency and clarity.Pull request closed