﻿# Preserve signed inference payloads across transforming proxies

Preserve the bytes or canonical structure covered by the signing contract, and verify the actual intermediary path.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-http-no-transform/
Language: en

A consumer verifies a signed inference payload successfully against the origin, but verification fails through the public gateway. The visible text appears equivalent. A transformation may have changed whitespace, encoding or representation bytes covered by the integrity scheme. Before replacing keys, identify exactly what was signed and what each intermediary changed.

## Establish the signed material

Obtain the application's signing specification. It may cover raw content bytes, selected HTTP fields, a canonicalized document or another explicitly defined structure. These choices are not interchangeable. Record the algorithm, key identifier and signed-component list without exposing private key material. If the application signs a parsed document, use its documented canonicalization; ordinary JSON serialization is not automatically a stable signing format.

## Trace transformations separately

Compare a synthetic origin response with the gateway response at each relevant boundary. Content compression, decompression, whitespace rewriting and media conversion can affect different integrity scopes. Preserve the response metadata alongside a digest of the exact bytes observed. Comparing only the rendered text loses the evidence needed to distinguish a semantic change from a byte-preserving transport operation. Make sure the diagnostic client is not silently decoding content before the capture point.

## Understand the no-transform directive

Cache-Control's no-transform directive constrains intermediary transformations under its defined semantics. It does not create a signature, select a digest algorithm or prove that all deployed components honor the policy. Set it where the response contract requires preservation, then test the supported route. Keep application-specific signing requirements explicit. A successful request containing the directive is not evidence that a problematic transformation was disabled unless the covered material is compared.

## Match the integrity field's scope

HTTP digest fields distinguish message content from representation integrity. Use the field that matches the comparison being performed and understand how content coding affects that choice. A digest obtained from the same untrusted response is not independent proof of origin authenticity. A signature can bind an appropriate digest or other components under a separate signing scheme, but the verification procedure must state that relationship rather than assuming a checksum supplies it.

## Resolve the failing component

If the origin output already fails verification, investigate generation or signing before the gateway. If only the public path fails, narrow the first changed boundary and inspect its transformation settings. Keep a fixture that reproduces the issue without private prompts. Acceptance requires successful verification for the intended content and predictable rejection when covered material changes. It does not require all transport bytes to match: chunking or multiplexed framing can differ while the signed representation remains valid. Preserve the exact integrity contract rather than comparing unrelated network encodings.

## Primary references

[HTTP Caching](https://www.rfc-editor.org/rfc/rfc9111.html). Defines no-transform and intermediary transformation constraints.

[Digest Fields](https://www.rfc-editor.org/rfc/rfc9530.html). Distinguishes content and representation digest scope.

[HTTP Message Signatures](https://www.rfc-editor.org/rfc/rfc9421.html). Defines covered message components and signature verification across intermediaries.

Related reading: [HTTP response integrity: Content-Length, chunked transfer and truncation](/journal/provider-http-message-framing-integrity/); [Golden inference API fixtures: test the contract rather than prose](/journal/provider-golden-contract-fixtures/).
