Repository navigation
[codex] Wire Google OAuth secrets into backend runtime - #8720
Git-on-my-level merged 1 commit into
Conversation
There was a problem hiding this comment.
💡 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".
| - secretKey: GOOGLE_CLIENT_ID | ||
| remoteKey: GOOGLE_CLIENT_ID | ||
| - secretKey: GOOGLE_CLIENT_SECRET | ||
| remoteKey: GOOGLE_CLIENT_SECRET |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETinto dev/prod backend Kubernetes secrets viabackend-secretsExternalSecret values.backend-listenandpusherdeployments.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 devpython backend/scripts/validate-backend-runtime-env.py --env prodyaml.safe_load.GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRETappear in the dev/prod ExternalSecret,backend-listen, andpushermanifests.Notes
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 bygoogle_utils.py.