jdecool/scaleway-runtimepublic Fork
⑂ 79de57a
Commits
⬇ Clone ▾
git clone https://git.rickub.com/jdecool/scaleway-runtime.git
git clone ssh://git@rickub.com/jdecool/scaleway-runtime.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

docs(probe): check whether a CRON marker exists that HTTP clients cannot forgeUnverified

Jérémy DECOOL committed 2026-11-13T23:04:10+01:00 Browse files
79de57a parent: 4276070
modified probe/README.md +9 -0
@@ -71,6 +71,14 @@ sleep 330; curl -sS "$PROBE_URL/?mode=history" > 09-history.ndjson
7171
7272 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.
7373
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+
7482 ## Report back
7583
7684 - All files of `probe-results/` (except `random.bin` and `body-*.txt`) and the exported logs.
@@ -82,6 +90,7 @@ The answers the files settle:
8290 | --- | --- |
8391 | HTTP Event shape (keys, path encoding, repeated query keys, header name case) | `01-facts.json` `event` |
8492 | 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` |
8594 | Context type and content | `01-facts.json` `contextType`, `context` |
8695 | Warm Process reuse | `02-warm.txt` |
8796 | X-Forwarded-* spoofing | `03-forwarded.json` `event.headers` |
@@ -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 back82 ## 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` |