Skip to content

[Architecture Review][P1] Unified multi-tenant / security / quota entrypoint #5304

Description

@qqeasonchen

Execution meta — see plan: #5296

Problem

TLS, mTLS, and rate limiting exist as point capabilities, but there is no unified identity and policy context spanning publish, subscribe, ACK, Connector, and A2A.

Proposed direction

Introduce a unified RequestContext at the ingress layer:

RequestContext
- tenantId
- principal
- roles / scopes
- trace context
- quota key
- source identity

Then uniformly implement:

  • topic publish/subscribe ACL;
  • tenant namespaces;
  • subscription, connection, throughput, and backlog quotas;
  • Connector credential isolation;
  • A2A agent registration and invocation authorization;
  • audit events.

Acceptance criteria

  • A single RequestContext flows through publish / subscribe / ACK / Connector / A2A paths.
  • ACL and quota enforcement is centralized, not scattered per protocol.
  • Audit events are emitted for authorized operations.

Part of the Architecture Review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprove the mechanism or performancesecuritySecurity-related improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions