adding missing deps for timescale #2438
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!2438
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2438/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: #1970
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1970
Original created: 2025-11-20T16:13:48Z
Original updated: 2025-11-20T16:15:20Z
Original head: carverauto/serviceradar:bazel/timescale_fix
Original base: main
Original merged: 2025-11-20T16:14:09Z 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 CMake 3.30.4 prebuilt binary as Bazel dependency
Include CMake in TimescaleDB extension build tools
Update PATH to include CMake binary directory
Enable CMake availability during Docker image build
Diagram Walkthrough
File Walkthrough
MODULE.bazel
Add CMake prebuilt binary Bazel dependencyMODULE.bazel
http_archiverule for CMake 3.30.4 prebuilt binarycmake_binfilegroup pointing tobin/cmakeBUILD.bazel
Include CMake in TimescaleDB extension build processdocker/images/BUILD.bazel
@cmake_linux_amd64_prebuilt//:cmake_binto tools listImported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1970#issuecomment-3558895378
Original created: 2025-11-20T16:14:11Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Supply chain risk
Description: Remote binary archive pulled via http_archive and executed later (CMake) could allow
supply-chain compromise if integrity is not sufficiently pinned to a trusted source; while
sha256 is pinned, there is no signature or key verification and the GitHub release URL is
mutable by account compromise—consider verifying detached signatures (e.g., GPG) or
pinning via immutable fetch (e.g., exact commit with verified signature) and mirroring.
MODULE.bazel [718-732]
Referred Code
Untrusted binary execution
Description: The build script marks an externally fetched CMake binary as executable and prepends its
directory to PATH, causing the build to execute that untrusted binary; if the archive is
tampered, this yields code execution during build—ensure provenance and verify signatures,
restrict PATH changes to a subshell, or vendor a vetted toolchain.
BUILD.bazel [1557-1563]
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:
No audit logs: The added build/genrule steps introduce use of a bundled CMake during image build without
any added logging of critical actions, but this may be acceptable as it is build-time
infrastructure rather than runtime application logic.
Referred Code
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status:
Shell edge cases: The genrule cmd adds path extraction and chmod without explicit checks for missing CMake
binary or failed location expansion beyond 'set -euo pipefail', which might be
acceptable within Bazel's tool resolution guarantees.
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/1970#issuecomment-3558901177
Original created: 2025-11-20T16:15:20Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Add multi-architecture support for CMake
To enable multi-architecture builds, add an
http_archivefor theaarch64CMakebinary to
MODULE.bazel, complementing the existingamd64dependency.MODULE.bazel [718-732]
Suggestion importance[1-10]: 8
__
Why: The suggestion correctly identifies that hardcoding the
amd64CMake dependency will break builds on other architectures likeaarch64, and proposes a valid solution to enable multi-arch support.Use architecture-aware dependency selection
Replace the hardcoded
@cmake_linux_amd64_prebuiltdependency indocker/images/BUILD.bazelwith a platform-agnostic alias usingselectto enablemulti-architecture builds.
docker/images/BUILD.bazel [1527-1557]
[To ensure code accuracy, apply this suggestion manually]Suggestion importance[1-10]: 8
__
Why: The suggestion correctly identifies that the hardcoded
@cmake_linux_amd64_prebuiltdependency will break multi-architecture builds and proposes a robust solution usingselectto make the build rule platform-agnostic.