Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/boundless-market/src/storage/providers/gcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ impl GcsStorageDownloader {
builder = builder.with_endpoint(url);
}

// If no Application Default Credentials are configured, fall back to
// anonymous credentials.
if env::var("GOOGLE_APPLICATION_CREDENTIALS").is_err() {
builder = builder.with_credentials(
google_cloud_auth::credentials::anonymous::Builder::new().build(),
);
}

builder = if let Some(max_retries) = max_retries {
builder.with_retry_policy(AlwaysRetry.with_attempt_limit(max_retries as u32))
} else {
Expand Down
2 changes: 2 additions & 0 deletions crates/broker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ publish = false
release = false

[features]
default = ["gcs"]
gcs = ["boundless-market/gcs"]
test-utils = ["dep:boundless-test-utils"]
prove = ["blake3_groth16/prove"]
cuda = ["blake3_groth16/cuda"]
Expand Down
2 changes: 2 additions & 0 deletions crates/indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ name = "market-indexer-backfill"
path = "src/bin/market-indexer-backfill.rs"

[features]
default = ["gcs"]
gcs = ["boundless-market/gcs"]
# Enable this feature to run tests that require r0vm proving (slow without RISC0_DEV_MODE=1)
test-r0vm = []
# Enable this feature to run tests that require RPC URLs (ETH_MAINNET_RPC_URL, etc.)
Expand Down
Loading
Loading