Repository navigation
feat(platform): add per-key budgets, ODT ingest, SSO errors, docs link - #2314
Merged
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
apiKeyscope +usageLedger.apiKeyId, enforced on/api/v1/chat/completionsindependently of the key owner's user/team/org caps. Ships a versioned, reversible migration (v0_2_89).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.odtuploads and is read like DOCX/PPTX/XLSX. User-facing format lists in docs updated.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.Documentation menu link — closes #2311
The user-menu "Help & feedback" item becomes "Documentation" and points at the docs site (previously a contact form).
Testing
bun run checkgreen — typecheck, lint (type-aware), format, migrations (migrations:check). All per-feature suites green.Related
Part of Epic #2313.