Spaces:
Sleeping
Sleeping
secret for service account
Browse files
app.py
CHANGED
|
@@ -6,19 +6,13 @@ from google.cloud import storage
|
|
| 6 |
|
| 7 |
GCS_BUCKET_NAME = "veytel-cloud-store"
|
| 8 |
GCS_FOLDER_PATH = "density_mapper"
|
| 9 |
-
service_account_json =
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
"
|
| 13 |
-
|
| 14 |
-
"
|
| 15 |
-
|
| 16 |
-
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
| 17 |
-
"token_uri": "https://oauth2.googleapis.com/token",
|
| 18 |
-
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
| 19 |
-
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/veytel-pulmoviz-pentool%40veytel-cloud-store.iam.gserviceaccount.com",
|
| 20 |
-
"universe_domain": "googleapis.com"
|
| 21 |
-
}
|
| 22 |
count = 0
|
| 23 |
fresh_start = False
|
| 24 |
|
|
|
|
| 6 |
|
| 7 |
GCS_BUCKET_NAME = "veytel-cloud-store"
|
| 8 |
GCS_FOLDER_PATH = "density_mapper"
|
| 9 |
+
service_account_json = os.getenv('serviceKey')
|
| 10 |
+
|
| 11 |
+
if service_account_json:
|
| 12 |
+
print("Secret Value Retrieved Successfully")
|
| 13 |
+
else:
|
| 14 |
+
print("Failed to Retrieve Secret Value")
|
| 15 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
count = 0
|
| 17 |
fresh_start = False
|
| 18 |
|