Commit graph

3 commits

Author SHA1 Message Date
Danny Avila
51edb2a660
🛫 feat: Enable Self-Service Code Worker Pairing (#15367)
* feat: add self-service code worker pairing

* fix: enforce code worker principal boundaries

* fix: separate pairing control planes from execution

* fix: preserve principal worker routing

* fix: pin artifact traffic to code workers

* fix: authenticate code worker selection

* test: mock worker-aware artifact headers

* fix: harden self-service code worker routing

* fix: fail closed for principal code pairing

* style: format code execution headers

* fix: close self-service pairing gaps

* fix: satisfy code environment type checks
2026-09-01 18:46:33 -04:00
Danny Avila
14d6ce7caf
🎫 fix: Exclude System Tenant Sentinel from Code API JWT Claims (#15316)
`resolveTenantId` accepted any truthy tenant value, including the
`SYSTEM_TENANT_ID` sentinel that `runAsSystem()` installs for background
work. The expired-file sweep runs entirely under `runAsSystem()`, so on
deployments without multi-tenant onboarding (`file.tenantId` undefined)
it minted Code API tokens claiming `tenant_id: '__SYSTEM__'`.

The Code API derives its storage namespace from that claim, so the
re-derived session key never matches the one cached at upload time and
the delete is rejected with 403. `deleteCodeEnvFile` only treats 404/405
as already-gone, so `expiredAt` is never cleared and the same files are
retried on every sweep cycle and every process boot.

Treat the sentinel as absent tenant context, consistent with every other
identity-bearing `getTenantId()` consumer, so resolution falls through to
`CODEAPI_JWT_SINGLE_TENANT_ID` (both sides default to `legacy`) or fails
fast under `TENANT_ISOLATION_STRICT`.
2026-08-28 09:19:01 -04:00
Danny Avila
c67e2b54dc
🔐 feat: Mint Code API Auth Tokens (#13028)
* feat: Mint CodeAPI auth tokens

* style: Format CodeAPI download route

* fix: Prune CodeAPI token cache

* fix: Propagate CodeAPI managed auth

* test: Mock CodeAPI auth in traversal suite

* fix: Pass auth context to invoked skill cache

* feat: Mint CodeAPI plan context

* chore: Refresh CodeAPI auth guidance

* fix: Guard OpenID JWT fallback

* fix: Default CodeAPI JWT tenant in single-tenant mode

* chore: Update @librechat/agents to version 3.1.84 in package-lock.json and package.json files

* chore: Standardize references to Code API in comments and tests
2026-05-09 16:09:10 -04:00