docker fixes #2309
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!2309
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2309/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: #1748
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1748
Original created: 2025-10-12T20:34:51Z
Original updated: 2025-10-12T20:45:31Z
Original head: carverauto/serviceradar:sysmonvm/integration_tests
Original base: main
Original merged: 2025-10-12T20:45:27Z by @mfreeman451
PR Type
Bug fix, Enhancement
Description
Fixed Next.js static asset linking in standalone bundle
Added public asset flattening for Bazel-packaged files
Updated Kong config command with
render-kongsubcommandImproved Kong healthcheck using native
kong healthcommandDiagram Walkthrough
File Walkthrough
entrypoint-web.sh
Add Next.js asset linking and public file flatteningdocker/compose/entrypoint-web.sh
directory
structure
directories
BUILD.bazel
Configure prefix stripping for web public asset packagingdocker/images/BUILD.bazel
strip_prefixparameter toweb_public_root_amd64targetstrip_prefixparameter toweb_public_standalone_amd64targetdocker-compose.yml
Update Kong configuration command and healthcheck methoddocker-compose.yml
kong-configcommand to includerender-kongsubcommandwgetto nativekong healthcommandImported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1748#issuecomment-3395330416
Original created: 2025-10-12T20:35:16Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Unchecked file overwrite
Description: Unchecked recursive copy (cp -R) from nested public paths into public roots may overwrite
existing files or follow symlinks if present, potentially leading to unintended file
replacement or serving of unexpected content.
entrypoint-web.sh [104-117]
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/1748#issuecomment-3395331042
Original created: 2025-10-12T20:36:09Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Solve asset path issues at build-time
The runtime asset flattening scripts in
entrypoint-web.share redundant becausethe
BUILD.bazelfile already handles this at build-time usingstrip_prefix.These runtime scripts should be removed to create a more efficient and robust
container image.
Examples:
docker/compose/entrypoint-web.sh [104-117]
docker/images/BUILD.bazel [948-955]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies that the runtime
cpcommands inentrypoint-web.share redundant due to the build-timestrip_prefixchanges inBUILD.bazel, proposing a significant improvement for efficiency and build correctness.Remove redundant asset flattening logic
Remove the redundant asset flattening logic from
entrypoint-web.sh. Thisfunctionality is now handled at build time by the
strip_prefixattribute in theBUILD.bazelfile.docker/compose/entrypoint-web.sh [104-117]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies that the shell script logic for flattening assets is made redundant by the
strip_prefixchange inBUILD.bazel, thus removing dead code added in this PR.