alpine updates #2275
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!2275
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2275/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: #1703
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1703
Original created: 2025-10-05T17:20:24Z
Original updated: 2025-10-05T17:21:46Z
Original head: carverauto/serviceradar:k8s/serviceradar_tools_not_starting
Original base: main
Original merged: 2025-10-05T17:21:27Z by @mfreeman451
PR Type
Enhancement
Description
Add Alpine Linux dependencies for bash functionality
Include readline, libncursesw, and ncurses-terminfo-base packages
Create extraction rules for new APK packages
Update tools image to include new dependencies
Diagram Walkthrough
File Walkthrough
MODULE.bazel
Add three new Alpine APK dependenciesMODULE.bazel
alpine_readline_apkdependency with SHA256 hashalpine_libncursesw_apkdependency with SHA256 hashalpine_ncurses_terminfo_base_apkdependency with SHA256 hashBUILD.bazel
Add APK extraction rules and update tools imagedocker/images/BUILD.bazel
apk_readline_rootfs_amd64extraction ruleapk_libncursesw_rootfs_amd64extraction ruleapk_ncurses_terminfo_base_rootfs_amd64extraction ruletools_image_amd64to include new tar layersImported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1703#issuecomment-3369198105
Original created: 2025-10-05T17:20:47Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Supply chain integrity
Description: The APK extraction genrule unpacks and copies files from downloaded APKs into the build
output without verifying package signatures beyond a fixed SHA256 for the outer APK,
potentially allowing tampered inner contents if the APK source is compromised.
BUILD.bazel [163-187]
Referred Code
External dependency pinning
Description: External binaries are fetched over HTTPS via hardcoded URLs; while SHA256 pinning is
present, there is no redundancy or signature verification, posing a potential supply-chain
risk if the mirror is compromised.
MODULE.bazel [796-818]
Referred Code
🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
No custom compliance provided
Follow the guide to enable custom compliance check.
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/1703#issuecomment-3369198752
Original created: 2025-10-05T17:21:46Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Abstract duplicated APK extraction logic
Abstract the duplicated APK extraction logic from the three new
genrules into asingle, reusable Bazel macro to improve code maintainability and readability.
Examples:
docker/images/BUILD.bazel [159-255]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 8
__
Why: The suggestion correctly identifies significant code duplication across three new
genrules and proposes a valid abstraction using a Bazel macro, which would greatly improve maintainability and readability.Refactor duplicated logic into macro
Refactor the three nearly identical
genruletargets into a single Bazel macro toeliminate code duplication. The macro should be parameterized with the
package-specific details.
docker/images/BUILD.bazel [158-255]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies significant code duplication across three new
genruletargets and proposes an idiomatic solution using a Bazel macro, which greatly improves code maintainability and readability.