The Kaws ingestion script — which lives inside the current Collections sheet
under Tools > Script Editor > forms.gs
— requires certain Google Cloud
Platform credentials.
If it becomes necessary to re-generate those credentials you can do so as follows:
-
Log into https://console.cloud.google.com with it@ credentials from 1password
-
Get yourself to the right project: the KAWS project under the ARTSYMAIL.COM org. (Look at for a dropdown in the global nav, just to the right of "Google Cloud Platform")
-
Go to Create credentials > API key
-
Go to Create credentials > Service account key
- Service account: Kaws Sheets API
- Key type: JSON
-
Locate the downloaded JSON file, and add it to the Kaws Credentials secure note in 1password (and remove the older one presumably)
-
Update the deployed app's environment to use the new credentials, i.e.
# from API key hokusai staging env set 'GOOGLE_API_KEY=42424242' # from Service account key hokusai staging env set 'GOOGLE_CLIENT_ID=987654321' hokusai staging env set 'GOOGLE_CLIENT_SECRET=-----BEGIN PRIVATE KEY-----\nWOO\nHOO\n-----END PRIVATE KEY-----\n' hokusai staging refresh
-
If you are testing from a copy of the main spreedsheet rather than the original instance that curators use, then you will need to add that sheet's id to the environment as well:
hokusai staging env set 'SPREADSHEET_IDS_ALLOWLIST=the_original_one,your_test_copy' hokusai staging refresh
-
Finally, it may be necessary for you or other end users to revoke permissions from older versions of the client app https://myaccount.google.com/permissions > Security > Manage third-party access > Update Collections > Remove access