Skip to content

feat: Gateway providers, model access matrix, and usage dashboard - #4358

Merged
OmarMcAdam merged 44 commits into
devfrom
inference-support-per-org-destinations
Sep 11, 2026
Merged

OmarMcAdam merged 44 commits into
devfrom
inference-support-per-org-destinations

Conversation

@OmarMcAdam

@OmarMcAdam OmarMcAdam commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

Security review update

Current head: 329a0a183979b606eb2335054577779013f70095.

  • 2f43be006: admin-and-above management, immutable persisted provider identity/destination, retained member-owned credential flows.
  • 0e5d2610b: supported model operations only; provider management APIs and unowned hosted resources denied before credential use.
  • 329a0a183: desktop/dashboard regression fixtures aligned with the access matrix.

Verification

Scoped security verification: Passed. Final-head testkit: 32 passed, zero failed/skipped. Final-head supplemental API/Gateway tests: 291 passed, zero failed/skipped, including real MySQL refresh/rollup cases and Helm checks. All five application typechecks passed; SDK generation/parity/typecheck passed with unchanged generated files. Current CI checks are green.

Broader local UI suites remain red on seven failures also reproduced on clean origin/dev control 71fa7a233 (one Den Web, six app). These were not suppressed or represented as passes. This is not an all-tests-green or production-rollout verdict.

Final-head evidence and reproduction commands. The four requested review threads have replies and are resolved.

Earlier feature batch summary (before security review)

Summary

Gateway providers with independent membership keys, an explicit model/access matrix, and an organization usage dashboard. One draft PR; implementation and UI batches are split into commits.

Current head: 1a4d3a42cb5a137a4a1006c118e37524a0c381cf.

Latest batch

  • Independent ow_gw_ Gateway keys; existing OpenWork Models keys, limits and billing remain a separate path.
  • gateway_* feature tables with reusable, overlapping model groups, named upstream credential sets and audience → group → key access rules.
  • Registered forward migrations 0095–0097 preserving existing feature data, with a guarded local migration runner instead of destructive schema push.
  • Model universe defaults to all supported catalog models (modelIds: []); explicit selection restricts the universe. Removed models are also removed from group memberships.
  • Provider cards; flatter setup/edit screens; model-group cards; upstream-key metadata; dialogs; catalog logos; corrected React identity and reauthentication handoff.
  • Desktop labels show model/provider names without exposing model-group or key labels. Routing identifiers and authorization remain explicit underneath.
  • Gateway Usage above Providers: 31 UTC days, stacked bars, model/team/person grouping, contextual filters, friendly catalog model labels and Tokens/Cost switch.
  • Team usage uses current membership and counts a member in every team they belong to. Totals intentionally overlap across teams; no stored team attribution or 0098 migration.
  • Cost uses recorded micro-USD amounts, separately priced input/output and supported cache/tier handling. Missing estimates are not treated as free; the cost disclaimer appears below the chart.
  • dev:web-local defaults to multi-org/signup-enabled development. Explicit overrides and private production defaults are retained; Turbo forwards supported settings. Fixed API watching and TypeScript-aware schema export.
  • Generated OpenAPI and SDK files refreshed for the new contracts.

Latest commits

  1. a57997a5f — independent keys and matrix storage.
  2. 564f7796b — matrix enforcement and token/cost aggregation.
  3. 1d77aedcb — provider setup, desktop and usage UI.
  4. 1a4d3a42c — guarded local migrations and development settings.

Verification: Incomplete for this head

Committed and pushed at the requester's direction without running tests or typechecks during this commit step. Commit hygiene and whitespace checks were performed; no accidental secrets, runtime dumps or unregistered migration entries were found. API/SDK generation completed, but generation is not test proof.

Earlier feature/rename evidence is historical and does not validate this new matrix/dashboard batch. Some targeted builds and disposable migration checks were performed while resolving local-startup errors, but full final-head testkit, migration, UI and integration verification remains outstanding. Keep this PR draft.

Boundaries and remaining rollout work

  • No production deployment or customer migration performed.
  • Live customer-owned Vertex OAuth consent/IAM must still be exercised before rollout.
  • Broader per-member BYOK and Vertex/Azure migration conversions remain fail-closed rather than silently deleting source configurations.
  • Provider support is an explicit SDK allowlist; Bedrock CRUD remains deferred.
  • Request completion persistence has bounded retries, not a universal exactly-once guarantee.
  • Retention scheduling is opt-in for Helm; other deployments need an authorized caller and monitoring.

Detailed evolving design notes remain outside this public repository in ~/code/docs/inference-gateway/.

@mintlify

mintlify Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
differentai 🟢 Ready View Preview Sep 11, 2026, 2:15 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@vercel

vercel Bot commented Sep 3, 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 Sep 11, 2026 2:14pm UTC
openwork-den Ready Ready Preview Sep 11, 2026 2:14pm UTC
openwork-diagnostics Ready Ready Preview Sep 11, 2026 2:14pm UTC
openwork-landing Ready Ready Preview, v0 Sep 11, 2026 2:14pm UTC

@benjaminshafii

Copy link
Copy Markdown
Member

@OmarMcAdam Please review the inference gateway rollout, organization-provider routing, credentials and required configuration when this draft is ready. It remains outside the routine merge batch.

Holding for your review under the current merge instructions.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: 173f5a2
Status:🚫  Build failed.

View logs

Comment thread ee/apps/gateway/src/gateway.ts Resolved
Comment thread ee/apps/gateway/src/gateway.ts Resolved

This branch was successfully deployed

5 active deployments
staging - packages/docs — 173f5a22 Deployed Sep 11, 2026 by mintlify[bot]
Preview – openwork-app — 173f5a22 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-landing — 173f5a22 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-den — 173f5a22 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-diagnostics — 173f5a22 Deployed Sep 11, 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.

3 participants