Skip to content

Accept resolved Vertex OAuth bearer secrets and WIF auth_types#660

Merged
Erin McNulty (erin2722) merged 3 commits into
mainfrom
erin/vertex-wif-proxy-schema
May 26, 2026
Merged

Accept resolved Vertex OAuth bearer secrets and WIF auth_types#660
Erin McNulty (erin2722) merged 3 commits into
mainfrom
erin/vertex-wif-proxy-schema

Conversation

@erin2722
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 10:01pm

Request Review

@erin2722 Erin McNulty (erin2722) changed the title Accept resolved Vertex OAuth bearer secrets Accept resolved Vertex OAuth bearer secrets and WIF auth_types May 26, 2026
@erin2722 Erin McNulty (erin2722) marked this pull request as ready for review May 26, 2026 18:31
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: 3a0e2722d3

ℹ️ 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 +100 to +105
authType: z.enum([
"access_token",
"oauth_bearer",
"service_account_key",
"workload_identity_federation",
]),
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 unsupported Vertex authType values

Allowing "oauth_bearer" and "workload_identity_federation" here introduces a runtime failure path: these secrets now pass schema validation, but request handling still only treats authType === "access_token" as a bearer token and otherwise calls getGoogleAccessToken (which parses secret as a service-account JSON key). For resolved OAuth/WIF secrets (for example a raw access token or __VERTEX_WIF__ placeholder), this causes parse errors during request execution instead of a valid auth flow.

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.

support for these auth types aren't implemented in the legacy proxy, and so this comment isn't relevant

@erin2722
Copy link
Copy Markdown
Contributor Author

erin todo: pull out the secret config into its own schema

@erin2722
Copy link
Copy Markdown
Contributor Author

failure unrelated, merging

@erin2722 Erin McNulty (erin2722) merged commit 9c75c78 into main May 26, 2026
6 of 7 checks passed
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