wip #2283
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!2283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2283/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: #1711
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1711
Original created: 2025-10-05T19:44:17Z
Original updated: 2025-10-05T19:45:18Z
Original head: carverauto/serviceradar:updates/k8s-fixes
Original base: main
Original merged: 2025-10-05T19:44:42Z by @mfreeman451
PR Type
Enhancement
Description
Add Next.js static file symlink setup for web container
Configure proper directory structure for standalone deployment
Implement startup script for serviceradar-web application
Diagram Walkthrough
File Walkthrough
serviceradar-web.yaml
Configure Next.js standalone deployment setupk8s/demo/base/serviceradar-web.yaml
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1711#issuecomment-3369281322
Original created: 2025-10-05T19:44:35Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Symlink/path tampering
Description: The container executes a shell inline script that creates and follows symlinks, which
could be abused if the application directory is writable at runtime; ensure the container
filesystem is read-only or /app is not writable to prevent symlink or path tampering.
serviceradar-web.yaml [26-34]
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/1711#issuecomment-3369281678
Original created: 2025-10-05T19:45:18Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Make symlink creation idempotent for robustness
To improve robustness, remove the conditional check for the static assets'
symbolic link. Rely on
ln -sfnto make the link creation idempotent, ensuringit's correctly configured on every container start.
k8s/demo/base/serviceradar-web.yaml [31-33]
Suggestion importance[1-10]: 6
__
Why: The suggestion correctly points out that the
ifcondition is unnecessary and potentially harmful, asln -sfnis already idempotent and will ensure the symlink is correct on every start, making the script more robust.