google / turbinia

Automation and Scaling of Digital Forensics Tools
Apache License 2.0
747 stars 163 forks source link

Cloud functions API v1beta2 is deprecated #562

Closed tomchop closed 4 years ago

tomchop commented 4 years ago

Pasted from a dftimewolf run using the turbinia client lib same API:

CRITICAL:   Error calling cloud function [gettasks]: <HttpError 403 when requesting https://cloudfunctions.googleapis.com/v1beta2/projects/<PROJECT_NAME>/locations/us-central1/functions/gettasks:call?alt=json returned "The GCF v1beta2 API is deprecated. See https://cloud.google.com/functions/docs/migrating". Details: "[{'@type': 'type.googleapis.com/google.rpc.DebugInfo', 'detail': '[ORIGINAL ERROR] generic::permission_denied: userFacingMessage: The GCF v1beta2 API is deprecated. See https://cloud.google.com/functions/docs/migrating; \ncom.google.cloud.eventprocessing.manager.api.error.V1Beta2ApiAccessException: userFacingMessage: The GCF v1beta2 API is deprecated. See https://cloud.google.com/functions/docs/migrating;  Code: PERMISSION_DENIED [google.rpc.error_details_ext] { message: "The GCF v1beta2 API is deprecated. See https://cloud.google.com/functions/docs/migrating" }'}]">

We've also opened https://github.com/google/cloud-forensics-utils/issues/177 to fix this in libcloudforensics. it seems that turbinia is using a lib/google_cloud.py module to interact with cloud, wouldn't it be better to use libcloudforensics for that? I think the primitives are all supported, and libcloudforensics is already used in turbiniactl.py

tomchop commented 4 years ago

Sorry, this assumption was based on an old snapshot of the repo and I had not seen https://github.com/google/turbinia/pull/544 had been merged.