Skip to content

Conversation

@ankrgyl
Copy link
Contributor

@ankrgyl ankrgyl commented Nov 25, 2025

Support specifying secrets at the project level

@vercel
Copy link

vercel bot commented Nov 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ai-proxy Ready Ready Preview Comment Nov 26, 2025 1:34am

Copy link

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

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.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 614 to +621
cachedAuthToken || authToken,
model,
orgName,
projectId,

Choose a reason for hiding this comment

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

P1 Badge Pass project IDs to secrets lookup

The new PROJECT_ID_HEADER is parsed and passed to getApiSecrets here, but none of the existing implementations (e.g., lookupApiSecret in apis/node/src/login.ts) use the fifth argument or include project_id in the /api/secret POST. When a caller sends x-bt-project-id expecting project-scoped credentials, the proxy still fetches and caches org-level secrets keyed only by token/model, so a secret from one project can be reused for another and the project-level secret selection never takes effect.

Useful? React with 👍 / 👎.

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.

2 participants