Repository navigation
Feat: RC1 AuthBridge egress PoC — design + RC1-0 shared services - #94
Conversation
Reframe the Phase-2 zero-trust credential plane around Rosso Cortex / AuthBridge as the injection and control mechanism, for a single-tenant Kind-first PoC. Filed as its own RC (Rosso Cortex Integration) track rather than a linear Z id, since it reframes the plane rather than succeeding it. AuthBridge sits on both harness HTTP egress hops: a shared LLM gateway (Profile A) and a per-sandbox egress forward-proxy (Profile B), running token-broker credential injection plus stubbed-judge SPARC/IBAC control. BYO sandbox is a marked stretch on the SandboxTransport seam. ADR-0025 records the deployment-topology decision (shared vs co-located) and its trade-offs (per-caller attribution deferred to Z1, abph_ single- replica limit, enforceable harness zero-egress, ambient/waypoint alignment). Registers the RC track + RC1 in the milestone registry; records the Z3+Z5 mechanism merge under one 'egress control-plane, two profiles' pattern (no retro-edits to Z3/Z5 until RC1 is accepted). Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
pdettori
left a comment
There was a problem hiding this comment.
(Self-authored PR — GitHub blocks a formal APPROVE, so this is posted as a COMMENT; review verdict is approve-equivalent.)
Clean, well-scoped PoC scaffolding PR. New @sh/ibac-stub package (canned OpenAI-compatible IBAC judge), its inert Knative manifest, and a manifest-shape test — all gated behind the RC1 path and wired into no kustomization base, so default behavior and existing e2e are untouched. Test coverage is good (decide unit tests, a real-server integration test, YAML-parsing manifest test), and the manifest matches the relay-deployment.yaml shared-image convention exactly. Two minor findings inline, neither blocking. CI is fully green and all commits are signed off.
Assisted-By: Claude Code
… body Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
|
Both inline findings addressed in 46c24b6:
Tests: 14/14 pass, Assisted-By: Claude Code |
…ded annotations RC1-0/1/2/4 are merged and live-verified on both Kind and OCP 4.20 (PRs #94–#104; the OCP live gate passes 6/6). The only remaining RC1 milestone, RC1-3 (BYO sandbox, a marked stretch), is gated on the SandboxTransport live gate ST5 (#88). Per the RC1 spec §7, the Z3/Z5 mechanism-superseded header edits were deliberately deferred "until RC1 is accepted." This flips RC1 Proposed → Accepted and applies those annotations: - RC1 spec: Status → Accepted (with implementation state); §7 closing note updated to reflect the annotations are now applied. - Z3 (inference injector): Status notes its mechanism is superseded by RC1 Profile A (plain-Go injector → AuthBridge shared gateway); retained for deployment-profile detail + deferred per-caller-identity/mTLS. - Z5 (generalized credentialed egress): Status notes RC1 Profile B implements a static single-tenant slice of its mechanism; retained as the home of the deferred per-user / RFC 8693 token-exchange core. - specs/README.md: RC1 row → accepted; Z3/Z5 rows annotated to match. No mechanism prose is deleted; Z3/Z5 remain the home of their deferred per-user work. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
Summary
Lands the design and the harness-side shared services for the RC1 AuthBridge (Rosso Cortex) egress
control-plane PoC — a single-tenant, Kind-first proof that AuthBridge can do credential injection and
action control on the harness's HTTP egress hops, with the real credential never held by any
model-influenced workload.
This PR contains:
docs/specs/2026-07-10-authbridge-egress-control-plane-poc-design.md),ADR-0025 (deployment topology), and the registry entry in
docs/specs/README.md.@sh/ibac-stub— a tiny canned IBAC judge (POST /v1/chat/completions→ an OpenAI completion whosechoices[0].message.contentis{"verdict","reason"}) that lets the PoC demonstrate allow/deny runsdeterministically without a real LLM judge. Denies by a configured tool/URL/arg-marker denylist.
deploy/knative/ibac-stub.yaml— its Deployment + Service (shared repo image +command:override,matching
relay-deployment.yaml), plus a manifest-shape vitest that parses the YAML directly.Flag-gated / inert
The whole RC1 path is gated behind
SH_AUTHBRIDGE(off by default), mirroring theSH_REMOTE_SANDBOXdiscipline. The
ibac-stubmanifest is not wired into any kustomization base — it is applied only bythe RC1 setup path, so this PR changes no default behavior and existing e2e stays green.
Testing
pnpm --filter @sh/ibac-stub test— 11/11 (unit + a real server integration test);pnpm -r testregression-clean.
pnpm --filter @sh/knative-server test— manifest-shape test green.Companion PR
The credential-injection mechanism (
static-injectplugin) is a companion PR in kagenti-extensions.Known follow-up
ibac-stubto CI's per-packagetsc --noEmitlist (.github/workflows/ci.yml) in a later RC1integration change (it is picked up by
pnpm -r testtoday).Assisted-By: Claude Code