Skip to content

Revoke Google tokens during disconnect#20

Merged
ltyu merged 3 commits intosecurity/tighten-iam-and-secret-loadingfrom
security/revoke-google-tokens-on-disconnect
Mar 21, 2026
Merged

Revoke Google tokens during disconnect#20
ltyu merged 3 commits intosecurity/tighten-iam-and-secret-loadingfrom
security/revoke-google-tokens-on-disconnect

Conversation

@ltyu
Copy link
Copy Markdown
Owner

@ltyu ltyu commented Mar 20, 2026

Summary

  • revoke the stored Google refresh token during disconnect before clearing it locally
  • decrypt the stored refresh token with KMS and surface whether Google-side revocation succeeded in the disconnect response
  • restore only the KMS and DynamoDB read permissions that the disconnect handler now needs and document the updated flow

Testing

  • pnpm test:run -- src/handlers/disconnectGoogleOAuth.test.ts src/handlers/googleOAuthCallback.test.ts
  • pnpm exec tsc --noEmit
  • sam validate

Base automatically changed from security/redact-mailbox-logs to security/tighten-iam-and-secret-loading March 21, 2026 01:07
@ltyu ltyu merged commit 59e962a into security/tighten-iam-and-secret-loading Mar 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant