fixing kong again #2436
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!2436
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2436/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: #1968
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1968
Original created: 2025-11-20T06:05:18Z
Original updated: 2025-12-08T06:54:42Z
Original head: carverauto/serviceradar:update/fixing_kong_build
Original base: main
Original merged: 2025-11-20T06:05:27Z 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, Bug fix
Description
Add verbose failure output to Bazel build flags
Implement remote execution fallback mechanism for Kong builds
Add luarocks log dumping for debugging failed builds
Track remote execution configuration state
Diagram Walkthrough
File Walkthrough
build-kong-vendor.sh
Add build resilience and enhanced debugging capabilitiesscripts/build-kong-vendor.sh
--verbose_failuresflag to Bazel build configuration for bettererror reporting
REMOTE_CONFIGUREDvariable to track remote execution setupstate
dump_luarocks_logs()function to extract and display luarocksbuild logs from failed builds
run_bazel()intorun_bazel_once()and enhanced wrapper withautomatic local fallback retry logic when remote execution fails
with adjusted job count
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1968#issuecomment-3556051720
Original created: 2025-11-20T06:05:43Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Sensitive information exposure
Description: The log dumping function prints up to 200 lines from any found 'luarocks_make.log' files,
which can expose sensitive environment variables, tokens, or internal paths contained in
build logs to CI logs or user terminals.
build-kong-vendor.sh [253-259]
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: 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:
Action logging: The new build orchestration steps (e.g., remote execution configuration, retries, and log
dumping) add critical actions without explicit structured audit logging of actor,
timestamp, and outcomes beyond simple info echoes.
Referred Code
Generic: Secure Error Handling
Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.
Status:
Verbose output: Enabling --verbose_failures and dumping build logs may expose internal details; while
appropriate for internal logs, ensure these are not surfaced to end users or insecure
channels.
Referred Code
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:
Log sensitivity: The script prints Bazel and luarocks logs and enables verbose failures, which could
include sensitive environment values or secrets unless those tools sanitize output.
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/1968#issuecomment-3556051907
Original created: 2025-11-20T06:05:48Z
PR Compliance Guide 🔍
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: 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:
Limited auditing: The new build fallback, remote configuration, and log dumping actions are not explicitly
recorded in a structured audit log beyond console messages, making it unclear if critical
actions are captured for auditing.
Referred Code
Generic: Secure Error Handling
Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.
Status:
Verbose logs risk: The script dumps and prints contents of 'luarocks_make.log' to stdout/stderr
which may expose internal build paths or environment details if these outputs are
user-facing or collected insecurely.
Referred Code
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:
Unvetted log dump: The 'dump_luarocks_logs' function prints up to 200 lines from found logs without
filtering, which could inadvertently expose sensitive data if such data appears in build
logs.
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/1968#issuecomment-3556054536
Original created: 2025-11-20T06:06:50Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Restore global flags after successful retry
Restore the
COMMON_FLAGSglobal array to its original state after a successfullocal fallback build to prevent side effects on subsequent builds.
scripts/build-kong-vendor.sh [288-292]
Suggestion importance[1-10]: 8
__
Why: The suggestion correctly identifies a state pollution bug where the global
COMMON_FLAGSarray is not restored after a successful fallback, which would cause subsequent builds to use incorrect settings.