Google Drive setup
Create a Google OAuth web application and enable the Drive API. Register https://3sln.me/api/integrations/google/callback as its exact authorized redirect URI. Local testing must register the actual fixed localhost origin/port plus the same callback path; self-hosts use their own canonical APP_ORIGIN.
Set the public GOOGLE_CLIENT_ID in production Wrangler variables and attach GOOGLE_CLIENT_SECRET as a Worker secret, alongside the existing private KEY_ENCRYPTION_KEY. Do not commit client secrets or encryption keys. The Node adapter reads the same environment names. Provider availability stays false until these values exist. The hosted Google client ID is now checked into production Wrangler vars to match the dashboard. Local development retains an empty placeholder; self-hosts supply their own client ID. The client secret and encryption key remain private runtime secrets. Production Wrangler uses keep_vars=true to retain dashboard-only variables such as the Google client ID. Values explicitly pinned in Wrangler still belong in source; public signup remains release-gated.
The implementation requests only https://www.googleapis.com/auth/drive.file, offline access and explicit consent, with S256 PKCE. It creates a dedicated managed folder; it does not import arbitrary files or enumerate Drive. Same-account reconnect checks Google's permission identifier and the original folder binding before replacing credentials. See architecture and security evidence.
Files are limited to 1 MiB each. Each resource has at most 10,000 live logical keys and 10,000 retained versions, with bounded pending operations. Physical old/deleted copies remain in Drive and continue using Google storage. The host's private key map is essential recovery data; preserve it and its encryption key. Interrupted upload/folder journals retain known identifiers for administrative reconciliation; automatic physical reclamation is not implemented. Logical deletion is not a promise of provider-byte erasure.
After attaching credentials, verify consent, upload/read/update/range/delete, token refresh and mapping-preserving reconnect using a designated test account before enabling public account creation. No live test is claimed yet.
Disconnect deletes only this host’s selected connection and saved credentials. It does not revoke Google project permissions: Google revocation affects all clients in the project and can disrupt other connections. Project-wide revocation remains an explicit action in Google Account connection management.