Repository navigation
Description
Tracking stub for the third slice of #220, so all of its replacements are discoverable from this repo.
The work itself lives in rossoctl/cortex#905 — originally per-subject credential resolution in AuthBridge's static-inject, now rescoped (2026-10-05) to connection-bound caller identity + identity-keyed credential resolution, the deferred per-user half of Z5 (docs/specs/2026-06-19-m13-generalized-credentialed-egress-design.md; docs/specs/README.md:152 records RC1 as implementing only the static single-tenant slice).
Note: the P5 spec §6 and ADR-0032 still name that repo
kagenti-extensions. It has been renamed and redirects torossoctl/cortex.
Why this stub exists — the claim boundary
From the P5 spec §7: #239 makes the harness send a per-request subject and carry an inert placeholder instead of a real key. Nothing resolves that subject into a credential until cortex#905 lands.
So #239 makes the system tenancy-neutral; it does not make it multi-tenant safe. End-to-end multi-tenant safety is not claimable — and must not be advertised — until a verified identity is resolved into a credential at egress: by moca-egress (MI1 S4/S5, not yet implemented) or by Cortex via S6, and only once the §12.3 conformance suite passes. This stub exists so that boundary stays visible from the repo where the density and isolation claims are made.
Relationships
- Split out of feat: multi-session harness multiplexing — N concurrent sessions per process #220, alongside P5: session identity isolation — per-request subject, no ambient credential #239 and P5b: deployment model — ScaledJob → elastic pod pool #240.
- Formerly blocked by P5: session identity isolation — per-request subject, no ambient credential #239. No longer:
/turnnow takes a verified subject from a signed token (packages/knative-server/src/turn-auth.ts) and the control plane issuessh-placeholder-<subject>(packages/control-plane/src/exchange.ts). P5: session identity isolation — per-request subject, no ambient credential #239 stays open for its remaining sub-parts. - The in-repo path is
moca-egress(spec D4); Cortex is an optional, later, conformance-gated replacement (S6). Seedocs/specs/2026-09-28-moca-multi-user-isolation-design.md§2.4 and §14. - Implemented in rossoctl/cortex#905.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew/ToDo
Activity
pdettori commentedon Sep 17, 2026
Epic: rossoctl/rossoctl#2546 (Stream 1 — multi-tenancy/session isolation)
Status update (2026-09-17)
No change — still blocked on #239. The injector cannot key
on a subject the harness never sends, and #239 (which introduces
X-SH-Subject) hasnot been implemented yet. rossoctl/cortex#905 (the other half of this dependency)
is unaffected by anything merged on this repo since this issue was filed.
Assisted-By: Claude (Anthropic AI) [email protected]
cwiklik commentedon Oct 5, 2026
Status update (2026-10-05) — supersedes the 2026-09-17 comment
The previous status comment is out of date on both of its claims. Correcting it rather than
editing it, so the history stays readable.
It said: "still blocked on #239 … #239 (which introduces
X-SH-Subject) has not been implementedyet. rossoctl/cortex#905 … is unaffected by anything merged on this repo since this issue was
filed." Neither holds now.
What has landed on this repo
/turnexists —packages/knative-server/src/turn-auth.ts, withtests (
turn-auth.test.ts,turn-auth-route.test.ts). The subject istoken.subfrom averified signed token, never an inbound header;
X-SH-Subjectis honoured only for a trustedorchestrator, and a request carrying both a token and a conflicting header is rejected rather
than resolved by precedence.
packages/control-plane/src/exchange.tshas a credentialstore and a per-turn exchange with a subject-derived placeholder (
placeholderFor(subject)→sh-placeholder-<subject>).injector configured, so adding one strictly narrows what the harness may hold. The remaining
direct-credential path is the documented ADR-0033 divergence, and MU3 deletes it.
So the harness does now send a per-request subject, and it is cryptographically verified rather
than client-asserted. That is a stronger starting point for the injector than this issue originally
assumed — cortex#905 can key on a verified identity, not a trusted-orchestrator convention.
#239 stays open for its remaining sub-parts; this comment is not a claim that it is finished.
What this changes for the dependency
cortex#905 is no longer blocked, and its
blockedlabel has been removed. The remaining work isCortex-internal; it has been retitled and rescoped to
"connection-bound caller identity + identity-keyed credential resolution in static-inject", with an
ordered breakdown in
this comment. Four of its
five steps need nothing further from this repo; only the last (verifying MOCA's signed grant format
and passing the §12.3 conformance suite) waits on us.
One correction worth carrying here, because it is the reason the Cortex work is not a one-liner: the
injector must not key resolution on the inbound placeholder.
sh-placeholder-<subject>ispredictable and arrives from a model-influenced workload, so any sandbox could present another
user's placeholder and receive their real credential. The verified subject exists at
/turn; what isstill missing is a way for Cortex to learn it from the connection at egress. Invariant I3 —
caller identity comes from the connection, never the request.
Claim boundary — unchanged
The boundary this stub exists to keep visible still holds: end-to-end multi-tenant safety is not
claimable until the injector can resolve per-identity. The harness half narrows the exposure; it does
not close it.
Assisted-By: Claude (Anthropic AI) [email protected]
pdettori commentedon Oct 15, 2026
Status update (2026-10-15)
Builds on the 2026-10-05 correction, which stands. This one records where the work now sits and what the issue should be read as.
Where this stands
/turntakes its subject from a verified signed token (packages/knative-server/src/turn-auth.ts), andpackages/control-plane/src/exchange.tsissues thesh-placeholder-<subject>placeholder. P5: session identity isolation — per-request subject, no ambient credential #239 stays open for its remaining sub-parts, but it no longer gates Cortex.403d5d2. It cannot select a credential from a verified caller identity, cannot carry an identity from a CONNECT into the requests bridged inside the tunnel, and listens only on TCP. That reading is dated and is not a conformance result.moca-egress(spec D4, MI1 S4/S5). It is not implemented yet: it appears only in docs and deploy comments (for exampledeploy/vm/README.md,deploy/compose/docker-compose.yml). Cortex replaces it only if it passes MI1's conformance suite (S6, spec §12.3) at the release being adopted.deploy/knative/. That path is deprecated (ADR-0041) and covers the static single-tenant slice (RC1) only.What this changes for this issue
This stub no longer tracks a blocked dependency. It tracks an optional, later replacement of
moca-egress. Two consequences:moca-egressshipping and passing its own conformance suite, not on cortex#905.Claim boundary — unchanged
End-to-end multi-tenant safety is still not claimable. Nothing in this repo resolves a verified identity into a credential at egress yet. The harness half narrows the exposure; it does not close it. This must not be advertised until
moca-egress(or Cortex via S6) does that resolution and passes the §12.3 suite.Proposed follow-ups
docs/specs/2026-09-28-moca-multi-user-isolation-design.md, §2.4 and §14) from the body.Assisted-By: Claude (Anthropic AI) [email protected]
[-]Z5 dependency: per-subject credential resolution at the injector[/-][+]Z5 dependency: Cortex as the identity-keyed injector (S6, replaces moca-egress)[/+]pdettori commentedon Oct 21, 2026
Status update (2026-10-21): gap analysis for Cortex as the SBX0 egress proxy
This builds on the 2026-10-15 update, which still holds. The full gap table, with code references at Cortex
15da639, is on cortex#905. This comment covers what it means for MOCA.Where things stand on MOCA
main(95ff373)PUT /network-interfaces(launcher_firecracker.go:411). Egress is SBX0 increment 2: E12, then P4.1's vsock transport with an operator allowlist of package registries (SBX0 spec §11).moca-egressand the §12.3 conformance suite do not exist yet. TheExec.grantfield (MI1 §8.2) is not inproto/sandbox/v1either. Cortex has nothing to be tested against yet.sandboxcontrol-plane profile has no credential store or token endpoint (SBX0 spec §4, "needs no credential store, KEK…"). User-key injection in SBX0 needs MOCA work before any proxy question comes up: somewhere for users to register keys, and an endpoint that resolves them.Cortex gaps, in summary
Basic/x-api-keyheader bindings (git over HTTPS fails today, G5), refusing to inject over plain HTTP (G7), and failing closed instead of falling back to a tunnel on hosts that have a credential (G8; GitHub is in Cortex's default passthrough list).session-budgetandibackey on a session id the client sets in headers, and the body-reading plugins conflict with "stream, never buffer".What this means for this issue
moca-egressprovides. D4 stands.moca-egress. That gives cortex#905 step 5 something concrete to run against.Claim boundary: unchanged
End-to-end multi-tenant safety is still not claimable. Nothing in this repo resolves a verified identity to a credential at egress.
Assisted-By: Claude (Anthropic AI) [email protected]