Checking access…

Skip to main content
Audience: CCG Platform Engineers

X-Source Header β€” Propagation & Persistence

Platform engineers tracing how the X-Source header is persisted and re-injected by the Envoy sidecar across session, payment-method, payment, and refund tables. See X-Source header (merchant-facing) for the public contract this internal flow backs.

Processing detail for the X-Source developer page.

Session Storage and Sidecar Propagation​

When a session is created with the x-source header, its value is saved in the checkout-session table by the auth-service. Later, when a user or agent creates a payment method or payment in the widget, the call is intercepted by the sidecar, which retrieves the x-source value from the auth-service and includes it in the request.

For implementation details, see config/templates/envoyfilter.yaml in customer-service or payment-service.

Because the sidecar β€” not the widget or the merchant β€” injects the header on these downstream calls, X-Source does not need to be resent on every request once the session exists; it is resolved from the session.

The x-source value is persisted in the following database tables:

OperationTableColumnData TypeNullable
SESSIONCHECKOUT_SESSIONSOURCEVARCHAR2(50)YES
SETUP PAYMENT METHODSETUP_PAYMENT_METHODSOURCEVARCHAR2(50)YES
PAYMENTCC_PAYMENTSOURCEVARCHAR2(50)YES
REFUNDCC_REFUNDSOURCEVARCHAR2(50)YES