|
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
|
@@ -163,7 +163,7 @@ def get_signed_url_for_file(
|
163 | 163 | indexed_file=indexed_file,
|
164 | 164 | user_sub=flask.g.audit_data.get("sub", ""),
|
165 | 165 | client_id=_get_client_id(),
|
166 |
| - requested_protocol=requested_protocol |
| 166 | + requested_protocol=requested_protocol, |
167 | 167 | )
|
168 | 168 |
|
169 | 169 | return {"url": signed_url}
|
@@ -1209,7 +1209,7 @@ def _generate_anonymous_google_storage_signed_url(
|
1209 | 1209 | ):
|
1210 | 1210 | # we will use the main fence SA service account to sign anonymous requests
|
1211 | 1211 | private_key = get_google_app_creds()
|
1212 |
| - final_url = cirrus.google_cloud.utils.get_signed_url( |
| 1212 | + final_url = gen3cirrus.google_cloud.utils.get_signed_url( |
1213 | 1213 | resource_path,
|
1214 | 1214 | http_verb,
|
1215 | 1215 | expires_in,
|
@@ -1350,7 +1350,7 @@ def _generate_google_storage_signed_url(
|
1350 | 1350 | if config["BILLING_PROJECT_FOR_SIGNED_URLS"] and not r_pays_project:
|
1351 | 1351 | r_pays_project = config["BILLING_PROJECT_FOR_SIGNED_URLS"]
|
1352 | 1352 |
|
1353 |
| - final_url = cirrus.google_cloud.utils.get_signed_url( |
| 1353 | + final_url = gen3cirrus.google_cloud.utils.get_signed_url( |
1354 | 1354 | resource_path,
|
1355 | 1355 | http_verb,
|
1356 | 1356 | expires_in,
|
|
0 commit comments