Skip to content

[codex] Wire prod MCP OAuth secrets - #8521

Merged
Git-on-my-level merged 1 commit into
mainfrom
codex/prod-mcp-oauth-env-wiring
Jun 28, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
codex/prod-mcp-oauth-env-wiring

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jun 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • wire prod backend-secrets chart to the production MCP OAuth Secret Manager entries
  • expose those keys to prod backend-listen when the prod backend chart is next deployed
  • include both the confidential ChatGPT test-client envs and the public no-secret PKCE client envs

Production 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_URL
  • MCP_RESOURCE_URL
  • MCP_OAUTH_CHATGPT_CLIENT_ID
  • MCP_OAUTH_CHATGPT_CLIENT_SECRET
  • MCP_OAUTH_CHATGPT_REDIRECT_URIS
  • MCP_OAUTH_PUBLIC_CLIENT_ID
  • MCP_OAUTH_PUBLIC_REDIRECT_URIS

The redirect URI secrets now include both:

  • https://chatgpt.com/connector/oauth/OUbdUMlL15Ct
  • https://chatgpt.com/connector_platform_oauth_redirect

The first URL is derived from the previous app submission's callback_id; the second is kept for legacy compatibility.

Validation

  • Confirmed all seven prod secrets exist in Secret Manager.
  • Installed Helm locally and rendered both charts:
    • helm template prod-omi-backend-secrets ./backend/charts/backend-secrets -f ./backend/charts/backend-secrets/prod_omi_backend_secrets_values.yaml
    • helm template prod-omi-backend-listen ./backend/charts/backend-listen -f ./backend/charts/backend-listen/prod_omi_backend_listen_values.yaml
  • Verified the rendered manifests include all seven MCP OAuth secret/env references.

@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 2 files

Confidence score: 5/5

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

Re-trigger cubic

@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: 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".

Comment on lines +376 to +380
- name: MCP_AUTHORIZATION_SERVER_URL
valueFrom:
secretKeyRef:
name: prod-omi-backend-secrets
key: MCP_AUTHORIZATION_SERVER_URL

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 74ab0fe into main Jun 28, 2026
4 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/prod-mcp-oauth-env-wiring branch June 28, 2026 22:36
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