new feature: support an explicit billing project for GCS Requester Pays
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 58/100
Research direction
Start with core/services/gcs/src/config.rs to see how GcsConfig and its builder expose service options. Trace GCS request construction to determine where userProject or x-goog-user-project should be added for uploads and cleanup operations. Done means the optional setting and builder method exist, unset behavior remains unchanged, request/configuration tests cover both paths, and the billing implications are documented.
Written by the indexing model from the issue text.
Description
Feature Description
Add an optional billing-project setting to the GCS service, for example user_project, exposed through both GcsConfig and the builder.
When configured, OpenDAL should include the specified project in the relevant GCS requests. When unset, existing behavior should remain unchanged.
Problem and Solution
The motivating use case is apache/datafusion-comet#6958, which includes translating Hadoop GCS configuration for native Iceberg writes through iceberg-rust and OpenDAL.
Applications using Requester Pays need to explicitly select the project billed for requests. The billing project can differ from the project containing the bucket or associated with the credentials.
At OpenDAL commit f1066a9bbcde8d704bba9844da179a50f4eaa477, GcsConfig does not expose an explicit billing-project option.
Google documents the following mechanisms:
- JSON API: the
userProjectquery parameter. - XML API: the
x-goog-user-projectrequest header.
See Use Requester Pays.
The proposed implementation would:
- Add an optional billing-project configuration and builder method.
- Apply it consistently to supported GCS operations, including relevant upload and cleanup requests.
- Preserve existing request behavior when it is unset.
- Add configuration and request-construction tests.
- Document that supplying a billing project can affect billing even for buckets without Requester Pays enabled, so the setting must be explicit. Google’s billing documentation
This would allow subsequent iceberg-rust work to forward its gcs.user-project setting to OpenDAL.
Additional Context
This is a feature request based on the documented GCS API and the current configuration surface. I have not tested it against a live Requester Pays bucket. I do not currently have a GCS test environment, so assistance with live-service validation would be welcome.
Drafted with assistance from OpenAI Codex.
Are you willing to contribute to the development of this feature?
- Yes, I am willing to contribute to the development of this feature.
- Dominant language
- Rust
- Stars
- 5.5k
- Forks
- 869
- Avg merge
- 8h 2m
- Merged PRs (30d)
- 862
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/opendal
-
bug(services/fs): deleting "/" removes the configured root directoryPossibly taken @xgbtxy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
apache/opendal#9635 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
core enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
apache/opendal#9572 · 1 reaction ·
Maintainers usually reply within 1 day
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gapPossibly taken @rohan4naik claimed this today. Openbindings/nodejs bug
Difficulty 3/5 1-2 days Newbie friendliness 76/100
apache/opendal#9569 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()Possibly taken @Xuanwo claimed this today. Openbug core
Difficulty 5/5 Over a week Newbie friendliness 25/100
apache/opendal#9567 · 1 reaction ·
Maintainers usually reply within 1 day
-
bindings/c bindings/dotnet bindings/go bindings/java bindings/python bindings/ruby core integrations/object_store release release-blocker services/azblob services/azdls services/dropbox services/gcs_grpc services/git services/hf3fs services/redis services/remotestorage services/s3 website
Difficulty 5/5 Over a week Newbie friendliness 20/100
apache/opendal#9560 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Android bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anefzaoui/misterdownloadmanager#2516 ·
Maintainers usually reply within 1 day
-
editor ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
state:triage tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 89/100
agent8-cash/ethpayserver#731 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day