Skip to content

Add azure entra oidc schema for secrets#661

Open
Ken Jiang (knjiang) wants to merge 1 commit into
mainfrom
ken/azure-entra-oidc
Open

Add azure entra oidc schema for secrets#661
Ken Jiang (knjiang) wants to merge 1 commit into
mainfrom
ken/azure-entra-oidc

Conversation

@knjiang
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

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

Project Deployment Actions Updated (UTC)
ai-proxy Ready Ready Preview, Comment May 26, 2026 7:46pm

Request Review

Copy link
Copy Markdown

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

Reviewed commit: 61b79f2677

ℹ️ 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 (@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 (@codex) address that feedback".

Comment on lines +31 to +32
.enum(["api_key", "entra_api", "entra_oidc", "entra_bearer"])
.default("api_key"),
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 Reject unimplemented Azure auth types in schema

Allowing entra_oidc and entra_bearer here makes config validation succeed even though request execution only implements entra_api (packages/proxy/src/proxy.ts only branches on auth_type === "entra_api" around lines 2235-2258). For entra_oidc, users are expected to store structured JSON (per the new OIDC schema), but the fallback path treats secret.secret as a raw bearer token and then also sets api-key from that same value, producing invalid Azure auth at runtime. This is a regression introduced by broadening the enum before the corresponding auth flow is wired in.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is fine, this is only gonna be supported for gateway

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