Overview
OpenSRE can write investigation findings directly to Google Drive as formatted Google Docs — creating a persistent, shareable record of each incident investigation linked to your team’s existing Drive folder.Environment recipe
Google Docs is a hosted Google API. There is no local Docker stack. You need a Google Cloud project, a service account JSON key, and a Drive folder that account can edit.Bring up
- In Google Cloud Console, create or pick a project.
- Enable the Google Drive API and the Google Docs API.
- Create a service account (for example
opensre-docs). Skip role assignment. - Add a JSON key and download it to a path outside this repository.
- In Google Drive, create a folder for OpenSRE reports (or pick an existing one).
- Share that folder with the service account email (
opensre-docs@<project>.iam.gserviceaccount.com) as Editor. - Copy the folder ID from the Drive URL:
https://drive.google.com/drive/folders/<folder-id>.
Credentials
Auth uses a service account only (Docs + Drive API scopes) — not end-user OAuth.
Tear down
- Unshare the Drive folder from the service account (or delete the folder if it was created only for OpenSRE).
- In Google Cloud Console, delete the service account key (and the service account if nothing else uses it).
- Delete the JSON file from disk.
Setup
Option 1: Interactive CLI
Option 2: Onboarding wizard
Option 3: Environment variables
Add to your.env:
Option 4: Persistent store
Investigation tools
Verify
Troubleshooting
Security
- Keep the service account JSON file outside of your repository — add it to
.gitignore. - Grant the service account access only to the specific Drive folder it needs.
- Rotate the service account key periodically via Google Cloud Console.