Skip to content
Reference

Google Drive adapter

Pick up files from a Google Drive folder or shared drive to start workflows, and write workflow output back to Drive.

PlannedThis page describes what's coming, not working steps.

On this page

The Google Drive adapter will let a workflow use a Drive folder or a shared drive the way it uses an SFTP folder or a bucket today: as a drop folder that starts workflows, and as a place to write results. Many healthcare organizations already exchange rosters, reports and scanned documents with partners through shared drives, and this adapter is how MedHook will reach them.

This adapter is not in the engine yet. The engine on this release registers no Google Drive adapter and has no Google Workspace API client. A Drive source will reuse the file pickup the engine already has for SFTP, FTP, SMB, WebDAV, S3 and local folders: a filename filter, a file-age check, and a move or delete after processing.

What works today

  • For file drops on Google Cloud, use the Google Cloud Storage adapter. It signs in with the engine's Workload Identity on GKE, so there is no key to rotate.
  • For file drops a partner pushes to you, use an SFTP, FTP or SMB folder, or an S3 bucket, with a file pickup trigger. See the SFTP to FHIR guide.
  • The Generic REST adapter can call the Drive API with a bearer token, but it has no Google sign-in. You would supply and rotate a short-lived token yourself, so it is not a practical route for a production feed.

What's coming

  • Sign-in. A Google service account, with Workload Identity on GKE so no key leaves Google, and optional domain-wide delegation for a Workspace user's files. The adapter profile stores any key encrypted, like every other credential.
  • Folder pickup. A trigger that watches one folder or shared drive, filters files by name and type, skips files that are still changing, and starts one execution per new file. After a file runs it moves to a processed folder, and a file that fails moves to an error folder, so nothing runs twice.
  • Read and write steps. Download a file as text or bytes, upload a file with a name template, move a file between folders, and list a folder.
  • Google formats. Export Google Docs and Sheets files to a plain format (PDF, CSV or text) on download. Spreadsheet rows as records belong to the Google Sheets adapter.
  • Audit. Each read, write and move recorded in the audit log with the file ID, never the file content.

Reference