Skip to content

Releases

HookForms 0.2.1

Choose a tag to compare

@h1n054ur h1n054ur released this 17 Nov 11:39
v0.2.1

Security

  • An inbox with a Turnstile secret now needs a valid cf-turnstile-response token on every request. Before, a body that parsed as JSON but was not an object with fields (an array, a string, a number, true, an empty object) or an empty body skipped the Turnstile check, and the submission was stored and its notifications sent. Such requests now get 400 "Missing Turnstile verification token" and nothing is stored. Thanks to Andrei Lavrenov for the report.

Added

  • Notification emails for a submission set Reply-To to the submitter when the submission has a valid email field (with the name field as the display name), so replying in a mail client answers the person who filled in the form. This covers the legacy notify_email field and email channels on every provider (Gmail, Resend, SendGrid and SMTP).

Image: ghcr.io/bts-io/hookforms:0.2.1 (also latest).

HookForms 0.2.0

Choose a tag to compare

@h1n054ur h1n054ur released this 27 Oct 18:14
v0.2.0

HookForms is rewritten in Rust. It now runs as one container with a SQLite database, in place of the API, worker, Postgres and Redis containers of 0.1. The HTTP API stays the same.

Changed

  • One binary and one container. The image is about 22.7 MB (0.1: 1.39 GB of images for the API, Postgres and Redis) and the service uses about 1.7 MiB of memory at idle (0.1: about 188 MiB across its four containers).
  • Data lives in a SQLite file (/data/hookforms.db in the hookforms-data volume). The schema is created and migrated on start, so there is no separate migration step.
  • The nightly event cleanup (03:00 UTC, EVENT_RETENTION_DAYS) runs inside the service. The worker container is gone.
  • Rate limit and auth lockout counters are kept in memory and reset on restart. With no Redis, the limiter no longer answers 503.
  • A ready-made image is published for linux/amd64 and linux/arm64 as ghcr.io/bts-io/hookforms, and docker-compose.yml uses it by default. build: . still builds it locally.
  • POSTGRES_PASSWORD, REDIS_PASSWORD, REDIS_URL and a Postgres DATABASE_URL from 0.1 are ignored with a log line, so an old .env works unchanged.

Added

  • hookforms import-postgres copies a 0.1 Postgres database into SQLite (inboxes, events, API keys, channels and email providers) and checks the row counts on both sides. Existing API keys keep working. The README has the upgrade steps.

Fixed

Cases where 0.1 answered 500 now get a proper answer:

  • A duplicate inbox slug returns 409.
  • A negative limit returns a 422 validation error.
  • A key or channel id that is not a UUID returns 404.
  • "is_active": null in a PATCH leaves the field unchanged.
  • Events with a JSON array or plain value as body can be listed and read.
  • Discord, Slack and Teams channels configured with url instead of webhook_url now send to that URL.

Other differences

  • /health reports the SQLite database instead of Postgres and Redis.
  • / and /health report version 0.2.0.
  • Outgoing requests use the user agent HookForms/0.2.0.

The Python version stays available at the git tag v0.1.0-python.

Install

docker pull ghcr.io/bts-io/hookforms:0.2.0

Upgrading from 0.1 (Python): follow the upgrade steps in the README. The last Python version stays available as v0.1.0-python.