new feature: support an explicit billing project for GCS Requester Pays
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 58/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 5.5k
- Fork
- 869
- Merge medio
- 8h 2m
- PR unite (30g)
- 862
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/opendal
-
bug(services/fs): deleting "/" removes the configured root directoryForse già presa @xgbtxy l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
apache/opendal#9635 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
core enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
apache/opendal#9572 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gapForse già presa @rohan4naik l’ha presa oggi. Apertabindings/nodejs bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
apache/opendal#9569 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()Forse già presa @Xuanwo l’ha presa oggi. Apertabug core
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
apache/opendal#9567 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
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
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
apache/opendal#9560 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/opendal
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
I maintainer di solito rispondono entro 17 giorni
-
bug(c-sdk): boxlite_box_exec does not check runtime liveness before dispatching streaming execApertabug rust SDK & CLI & REST API
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
boxlite-ai/boxlite#3292 ·
I maintainer di solito rispondono entro 1 giorno
-
Android bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anefzaoui/misterdownloadmanager#2516 ·
I maintainer di solito rispondono entro 1 giorno
-
editor ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
state:triage tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 89/100
agent8-cash/ethpayserver#731 ·
I maintainer di solito rispondono entro 1 giorno