Update/dockerfile rbe debian #2452
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!2452
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2452/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: #1984
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1984
Original created: 2025-11-23T16:15:43Z
Original updated: 2025-11-23T16:17:11Z
Original head: carverauto/serviceradar:update/dockerfile_rbe_debian
Original base: main
Original merged: 2025-11-23T16:15:53Z 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
Description
Migrate RBE executor image from Oracle Linux 9 to Ubuntu 24.04
Refactor Dockerfile with improved package management and cleaner setup
Preserve Oracle Linux variant as separate Dockerfile.rbe-ora9
Update container image version from v1.0.14 to v1.0.15
Diagram Walkthrough
File Walkthrough
Dockerfile.rbe
Migrate Dockerfile from Oracle Linux to Ubuntu 24.04docker/Dockerfile.rbe
oraclelinux:9toubuntu:24.04default)
comments
BUILD.bazel
Update RBE executor image version tagBUILD.bazel
v1.0.14tov1.0.15exec_propertiesfor platform configurationMODULE.bazel
Update BuildBuddy toolchain container versionMODULE.bazel
v1.0.14tov1.0.15buildbuddy.yaml
Update BuildBuddy execution config image versionbuildbuddy.yaml
v1.0.14tov1.0.15Dockerfile.rbe-ora9
Add legacy Oracle Linux 9 RBE executor variantdocker/Dockerfile.rbe-ora9
configuration
support
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1984#issuecomment-3568118662
Original created: 2025-11-23T16:16:18Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Unverified GPG key import
Description: The PostgreSQL APT repository GPG key is added via curl and used directly as a keyring
without verifying its checksum or pinning the fingerprint, enabling a potential
supply-chain attack if the key download is intercepted or replaced.
Dockerfile.rbe [21-24]
Referred Code
Secret leakage in build logs
Description: The secret-mounted GHCR token is read and used within a heredoc but the build step does
not ensure the secret is prevented from leaking into image layers or logs (e.g., by
masking echo/command output), risking accidental credential disclosure through verbose
build logs.
Dockerfile.rbe [86-94]
Referred Code
Privileged tooling in build image
Description: Installing and enabling Podman inside the RBE executor image (including slirp4netns and
fuse-overlayfs) can allow nested container execution which expands the attack surface and
may enable container breakout in shared RBE workers if not strictly sandboxed.
Dockerfile.rbe [35-41]
Referred Code
Host network exposure
Description: Setting dockerNetwork to "host" for remote execution removes network namespace isolation,
increasing risk of host network access from builds and potential lateral movement if a
build is compromised.
buildbuddy.yaml [20-25]
Referred Code
Host network exposure
Description: The exec_properties configure dockerNetwork "host" for the RBE platform, which weakens
isolation and may permit network pivoting or service discovery from within build steps.
BUILD.bazel [31-33]
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: Secure Error Handling
Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.
Status: Passed
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: Passed
Generic: Comprehensive Audit Trails
Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.
Status:
No audit scope: The PR only updates container images and Dockerfiles without introducing or modifying
application logic where audit trails would apply, so compliance cannot be assessed from
the diff alone.
Referred Code
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status:
Shell error handling: The Dockerfile uses a heredoc RUN block that relies on external network pulls without
explicit retries or graceful fallback beyond set -euo pipefail, making robustness unclear
without broader build context.
Referred Code
Generic: Security-First Input Validation and Data Handling
Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities
Status:
Secret handling: The Dockerfiles pull images and configure repositories and secrets via RUN with
--mount=type=secret and environment variables, which appears reasonable but input
validation and secret exposure cannot be fully assessed from this diff alone.
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/1984#issuecomment-3568119406
Original created: 2025-11-23T16:17:11Z
PR Code Suggestions ✨
Explore these optional code suggestions:
New default image lacks critical tools
The new Ubuntu-based
Dockerfile.rbeis missing the Rust toolchain, Cosign, andSyft, which were present in the original image it replaces. These tools should
be added to maintain feature parity and prevent breaking existing workflows.
Examples:
docker/Dockerfile.rbe [91-134]
docker/Dockerfile.rbe-ora9 [97-116]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a critical regression where the new default executor image in
Dockerfile.rbelacks tools like Rust, Cosign, and Syft that were present in the original, which will break dependent build and release workflows.