near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.32k stars 622 forks source link

Support state dump to/from GCS #9757

Open gmilescu opened 1 year ago

gmilescu commented 1 year ago

Andrei Mustuc suggests to use GCS instead of S3. Sounds good to me.

Code changes are needed to support uploading/downloading/listing in GCS buckets.

ChatGPT suggests google-cloud-storage crate, I don’t have strong opinions.

The code changes needed is to add a GCS enum value to ExternalConnection and ExternalStorageLocation.

ND-468 created by None

gmilescu commented 1 year ago

GS bucket: gs://state-parts
Service account with admin bucket access: test-account-bucket-access@pagoda-public-services.iam.gserviceaccount.com

Key for account can be generated at https://console.cloud.google.com/iam-admin/serviceaccounts/details/109697230356890662839/keys?project=pagoda-public-services or provided on request (ping me)
Good candidate lib for Rust: https://docs.rs/gcp_auth/latest/gcp_auth/

by 63b74c4d7cde7bff9d7ac618