Version: v1
Last updated: 2026-01-21
Overview
Applies only whensigned_response = true for the store
AllScale supports optional response signing to allow clients to verify:
- Response authenticity
- Payload integrity
- Request–response binding
- Protection against replayed or substituted responses
When Response Signing Is Enabled
When enabled, every API response includes additional headers that allow the client to verify the response cryptographically.Response Headers
Response Canonical String
Whensigned_response = true, the response signature is computed using:
\n).
Field Definitions
⚠️ Important: Hashes must be calculated using the exact raw request / response body bytes.
Response Signature Algorithm
AlgorithmResponse Example
Response Headers
Response Body
Client Verification Steps
- Extract headers:
- X-Response-Timestamp
- X-Response-Nonce
- X-Response-Signature
- X-Request-Nonce
- Compute:
- REQUEST_BODY_SHA256
- RESPONSE_BODY_SHA256
- Rebuild canonical string:
- Compute:
- Compare:
- Validate:
- Timestamp within ±5 minutes
- Response nonce not reused
Postman Response Verification Script
Place this in Postman → Tests tabReplay Protection
Responses are protected using:- Timestamp validation (±5 minutes)
- Unique response nonce
- Request–response binding via request nonce
- Optional nonce replay cache on client side
Error Handling
Even error responses are signed. Example:Important Notes
✔ When Response Signing Is Enabled
- Client must verify signature
- Client must validate timestamp
- Client should cache nonces
- Client must reject mismatched responses
✔ When Response Signing Is Disabled
- No
X-Response-*headers are returned - Client should skip verification
- Suitable for:
- Internal testing
- Low-risk integrations
- Legacy compatibility
Best Practices
- Always verify response signature before processing data
- Cache response nonces for at least 5 minutes
- Reject responses with invalid timestamps
- Use raw response body for hashing
- Log request_id for debugging
- Never disable verification in production
End of document.