Developer Notes » History » Version 1
Luke Murphey, 04/08/2020 05:17 PM
1 | 1 | Luke Murphey | h1. Developer Notes |
---|---|---|---|
2 | 1 | Luke Murphey | |
3 | 1 | Luke Murphey | h2. How the service account key is handled |
4 | 1 | Luke Murphey | |
5 | 1 | Luke Murphey | The app used to support a service account key which was stored in the file-system but it no longer allows user to put the key in the file-system. Instead, it now forces users to upload the key to secure storage. The app will also move the key into secure storage if the app is being upgraded from an old version in which the key was stored on the file-system. |
6 | 1 | Luke Murphey | |
7 | 1 | Luke Murphey | Here are some notes: |
8 | 1 | Luke Murphey | |
9 | 1 | Luke Murphey | * "Modular input code":https://github.com/LukeMurphey/splunk-google-drive/blob/master/src/bin/google_spreadsheet.py see get_secure_password(): which gets the password from secure storage (this call is within the run() function) |
10 | 1 | Luke Murphey | * "Setup screen (JavaScript)":https://github.com/LukeMurphey/splunk-google-drive/blob/master/src/appserver/static/google_drive_setup.js: see handleKeyMigration() which force the migration to secure storage if upgrading from an old version of the app which includes a file-system based key |
11 | 1 | Luke Murphey | * "REST handler":https://github.com/LukeMurphey/splunk-google-drive/blob/6a456a1e46dda831a2d2588a10cfe7d8fc449cde/src/bin/service_account_keys_rest_handler.py: see uploadServiceAccountKeyJSON() which puts the key in secure storage |