Skip to content

security

Trust But Verify: Security and Privacy Considerations for Remote Build Execution (RBE) Platforms

For organizations using Bazel and RBE, your build graph is effectively a fingerprint of your product ecosystem and the engineering hierarchy behind it. Depending on the extent to which Bazel and monorepo usage is established within your organization, your Bazel build graph may be composed of interdependent (configured) targets, actions, and artifacts spanning every single dependency, service and test that exists within your codebase.

Other highly valuable sources of metadata related to your codebase that Bazel can produce are JSON trace profiles, effectively structured recordings of what happened during a build and how long it took.

Combined, and observed in time, those two data sources offer insights into release cadence, acquisition targets, engineering headcount, and products potentially being shipped before you are actually ready to ship them. In other words, they are some of the most sensitive data sources an engineering organization produces, and they are routinely treated as exhaust.

Secure Builds with Credential Helpers

Secure and reproducible builds are something we'd all like, and something many of us work on regularly.

One area that is frequently overlooked in the topic is how to securely provide credentials for external services used during a build. Systems often fall back to insecure methods like passing them on the command-line or storing them in plaintext on disk.

In this post, we will provide an overview of common authentication mechanisms and why they should not be considered secure, and then introduce Credential Helpers and how they do provide secure builds.