Skip to content

Security: rotate Google OAuth Client Secret (last rotation 2026-05-16) #2316

@aalemayhu

Description

@aalemayhu

Context

The current Google OAuth Client Secret (used by the server for the Drive integration) was rotated on 2026-05-16. The previous value was pasted into a Claude Code transcript during the rotation, which means it lives in the local Claude session JSONL.

What to do

Rotate the Client Secret in the Google Cloud Console:

  1. https://console.cloud.google.com/apis/credentials
  2. Open the OAuth 2.0 Client used by 2anki.net
  3. "Reset Secret" / generate a new one
  4. Update `GOOGLE_CLIENT_SECRET` in the prod `.env` (server-level, not web-level)
  5. `pm2 restart server` on the prod box
  6. Verify the Drive flow still works end-to-end (pick a Doc, see it convert)

Why now vs. urgent

The transcript is on Alexander's local machine, gitignored, not pushed anywhere. So this is defense-in-depth rotation, not a live incident. But it's the kind of thing that's painless to do now and painful to do later under pressure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions