Files
Radosław SmolińskiandClaude Fable 5.2 fef2c51bae Mail relay: contract 1.7.0 — X-Intecion-Site on every request with a token, host-mismatch
contracts/mail-relay refreshed from IWDL 6cd99f7 (64 files). A token the service knows as another
site's is forgotten without revoking and the site enrols as itself; a hand-issued one is refused.
The fake requires the header and answers host-mismatch.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-25 22:13:58 +01:00

49 lines
1.0 KiB
JSON

{
"id": "send-backend-failed",
"title": "The back end fails; the client may retry with the same key",
"given": {
"site": "active",
"backend": "failure"
},
"request": {
"method": "POST",
"path": "/v1/send",
"headers": {
"authorization": "Bearer {{token}}",
"idempotency-key": "{{idempotencyKey}}",
"content-type": "application/json",
"x-intecion-site": "{{host}}"
},
"schema": "SendRequest",
"body": {
"product": "iapl",
"productVersion": "1.17.0",
"kind": "form-notification",
"to": [
"{{recipient}}"
],
"replyTo": "[email protected]",
"senderName": "Kancelaria Example",
"subject": "New enquiry",
"text": "Hello."
}
},
"response": {
"status": 502,
"schema": "Error",
"body": {
"ok": false,
"code": "backend-failed",
"retryable": true
}
},
"then": {
"mails": 0
},
"client": {
"retry": true,
"reEnrol": false,
"status": "relay-unreachable"
}
}