From 1cb04b6cc77de94d983931cb28398a04c0f7a53b Mon Sep 17 00:00:00 2001 From: Alex Rhee Date: Fri, 20 Nov 2026 14:59:56 -0800 Subject: [PATCH] docs(loop): explain storage IAM requirements --- braintrust/examples/gke-loop-runtime/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/braintrust/examples/gke-loop-runtime/README.md b/braintrust/examples/gke-loop-runtime/README.md index 5a509c2..9543c52 100644 --- a/braintrust/examples/gke-loop-runtime/README.md +++ b/braintrust/examples/gke-loop-runtime/README.md @@ -15,6 +15,20 @@ gke_isolated_workers = { `<...>` values below come from `terraform output gke_isolated_workers` and `terraform output loop_runtime_service_account`. +Apply the GCP Terraform configuration before enabling Loop Runtime, then set +`loopRuntime.serviceAccount.googleServiceAccount` to the dedicated runtime account. +The chart configures pods to use that Google account; Terraform owns the cloud +IAM grants. The GCP data-plane module grants the runtime +[`roles/storage.objectAdmin`](https://docs.cloud.google.com/storage/docs/access-control/iam-roles#standard-roles) +on the deployment's Brainstore and API buckets. + +Usage accounting creates temporary markers at +`brainstore/wal/active-writes//usage_events:/` in +the Brainstore bucket. Custom IAM must allow the runtime to create and delete +these markers, including object generations in versioned buckets, so writes can +commit. A Helm or image upgrade does not update bucket permissions; apply the +corresponding Terraform configuration too. + Use compatible API, Brainstore, and AI Gateway images for the runtime build. Use the chart's Braintrust services version for Loop Runtime and Sandbox Service. With `helm upgrade --reuse-values`, explicitly set `--set loopRuntime.image.tag=`