|
6 | 6 |
|
7 | 7 | from sqlalchemy.sql.functions import user
|
8 | 8 | from cached_property import cached_property
|
9 |
| -import cirrus |
10 |
| -from cirrus import GoogleCloudManager |
| 9 | +import gen3cirrus |
| 10 | +from gen3cirrus import GoogleCloudManager |
11 | 11 | from cdislogging import get_logger
|
12 | 12 | from cdispyutils.config import get_value
|
13 | 13 | from cdispyutils.hmac4 import generate_aws_presigned_url
|
@@ -162,7 +162,7 @@ def get_signed_url_for_file(
|
162 | 162 | _log_signed_url_data_info(
|
163 | 163 | indexed_file=indexed_file,
|
164 | 164 | user_sub=flask.g.audit_data.get("sub", ""),
|
165 |
| - requested_protocol=requested_protocol |
| 165 | + requested_protocol=requested_protocol, |
166 | 166 | )
|
167 | 167 |
|
168 | 168 | return {"url": signed_url}
|
@@ -1197,7 +1197,7 @@ def _generate_anonymous_google_storage_signed_url(
|
1197 | 1197 | ):
|
1198 | 1198 | # we will use the main fence SA service account to sign anonymous requests
|
1199 | 1199 | private_key = get_google_app_creds()
|
1200 |
| - final_url = cirrus.google_cloud.utils.get_signed_url( |
| 1200 | + final_url = gen3cirrus.google_cloud.utils.get_signed_url( |
1201 | 1201 | resource_path,
|
1202 | 1202 | http_verb,
|
1203 | 1203 | expires_in,
|
@@ -1338,7 +1338,7 @@ def _generate_google_storage_signed_url(
|
1338 | 1338 | if config["BILLING_PROJECT_FOR_SIGNED_URLS"] and not r_pays_project:
|
1339 | 1339 | r_pays_project = config["BILLING_PROJECT_FOR_SIGNED_URLS"]
|
1340 | 1340 |
|
1341 |
| - final_url = cirrus.google_cloud.utils.get_signed_url( |
| 1341 | + final_url = gen3cirrus.google_cloud.utils.get_signed_url( |
1342 | 1342 | resource_path,
|
1343 | 1343 | http_verb,
|
1344 | 1344 | expires_in,
|
|
0 commit comments