Skip to content

[codex] Wire Google OAuth secrets into backend runtime - #8720

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:codex/fix-google-oauth-secret-wiring
Jul 1, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:codex/fix-google-oauth-secret-wiring

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Sync GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET into dev/prod backend Kubernetes secrets via backend-secrets ExternalSecret values.
  • Inject those OAuth env vars into dev/prod backend-listen and pusher deployments.

Why

Fixes #8719. The Google OAuth values were rotated in Secret Manager, but the runtime Kubernetes secret and service env wiring did not include them, so Google Calendar/account integration paths could fail token refresh with missing GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET.

Validation

  • python backend/scripts/validate-backend-runtime-env.py --env dev
  • python backend/scripts/validate-backend-runtime-env.py --env prod
  • Parsed all six edited values files with yaml.safe_load.
  • Rendered affected Helm charts with required placeholder render-time values and confirmed GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET appear in the dev/prod ExternalSecret, backend-listen, and pusher manifests.

Notes

  • Did not wire GOOGLE_MAPS_ANDROID_API_KEY; no backend runtime consumer was visible in this chart path, so this PR keeps the fix scoped to the OAuth secrets used by google_utils.py.

Review in cubic

@Git-on-my-level Git-on-my-level added the no-changelog-needed Skip desktop changelog enforcement for internal-only changes label Jul 1, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 6 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@Git-on-my-level
Git-on-my-level merged commit a175243 into BasedHardware:main Jul 1, 2026
5 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: df4ac64d5c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +43 to +46
- secretKey: GOOGLE_CLIENT_ID
remoteKey: GOOGLE_CLIENT_ID
- secretKey: GOOGLE_CLIENT_SECRET
remoteKey: GOOGLE_CLIENT_SECRET

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Wire OAuth secrets into Cloud Run services

When Google OAuth requests hit the Cloud Run backend/backend-integration services, this still leaves GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET unset: these new ExternalSecret keys only populate the GKE *-omi-backend-secrets Secret, while .github/workflows/gcp_backend.yml renders Cloud Run secret bindings from backend/deploy/runtime_env.yaml, which was not updated. The OAuth URL/callback paths in backend/routers/integrations.py and token refresh helpers will therefore continue to fail on the HTTP API despite the GKE secret being synced.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Skip desktop changelog enforcement for internal-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backend runtime missing Google OAuth secret wiring after key rotation

1 participant