adding missing deps #2425
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!2425
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2425/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: #1957
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1957
Original created: 2025-11-19T06:10:41Z
Original updated: 2025-11-19T06:13:31Z
Original head: carverauto/serviceradar:chore/oci_image_failing
Original base: main
Original merged: 2025-11-19T06:13:18Z 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 build dependencies installation step for Docker builds
Support multiple Linux package managers (apt-get, dnf, yum, microdnf)
Install required build tools: gcc, make, OpenSSL, protobuf, cmake, flex, bison
Add Bazel setup step using bazelbuild/setup-bazelisk action
Diagram Walkthrough
File Walkthrough
docker-build.yml
Add build dependencies and Bazel setup steps.github/workflows/docker-build.yml
protobuf-compiler, cmake, flex, bison
package managers
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1957#issuecomment-3550965261
Original created: 2025-11-19T06:11:04Z
PR Compliance Guide 🔍
(Compliance updated until commit
github.com/carverauto/serviceradar@e117da25a7)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 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:
No audit logs: The added workflow steps perform package installations and tool setup without introducing
any logging of critical security-relevant actions, which may be acceptable for CI but
cannot be confirmed from the diff alone.
Referred Code
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
Previous compliance checks
Compliance check up to commit e117da2
Unpinned dependencies
Description: Installing packages via system package managers in CI without pinning versions or
verifying package integrity can expose the build to supply‑chain risks (e.g., malicious or
compromised repo mirrors), especially when using broad meta-packages like
'build-essential' and unpinned tools like 'protobuf-compiler' across multiple distros.
docker-build.yml [62-74]
Referred Code
Elevated privileges in CI
Description: Multiple commands using 'sudo' to install packages in the GitHub Actions runner increase
blast radius if any preceding step is compromised; least-privilege execution or
isolated/containerized install phases would reduce risk.
docker-build.yml [35-78]
Referred Code
Untrusted binary execution
Description: Blindly executing 'protoc' from the PATH without constraining its source (e.g.,
checked-in, pinned version, or verified download) risks invoking an unexpected binary if
PATH is manipulated, leading to build or supply-chain compromise.
docker-build.yml [77-77]
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: 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: Comprehensive Audit Trails
Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.
Status:
No audit logs: The workflow adds steps to install dependencies and setup Bazel but does not introduce or
modify any application logic related to auditing critical actions, so audit trail
compliance cannot be assessed from this diff.
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:
Secrets exposure risk: The workflow uses multiple package managers with elevated privileges and accesses secrets
via environment variables, but the new steps do not log sensitive values; still,
verification is needed to ensure commands and outputs never echo secrets in downstream
steps not visible in this diff.
Referred Code
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1957#issuecomment-3550967606
Original created: 2025-11-19T06:12:04Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Use a custom Docker image for build environment
Instead of installing build dependencies with a shell script in the workflow,
create and use a custom Docker image with all required tools pre-installed. This
change will accelerate the build process, simplify the workflow file, and ensure
a consistent environment.
Examples:
.github/workflows/docker-build.yml [35-77]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: This is a significant architectural improvement that replaces an inefficient and hard-to-maintain script with a standard best practice, improving build speed and reproducibility.
Add error handling for dependency installation
Add a check after attempting to install
pkg-configto verify it was successful,and exit with an error if it was not.
.github/workflows/docker-build.yml [37-60]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies a lack of error handling and proposes adding a check to ensure the dependency installation was successful, which improves the script's robustness.
Refactor dependency installation for clarity
Refactor the script to handle
pkg-configinstallation consistently for allpackage managers by calling
ensure_pkg_configbefore the main installationblock.
.github/workflows/docker-build.yml [62-76]
Suggestion importance[1-10]: 5
__
Why: This is a valid refactoring suggestion that improves code clarity and consistency by centralizing the
pkg-configinstallation logic, making the script easier to maintain.