Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

ADR-BW-010: Preserve message identity and cross-boundary correlation

Carry stable integration identity and request context for routing and diagnosis without using correlation fields as authorization credentials.

November 7, 2026Proposed
FieldValue
StatusProposed
Date2026-11-07
OwnersPlatform Engineering TeamTeamPlatform Engineering TeamPlatform team providing BookWorm's thinnest viable platform—orchestration, messaging fabric, scheduling, notifications, ...Open docs
Affected ResourcesBookWormDomainv1.0.0BookWormCore e-commerce domain for the BookWorm online bookstore, coordinating catalog discovery, customer baskets, order fulfil...Ownerarchitecture-enabling-teamDiagramRepositoryOpen docs
Related ADRsADR-BW-005: Use Kafka for configured asynchronous integrationDecision Recordv1.0.0ADR-BW-005: Use Kafka for configured asynchronous integrationRetain the shared Wolverine Kafka integration for asynchronous cross-capability messages where a broker is configured.Ownerplatform-engineering-teamOpen docs, ADR-BW-013: Use shared structured logging and OpenTelemetryDecision Recordv1.0.0ADR-BW-013: Use shared structured logging and OpenTelemetryProduce correlated logs, traces, metrics, and configured health signals while keeping business completion separate from ...Ownerplatform-engineering-teamOpen docs, ADR-003: Integrate through Kafka contracts correlated by Order IDDecision Recordv1.0.0ADR-003: Integrate through Kafka contracts correlated by Order IDFinance exchanges environment-scoped integration messages through Kafka and partitions messages exposing OrderId by that...Ownercommerce-fulfillment-teamOpen docs

Context & Problem Statement

Customer journeys such as checkout and review projection span microfrontends, HTTP/gRPC boundaries, Kafka topics, and background workers. Without stable correlation and message identifiers, operators cannot trace failures end to end, yet correlation headers must never be trusted as authentication or authorization proof.

Decision Drivers

  • End-to-end traceability: Connect spans and logs across HTTP, gRPC, and Kafka hops.
  • PII-safe diagnostics: Correlate journeys via opaque IDs without logging personal data.
  • Security isolation: Keep correlation metadata strictly separate from Entra ID auth claims.

Options Considered

OptionProsCons
Propagate trace/message IDs + enforce auth independentlyUnified tracing across sync and async paths; zero privilege escalationEvery hop must preserve correlation headers/envelopes
Generate isolated IDs per serviceZero upstream propagation requiredBreaks end-to-end failure correlation
Correlate by timestamp or customer emailNo extra headers neededUnreliable under load and leaks PII into logs
Trust correlation/user IDs as auth credentialsFewer token checks downstreamVulnerable to header spoofing and privilege escalation

Decision & Consequences

Chosen Option: Propagate W3C trace context, request IDs, and stable CloudEvents message identities across all synchronous and asynchronous hops while verifying authentication and authorization independently at each boundary.

Compliance Criteria

  • Integration events must carry stable message IDs and domain correlation keys (e.g., OrderId, FeedbackId).
  • Handlers and endpoints must derive caller identity exclusively from validated Entra ID tokens—never from correlation headers or payload fields.
  • Incident logs and traces must correlate via opaque IDs rather than customer emails or names.