| @@ -71,6 +71,14 @@ sleep 330; curl -sS "$PROBE_URL/?mode=history" > 09-history.ndjson |
| 71 | | 71 | |
| 72 | 10. In the Scaleway console, open the function's logs (Cockpit) and export the lines starting with `probe:` for the last hour, including the CRON ones, plus the `probe: written to stdout` and exception lines. | 72 | 10. In the Scaleway console, open the function's logs (Cockpit) and export the lines starting with `probe:` for the last hour, including the CRON ones, plus the `probe: written to stdout` and exception lines. |
| 73 | | 73 | |
| | 74 | +11. Compare a CRON Event (step 9 or 10) with the HTTP one of `01-facts.json`, `event` and `context` alike, and list what only the CRON one has or lacks: headers (a trigger name or id, a token, `User-Agent`, `X-Forwarded-For`), method, path, context fields. |
| | 75 | + Then send each such header from a plain HTTP call, and check whether it reaches the Event as sent, is overwritten, or is removed: only a marker the platform sets itself can tell CRON Invocations from HTTP ones. |
| | 76 | + |
| | 77 | +```sh |
| | 78 | +# Replace the example header with the CRON-only headers found, one -H per header. |
| | 79 | +curl -sS "$PROBE_URL/" -H 'X-Example-Cron-Header: forged' > 11-forged-cron-marker.json |
| | 80 | +``` |
| | 81 | + |
| 74 | ## Report back | 82 | ## Report back |
| 75 | | 83 | |
| 76 | - All files of `probe-results/` (except `random.bin` and `body-*.txt`) and the exported logs. | 84 | - All files of `probe-results/` (except `random.bin` and `body-*.txt`) and the exported logs. |
| @@ -82,6 +90,7 @@ The answers the files settle: |
| 82 | | --- | --- | | 90 | | --- | --- | |
| 83 | | HTTP Event shape (keys, path encoding, repeated query keys, header name case) | `01-facts.json` `event` | | 91 | | HTTP Event shape (keys, path encoding, repeated query keys, header name case) | `01-facts.json` `event` | |
| 84 | | CRON Event shape (method, path, body, headers) | `09-history.ndjson`, logs | | 92 | | CRON Event shape (method, path, body, headers) | `09-history.ndjson`, logs | |
| | 93 | +| CRON marker: what only CRON Events carry, and whether HTTP clients can forge it ([ADR 0005](../docs/adr/0005-authenticate-command-invocations-with-a-shared-secret.md)) | `09-history.ndjson`, logs, `11-forged-cron-marker.json` | |
| 85 | | Context type and content | `01-facts.json` `contextType`, `context` | | 94 | | Context type and content | `01-facts.json` `contextType`, `context` | |
| 86 | | Warm Process reuse | `02-warm.txt` | | 95 | | Warm Process reuse | `02-warm.txt` | |
| 87 | | X-Forwarded-* spoofing | `03-forwarded.json` `event.headers` | | 96 | | X-Forwarded-* spoofing | `03-forwarded.json` `event.headers` | |