Cron HTTP report
Template: cron-http-report ยท category: offchain ยท risk: monitor_only
A cron workflow POSTs an HMAC-signed JSON report to an HTTP endpoint on a
schedule. Pure off-chain: no networks and no signer, so neither embedded
engine boots. Runnable sibling:
examples/ops-monitor.
When to use it
- heartbeats into a status page, sink, or internal dashboard
- scheduled webhooks toward systems that verify an HMAC signature
- the smallest possible rflow project to learn the journal/run model on
Generate it
rflow new --template cron-http-report
# or into an existing project:
rflow add workflow cron-http-reportInputs
| key | type | default |
|---|---|---|
project_name | string | cron-http-report |
report_cron | cron | */5 * * * * |
report_url | string | http://localhost:9099/report |
report_name | string | heartbeat |
hmac_env | env_var | REPORT_HMAC_SECRET |
Required env vars
DATABASE_URL and the HMAC secret env var (default REPORT_HMAC_SECRET) โ
listed in the generated .env.example. The secret signs every report body
(HMAC-SHA256) so the receiver can verify authenticity.
Run it locally
docker compose up -d
rflow validate
rflow startCommon modifications
- add an on-chain
read:step before the report (seeexamples/ops-monitor) - point
report_urlat a real sink and rotate the HMAC secret - add
notify:on top for human-visible heartbeats