Skip to content

feat(platform): add per-key budgets, ODT ingest, SSO errors, docs link - #2314

Merged
yannickmonney merged 1 commit into
mainfrom
feat/compliance-must-requirements
Jul 1, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
feat/compliance-must-requirements

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

Remediates four MUST-requirements ahead of a compliance review. The fifth (a public status page) ships separately in the ops repo.

Changes

Per-API-key budgets — closes #2308

Budgets can now target an individual API key: new apiKey scope + usageLedger.apiKeyId, enforced on /api/v1/chat/completions independently of the key owner's user/team/org caps. Ships a versioned, reversible migration (v0_2_89).

  • Live-verified: key A capped → HTTP 429 budget_exceeded; key B (same user) → 200; org cap still applies across all keys.

ODT ingest — closes #2309

New OpenDocument Text extractor (odt.ts, jszip + fast-xml-parser) plus allowlist entries, so .odt uploads and is read like DOCX/PPTX/XLSX. User-facing format lists in docs updated.

  • 8/8 extractor unit tests; live upload accepted.

SSO error surfacing + issuer hardening — closes #2310

The login page now renders the real identity-provider error (AADSTS codes) instead of a blank form or a raw 500; the authorize handler redirects with a localized error; issuer validation rejects bad single-tenant issuers instead of silently degrading to common; the admin form surfaces the exact redirect URL + env prerequisites.

  • 66 tests; live-verified error rendering (AADSTS50011 / conditional-access).

Documentation menu link — closes #2311

The user-menu "Help & feedback" item becomes "Documentation" and points at the docs site (previously a contact form).

  • Localized en/de/fr; 12/12 tests; live-verified.

Testing

bun run check green — typecheck, lint (type-aware), format, migrations (migrations:check). All per-feature suites green.

Related

Part of Epic #2313.

Remediate four MUST requirements ahead of a compliance review (the fifth,
a public status page, ships in the ops repo).

- per-key budgets: budgets can now target an individual API key (new
  `apiKey` scope + `usageLedger.apiKeyId`), enforced on the OpenAI-compat
  path independently of the key owner's user/team/org caps. Ships a
  versioned, reversible migration.
- ODT ingest: new OpenDocument Text extractor plus allowlist entries, so
  `.odt` uploads and is read like DOCX/PPTX/XLSX.
- SSO errors: the login page now renders the real identity-provider error
  (AADSTS codes) instead of a blank form or a raw 500; issuer validation
  rejects bad single-tenant issuers instead of silently degrading to
  `common`.
- docs link: the user-menu "Help & feedback" item becomes "Documentation"
  and points at the docs site.

Tests cover per-key budget isolation, ODT extraction, SSO error rendering
and issuer validation, and the menu link. bun run check is green
(typecheck, lint, format, migrations).
@yannickmonney
yannickmonney merged commit cbfd2f7 into main Jul 1, 2026
51 checks passed
@yannickmonney
yannickmonney deleted the feat/compliance-must-requirements branch July 1, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant