buildbuddy k8s self hosted executor updates #2264
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!2264
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2264/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: #1689
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1689
Original created: 2025-10-03T05:49:19Z
Original updated: 2025-10-03T06:09:48Z
Original head: carverauto/serviceradar:k8s/build_budddy_executors
Original base: main
Original merged: 2025-10-03T06:09:45Z by @mfreeman451
PR Type
Enhancement
Description
Add BuildBuddy executor deployment script with secret management
Create comprehensive README with setup and troubleshooting guide
Implement Kubernetes secret-based API key handling
Provide automated deployment with Helm configuration
Diagram Walkthrough
File Walkthrough
deploy.sh
Automated BuildBuddy executor deployment scriptk8s/buildbuddy/deploy.sh
README.md
Comprehensive BuildBuddy executor documentationk8s/buildbuddy/README.md
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1689#issuecomment-3364353868
Original created: 2025-10-03T05:49:40Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Secret exposure risk
Description: The script reads the API key from a Kubernetes secret and injects it into a Helm command
via --set, which may expose the key in shell history or process arguments and in Helm
release metadata; prefer passing via environment valueFrom secretKeyRef or a Kubernetes
Secret values file with --values to avoid exposure.
deploy.sh [18-31]
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/1689#issuecomment-3364356179
Original created: 2025-10-03T05:50:37Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Use Helm to manage secrets directly
Replace the
deploy.shscript, which insecurely passes the API key via acommand-line argument, with a direct reference to the Kubernetes secret within
the Helm configuration. This is a more secure and standard practice that
simplifies deployment.
Examples:
k8s/buildbuddy/deploy.sh [19-30]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: The suggestion addresses a significant security and complexity issue in the deployment script, proposing a more secure, idiomatic, and maintainable Helm-native pattern for secret management that greatly improves the PR's quality.
Make Helm deployment command idempotent
Add the
--installflag to thehelm upgradecommand. This makes the deploymentscript idempotent, allowing it to perform an initial install if the release
doesn't exist or an upgrade if it does.
k8s/buildbuddy/deploy.sh [27-30]
Suggestion importance[1-10]: 9
__
Why: This suggestion correctly identifies a bug that would cause the script to fail on its first run and provides the standard fix, making the script idempotent and aligning it with the documentation.
Avoid exposing secrets on command-line
To prevent exposing the API key in the process list or shell history, pass it to
Helm via standard input instead of using the
--setcommand-line flag.k8s/buildbuddy/deploy.sh [18-30]
Suggestion importance[1-10]: 8
__
Why: This suggestion correctly identifies a security risk of exposing a secret
API_keyon the command line and proposes a more secure, standard alternative, significantly improving the script's security posture.