Skip to content

feat(weave): wire weave-trace file-payload storage to the wandb bucket - #610

Draft
gtarpenning wants to merge 1 commit into
mainfrom
gtarpenning/weave-trace-file-storage
Draft

gtarpenning wants to merge 1 commit into
mainfrom
gtarpenning/weave-trace-file-storage

Conversation

@gtarpenning

Copy link
Copy Markdown
Member

Helm-charts counterpart to wandb/core#45284 (which granted the SaaS weave-trace SA GCS perms). That PR was small because the core chart already wires the storage env; operator-wandb wired none, so weave-trace + workers cannot write file payloads at all.

Summary

  • Add wandb.weave.fileStorageEnvs deriving WF_FILE_STORAGE_URI + per-provider creds from the existing wandb bucket (global.bucket/defaultBucket). S3/Azure reuse the bucket secret; GCS uses workload identity (ADC), since its client needs a service account, not gorilla’s S3-interop HMAC key.
  • Wire it into the trace server and both workers; add WF_FILE_STORAGE_PROJECT_ALLOW_LIST / _RAMP_PCT gating.
  • Opt-in (global.weave.fileStorage.enabled=false): the server talks to real AWS S3 / GCS / Azure only (no endpoint override), so MinIO/S3-compatible stores stay off.

Testing

helm template across s3/gcs/az + disabled; existing weave-trace-with-worker test config renders unchanged.

The weave-trace server + workers had no file-storage config in operator-wandb,
so attachment/file payloads couldn't be written. Add wandb.weave.fileStorageEnvs
deriving WF_FILE_STORAGE_URI + per-provider creds from the existing wandb bucket
(S3/Azure reuse the bucket secret; GCS uses workload identity), wired into the
trace server and both workers, plus project ramp/allow-list gating. Opt-in
(global.weave.fileStorage.enabled=false) since the server has no S3 endpoint
override and can't target MinIO/S3-compatible stores.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0d5d2274-82c9-4eb5-9627-fa77ad99a2aa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch gtarpenning/weave-trace-file-storage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant