starknet_transaction_prover,tower_ohttp: OHTTP-unlinkable request-id for decapsulated content#14222
starknet_transaction_prover,tower_ohttp: OHTTP-unlinkable request-id for decapsulated content#14222avi-starkware wants to merge 1 commit into
Conversation
b74ee13 to
49a7855
Compare
4055121 to
bfa94e0
Compare
49a7855 to
112d26d
Compare
PR SummaryMedium Risk Overview For plaintext, the layer reuses the same id as outer Unit and integration tests cover plaintext reuse, decapsulated fresh ids, log+span sharing, production layer ordering (including span inside OHTTP), and an end-to-end unlinkability check. Reviewed by Cursor Bugbot for commit adf3407. Bugbot is set up for automated code reviews on this repo. Configure here. |
112d26d to
fef476a
Compare
bfa94e0 to
54145f3
Compare
…for decapsulated content Tags downstream content logs with a request-id via a new `RequestSpanLayer` placed below the OHTTP layer. For plaintext it reuses the envelope id from `RequestLogLayer`; for an OHTTP-decapsulated request (marked with a new `tower_ohttp::Decapsulated` extension) it mints a FRESH UUID and discards any client-supplied inner id. The fresh inner id is never echoed back, so the relay-visible envelope id and the gateway's content-log id cannot be joined — preserving OHTTP unlinkability while still giving every request's downstream logs a correlatable id. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fef476a to
fd81285
Compare
54145f3 to
adf3407
Compare

Tags downstream content logs with a request-id via a new
RequestSpanLayerplaced below the OHTTP layer. For plaintext it reuses the envelope id from
RequestLogLayer; for an OHTTP-decapsulated request (marked with a newtower_ohttp::Decapsulatedextension) it mints a FRESH UUID and discards anyclient-supplied inner id.
The fresh inner id is never echoed back, so the relay-visible envelope id and
the gateway's content-log id cannot be joined — preserving OHTTP unlinkability
while still giving every request's downstream logs a correlatable id.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com