Skip to content

Refactor: Separate proxy data-planes from a shared proxy shim layer #682

Closed

Description

@huang195

Summary

Rearchitect Cortex to cleanly separate the concrete proxy data-planes from a shared "proxy shim" layer. The shim owns the cross-cutting concerns so each proxy (Go proxy, Envoy, Praxies) becomes a thin data-plane implementation rather than a duplicate of the same plumbing.

The shim layer should handle

  • TLS termination
  • mTLS
  • Session correlation
  • Protocol bridging
  • Support for both transparent and forward proxy modes

Motivation

Cross-cutting concerns (TLS/mTLS, session correlation, protocol bridging, transparent-vs-forward proxy handling) are currently entangled with the individual proxy implementations. Extracting them into a shim layer:

  • makes adding a new proxy (e.g. Praxies) a matter of implementing a thin data-plane against the shim;
  • gives one place for TLS/mTLS and session-correlation behavior across all proxies;
  • unifies transparent + forward proxy support.

Related

Design to be expanded.

Activity

  1. self-assigned this
    on Jul 20, 2026
  2. huang195 commented on Jul 30, 2026

    @huang195
    MemberAuthor

    should also cover reverse proxy for inbound traffic

  3. added
    nice to have
    on Sep 10, 2026
  4. added this to the Release V0.9.0 milestone on Sep 10, 2026
  5. huang195 commented on Sep 10, 2026

    @huang195
    MemberAuthor

    Adopted into the Cortex v0.9.0 release epic #962 as a P1 (stretch) item, with two notes:

    The title and scope are stale. The shared-shim-layer approach described here was rejected in
    favour of in-process policy plus a thin interception front. This needs rescoping before anyone
    picks it up.

    Hard merge cutoff 2026-09-19. A proxy data-plane refactor merging in the release's final week
    is the single biggest threat to the v0.9.0 stability bar. If it has not merged by 2026-09-19 it
    leaves the release.

    Note: this issue stays a native sub-issue of #2244 (epic: Cortex Phase 1) — GitHub allows only
    one parent — so #962 tracks it by reference in its stretch checklist rather than as a sub-issue.

  6. huang195 commented on Oct 5, 2026

    @huang195
    MemberAuthor

    moot point at this point as praxis integration is currently on hold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

nice to have

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions