Repository navigation
[codex] Wire prod MCP OAuth secrets - #8521
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e3b1e111a
ℹ️ 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".
| - name: MCP_AUTHORIZATION_SERVER_URL | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: prod-omi-backend-secrets | ||
| key: MCP_AUTHORIZATION_SERVER_URL |
There was a problem hiding this comment.
Apply backend-secrets before required env refs
When this prod chart is deployed through the main backend workflow, these new secretKeyRefs are required before the ExternalSecret has been updated: I checked .github/workflows/gcp_backend.yml, and it upgrades backend-listen and waits for rollout at lines 109-114, while the only backend-secrets handling later is the Cloud Run sync at lines 130-134 (it never applies the GKE ExternalSecret). Unless someone has already run the chart-only workflow, the Kubernetes Secret lacks MCP_AUTHORIZATION_SERVER_URL and the other new keys, so new pods hit CreateContainerConfigError and the backend deploy fails; apply the backend-secrets chart before the listen rollout or make these refs non-blocking.
Useful? React with 👍 / 👎.
Summary
backend-listenwhen the prod backend chart is next deployedProduction impact
This PR does not deploy production by itself. The prod backend deploy workflows are manual (
workflow_dispatch), and the live prod Cloud Run/GKE services currently do not consume these env vars until a prod deploy/sync is run.I already created the corresponding secrets in GCP project
based-hardware:MCP_AUTHORIZATION_SERVER_URLMCP_RESOURCE_URLMCP_OAUTH_CHATGPT_CLIENT_IDMCP_OAUTH_CHATGPT_CLIENT_SECRETMCP_OAUTH_CHATGPT_REDIRECT_URISMCP_OAUTH_PUBLIC_CLIENT_IDMCP_OAUTH_PUBLIC_REDIRECT_URISThe redirect URI secrets now include both:
https://chatgpt.com/connector/oauth/OUbdUMlL15Cthttps://chatgpt.com/connector_platform_oauth_redirectThe first URL is derived from the previous app submission's
callback_id; the second is kept for legacy compatibility.Validation
helm template prod-omi-backend-secrets ./backend/charts/backend-secrets -f ./backend/charts/backend-secrets/prod_omi_backend_secrets_values.yamlhelm template prod-omi-backend-listen ./backend/charts/backend-listen -f ./backend/charts/backend-listen/prod_omi_backend_listen_values.yaml