Skip to content

fix(gateway): explain rejected provider credentials - #6537

Merged
benjaminshafii merged 2 commits into
devfrom
fix/gateway-provider-auth-errors
Oct 27, 2026
Merged

benjaminshafii merged 2 commits into
devfrom
fix/gateway-provider-auth-errors

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

What is this about?

AI Gateway provider failures now tell members whether the organization's credential or their own credential was rejected, and who can fix it.

What problem does it solve?

A member was sent to local model settings after an organization-managed provider rejected the shared credential.

What was the situation before?

An upstream 401 or 403 appeared as a generic connection failure, even though the provider credential belonged to the organization.

How is this implemented?

  • The Gateway returns sanitized provider_authentication_failed / provider_permission_denied errors, provider ID, and x-openwork-request-id; upstream bodies are discarded and failures remain recorded.
  • Desktop chat recognizes those Gateway errors, directs organization-credential failures to an administrator, directs member-credential failures to the member, and includes the request ID in copyable Technical details.
  • The chat copy is behind gatewayProviderAuthErrors (cloud and self-hosted, off); disabling it restores the prior recovery copy and action.

What else changed?

  • Synchronized the feature registry and Helm values; adjusted a feature test to typecheck the registry's optional docs field.

Release note

When an AI Gateway provider rejects a credential, chat now explains who can fix it and includes a request ID for support.

Evidence

Gateway and desktop unit tests cover org/member 401/403, request IDs, and unchanged personal-key copy. No real-app screenshot: local MySQL could not start because Docker reported an image-store I/O error.

Design: P3, C6, T2

@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Oct 27, 2026 4:43am UTC
openwork-den Ready Ready Preview Oct 27, 2026 4:43am UTC
openwork-diagnostics Ready Ready Preview Oct 27, 2026 4:43am UTC
1 Skipped Deployment
Project Deployment Actions Updated
openwork-landing Ignored Ignored Preview Oct 27, 2026 4:43am UTC

Request Review

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟡 Updating evidence 225de42 View run 2026-10-27 04:42:30 UTC

A preview for this commit is being prepared.

diff-warden[bot]
diff-warden Bot previously approved these changes Oct 27, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden clearance. Complete security and confidentiality review of d2358f3212e4072f147af5460eb88bab12c6b281 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@diff-warden

diff-warden Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Warden: approved

No high or medium security findings and no confidentiality findings.

Reviewed 225de42b7c94 · Warden run · Updates after every Warden run.

@github-actions
github-actions Bot temporarily deployed to Evidence / PR 6537 October 27, 2026 04:19 Inactive
@benjaminshafii
benjaminshafii enabled auto-merge (squash) October 27, 2026 04:39

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden clearance. Complete security and confidentiality review of 225de42b7c940084a7b6023f4ee081d1990ceafc found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@benjaminshafii
benjaminshafii merged commit a97a8b1 into dev Oct 27, 2026
38 of 40 checks passed

This branch was successfully deployed

4 active (1 outdated) and 2 inactive (1 outdated) deployments
Preview – openwork-app — 225de42b Deployed Oct 27, 2026 by vercel[bot]
Preview – openwork-den — 225de42b Deployed Oct 27, 2026 by vercel[bot]
Preview – openwork-diagnostics — 225de42b Deployed Oct 27, 2026 by vercel[bot]
Evidence / PR 6537 — d2358f32 Deployed Oct 27, 2026 by github-actions[bot]
Preview – openwork-landing — d2358f32 Deployed Oct 27, 2026 by vercel[bot]
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