Skip to content

Releases

SendDock v0.8.3 — Production hardening

Choose a tag to compare

@JuansesDev JuansesDev released this 28 Sep 05:25
a701adc

SendDock v0.8.3 — Production hardening

Three security fixes, the defects behind a broken cloud login, and the documentation corrections that came out of checking every guide against the code.

Security

  • Headers could be injected through the subject. Subscriber-supplied text reaches the subject, and a line break in it added headers of the attacker's choosing — a Bcc, for example — to the message SendDock sent. Carriage returns and line feeds are now stripped from every value that lands in a header: subject, sender name, recipient and unsubscribe URL.
  • Certificates are verified on outgoing SMTP, for implicit TLS and STARTTLS. A relay serving a self-signed or expired certificate keeps working per project under Project → SMTP → Allow insecure TLS, and the failure message names that setting.
  • A webhook's signing secret can no longer be read back. It came out on every list, fetch and pause, and reading webhooks needs no capability — so a read-only viewer could sign deliveries of its own. It is returned by the creation response only.
  • The source-build compose no longer starts on a published Postgres password. It refuses to come up and names the missing variable.

Fixed

  • A restart no longer re-sends a broadcast another instance is delivering. Startup recovery reset every job in sending regardless of who owned it, so starting or rolling one instance re-queued work in flight and those recipients received the same email twice. A claimed job now carries the worker's id and a lease, and recovery only reclaims expired leases.
  • Registration is transactional. A failure on the second write used to leave an account nobody could see or sign into, holding an email that could never be registered again — the same shape sat in workspace creation and in adding a member.
  • A log row no longer claims the send succeeded before it did, which the stats endpoint counted. Rows start as pending and settle to sent once the relay accepts.
  • Date rules no longer break a segment. greater than and less than compiled a date field to a numeric cast, so a rule that saved without complaint failed when it ran. A value that cannot be ordered is refused while saving.
  • Demoting the last workspace owner no longer leaves the workspace ownerless, and the member role — which the API accepted but the database never allowed — is gone.
  • Email confirmation signs in the right device, on the Pro side: the link approves the pending login instead of starting a session on whichever device opened it.
  • Two editor fixes that missed the 0.8.2 image are in this one.

Docs

The API reference and the guides were checked against the handlers, the queries and the schema. Invented status codes, fields, lifetimes and defaults the code does not have were corrected, and three older changelog entries that stated behaviour this release proves false now point at 0.8.3 instead of reading as current.

Verified against the published image

A fresh instance came up on an empty database with every migration applied, then sent a real broadcast with a CRLF injection attempt in the subject: the break was stripped, no header was added, and each recipient received exactly one message marked sent.

SendDock v0.8.2

Choose a tag to compare

@JuansesDev JuansesDev released this 02 Sep 20:40

SendDock v0.8.2 — Audience & white-label

Multiple newsletters per project with per-newsletter unsubscribe, branded unsubscribe pages, and a unified mint/emerald design system.

Newsletters (Core)

A project can now hold several named publications — one subscriber base, per-newsletter memberships. Broadcasts and campaigns can target a newsletter (newsletter_id, mutually exclusive with segment_id), and those emails carry a per-newsletter unsubscribe link (and List-Unsubscribe one-click). Links for a deleted newsletter degrade to project-wide. New subscriber.newsletter_unsubscribed webhook event.

Branded unsubscribe pages (Core)

Templates now have a type (email or page). Assign a page template under Project → Settings → Unsubscribe page to render the public unsubscribe confirmation/done pages in your design, with {{project_name}}, {{email}}, {{newsletter_name}} and {{confirm_button}} placeholders (sanitized).

Unified mint/emerald design system

One shared control language for status pills (AppStatusPill), filter chips (AppFilterChip), selects (AppSelect) and buttons (AppButton variants), plus a single size for page-level actions. Consistent chrome throughout.

Robustness & consistency fixes

Deleted-newsletter unsubscribe on branded pages, newsletter-scoped CSV export and suppressed logs, campaign ownership validation, canvas editing reliability, device-aware email confirmation.

SDK

@senddock/sdk 0.2.0 aligns with this release: newsletter_id on broadcasts and the subscriber.newsletter_unsubscribed webhook event type.

v0.8.1 — Production hardening

Choose a tag to compare

@JuansesDev JuansesDev released this 21 Aug 16:46
db607b8

Production hardening. Making SendDock honest to run at scale, keep, and observe.

Added

  • Safe multi-replica operation. The IMAP bounce poller is now leader-elected with a Postgres session advisory lock, so only one replica polls each mailbox at a time. The scheduled-campaign worker, broadcast queue and webhook delivery were already coordinated (atomic claim / FOR UPDATE SKIP LOCKED) — the poller was the last unguarded loop. Running more than one instance no longer double-processes bounces. The container entrypoint also retries migrations instead of dying when two replicas race goose up against the same database.
  • Observability for the send pipeline. Logs are now structured JSON (slog), and a Prometheus GET /metrics endpoint exposes send attempts/sends/failures, SMTP errors by 4xx/5xx class, broadcast queue depth, webhook delivery outcomes, bounce/complaint ingest and poller tick duration. /metrics is unauthenticated by convention — scope it at the network layer. See Monitoring.

Docs

  • Backups & Recovery — a dedicated, discoverable page (previously buried inside Updating): scheduled pg_dump, off-site encryption, a clean-instance restore walkthrough, a rehearsed-restore recipe, and why a pre-update dump is the real rollback path.
  • Monitoring — the metric catalog, a Prometheus scrape example and the JSON log format.

v0.8.0 — free analytics, deliverability & reports (Pro), rich-text send

Choose a tag to compare

@JuansesDev JuansesDev released this 29 Jul 04:37
9e5c11d

Analytics graduates to free Core, self-host configuration moves into the dashboard, and the paid tier is redrawn around deliverability and reporting.

Added

  • Analytics, rebuilt and free (Core). The old single-endpoint funnel became a tabbed, charted dashboard — Overview, Campaigns, Audience, Engagement — with a date-range picker, per-campaign breakdowns (every email log is now tagged with its broadcast_id), a subscriber-growth view and a weekday × hour click heatmap. Async bounces are now recorded on the log, not only the suppression list.
  • Instance settings in the dashboard (self-host). The public URL, a configurable session inactivity timeout (5–1440 min) and the Pro license key are set from Instance in the dashboard, stored in the database, applied live with no restart.
  • Deliverability (Pro). A new Analytics tab: domain health (SPF/DKIM/DMARC), a per-provider breakdown with acceptance/bounce/open/click rates, and a spam-complaint rate ingested from an FBL/complaint webhook (POST /webhooks/complaints/{projectId}).
  • Report builder (Pro). A dynamic builder over subscribers and email events — dimensions/measures, 1–2 dimension pivots, segment filters, saved reports and CSV export, backed by an allowlist-only query engine.
  • Rich-text send. The Send Email composer gained a Text/Rich toggle per template variable, backed by a WYSIWYG editor; rich values are sanitized server-side. On the API, mark fields via html_fields.
  • Delete a workspace from the UI. Owner-only, from the workspace manage screen; refused while the workspace still owns projects.

Changed

  • Analytics moved Pro → Core. The descriptive analytics suite is now free and ungated. The paid tier is now Deliverability + Reports + Audit log + Team.
  • DEPLOYMENT_MODE → CLOUD. The hosted flag is now a boolean CLOUD; the old string is still read until v0.9.

Deprecated

  • PUBLIC_URL and SENDDOCK_LICENSE_KEY environment variables (self-host). Both now live in the dashboard; a value left in the environment is imported once on boot and support for reading it is removed in v0.9.

Full changelog: https://github.com/arkhe-systems/senddock/blob/main/CHANGELOG.md

v0.7.0 — Custom fields, tags & segments; webhooks free

Choose a tag to compare

@JuansesDev JuansesDev released this 06 Jul 04:13

The Marketing-ready milestone — SendDock stops being send-to-everyone and becomes a real targeting tool — plus webhooks graduating to the free Core.

Added

  • Custom fields — typed subscriber attributes (string/number/date/boolean/enum) with per-type inputs, template {{custom.*}} merge tags and CSV mapping. (#72)
  • Tags + segments — free-form tags and saved filters (match-all/any over status, tags, custom.*) with a live match count; broadcasts can target a segment_id. (#40)
  • Segment filter on Pro Analytics — scope every metric to a segment's members.

Changed

  • Webhooks are now free (Core) — management UI + REST API moved out of the Pro tier. Paid tier is now Analytics + Audit log + Team.

Security

  • Authentication hardening — per-account login/2FA throttling, session revocation on password change, API-key capability scoping, safer default role.

Drop-in upgrade. Two forward-only migrations (custom field definitions; tags column + segments table).

v0.6.8 — template library + Arch installer + UI fixes

Choose a tag to compare

@JuansesDev JuansesDev released this 22 Jun 04:41

Two new features and a chunky bag of UI fixes. Headline is the community starter template library: every SendDock instance — Cloud and self-hosted — now ships a "★ Browse library" modal on the Templates page that pulls templates from a separate community-maintained repo, clones one into your project on click, and opens it in the editor. The library is open to PRs (the only SendDock repo that accepts them by design). Second headline is Arch Linux support in the one-line installer — curl senddock.dev/install.sh | sudo bash now works on Arch and its derivatives (Manjaro, EndeavourOS, CachyOS, Garuda) the same way it works on Ubuntu. Plus a fix for the long-standing "buttons stop responding after login" bug that turned out to be password-manager autofill extensions crashing on Vue Teleport. Drop-in upgrade — no migrations.

Added

  • Community template library (#73). New "★ Browse library" button on the Templates page opens a modal with a categorized grid of starter templates (welcome flows, monthly digests, single-story newsletters, product launches, changelogs, weekly link roundups, password resets, email verifications, transactional receipts). Click a template, get a clone in your project, ready to edit. Library content lives in the public Arkhe-Systems/senddock-templates repo — community PRs welcome, MIT-licensed. New backend service caches the manifest in Redis for 1 hour; per-template HTML is fetched on demand. Override the source with TEMPLATE_LIBRARY_URL to point at a private fork or curated internal gallery.
  • Arch Linux family support in the one-line installer (#81). scripts/setup.sh now branches on /etc/os-release and runs the pacman-based Docker install path on Arch, Manjaro, EndeavourOS, CachyOS, Garuda, or anything with ID_LIKE=arch. Ubuntu path unchanged. The die message for unsupported distros now lists both supported families and links to the manual Compose path. Tracked under the broader multi-distro umbrella (#79); Debian, Fedora, RHEL and openSUSE remain TODO. macOS support tracked separately under #82.

Changed

  • README hero replaced with the branded title card image. The # SendDock h1 is gone; the visual wordmark in the hero card serves as the title now. Repo-card / search-results display falls back to the repo name, no SEO regression. New screenshot set (docs/public/screenshots/) added for hero + projects dashboard + template editor + campaigns list + analytics dashboard.

Fixed

  • "Buttons stop responding after login" — password-manager autofill overlay crash (#80). Bitwarden / 1Password / LastPass inject overlay nodes adjacent to input fields. When a modal opened via <Teleport to="body"> moved those inputs to a new DOM position, the extension's stored reference became orphaned and the next overlay update threw insertBefore on Node — corrupting the extension's internal DOM tracking and intercepting subsequent click events on the page until the next full reload. Fixed by dropping <Teleport> from AppModal (the modal still uses fixed inset-0 z-50 so it overlays the viewport the same way) and adding defensive opt-out attributes on AppInput for all four major password managers. Credential fields on login/register opt back in via explicit autocomplete values so they still autofill normally.
  • "Send Email" button felt dead while it actually worked. openSendModal was fetching templates async before opening the modal, with no visual feedback on the button. Now the button shows "Loading…" and is disabled during the fetch; an early-return guard prevents stacked clicks from queuing multiple in-flight requests.
  • fetch() calls never timed out, leaving components stuck in loading state forever. A hung backend (SMTP test against an unreachable host, slow tunnel, dead connection) would leave the calling component spinning indefinitely. Added a 30s default timeout via AbortController + signal in the API client, overridable per call via the timeoutMs option. This is the underlying cause of several "buttons stop working" reports.
  • AppModal could leave body.overflow: hidden after unmount. If a modal unmounted while still shown (e.g. mid-navigation), the body could be left scroll-locked until the next reload. onUnmounted now resets the style as a safety net.
  • Truncated template names in the library grid had no way to read the full text. Native title attribute on the card header — hover anywhere on the truncated name shows the full template name in the browser's native tooltip.

Upgrade

Drop-in. Watchtower / dashboard "Update now" picks this up automatically. Manual: docker compose pull && docker compose up -d from your install dir.

Full Changelog: v0.6.7...v0.6.8

v0.6.7 — self-hosting UX overhaul + bug fixes

Choose a tag to compare

@JuansesDev JuansesDev released this 18 Jun 21:48

[0.6.7] — 2026-06-18

Self-hosting UX release. Headline is a brand-new one-line installer (curl senddock.dev/install.sh | sudo bash) that brings up Docker, the compose stack, and one-click updates via Watchtower in under two minutes. Plus a real SMTP-troubleshooting section in the docs, a Cloudflare Tunnel guide as a first-class HTTPS option, and fixes for three bugs that bit users during install: a template editor that escaped < while typing, an installer that silently defaulted PUBLIC_URL to localhost, and an abandoned Watchtower image that crash-looped on Docker 26+. Drop-in upgrade — no migrations.

Added

  • One-line installer for Ubuntu (scripts/setup.sh, also served at https://senddock.dev/install.sh). Installs Docker from the official repo if missing, downloads docker-compose.image.yml, generates .env with random secrets (mode 600), prompts for PUBLIC_URL, bundles Watchtower in HTTP-API-only mode (no auto-polling, label-scoped to SendDock only) so the dashboard's "Update now" button works out of the box, brings up the stack, and runs a 60-second health check that warns if any service isn't running. The script is attached as a release asset on every published release.
  • Cloudflare Tunnel section in self-hosting docs. First-class reverse-proxy path for users without a public IP, port forwarding, or Let's Encrypt setup. Documents the two non-obvious gotchas that took hours to debug the first time: use Networking → Tunnels (NOT Zero Trust → Connectors — that's a different feature), and include the http:// scheme explicitly in the Service URL (without it Cloudflare defaults to HTTPS and the tunnel returns 502 because SendDock listens on plain HTTP internally).
  • SMTP troubleshooting guide (/guide/smtp). New "Diagnosing port issues" section with a /dev/tcp probe loop that tells you exactly which ports your network actually allows. New "Working around ISP blocks" with five real fixes: try port 25 explicitly, use a provider that supports 2525 (Brevo, Mailgun, Postmark, SendGrid), run on a cloud server, run a cloud SMTP relay, or use Mailpit for local dev. New "Self-hosted mail server" section with config snippets for adding a 2525 listener to Postal, Postfix and Mailcow, plus the UFW commands to open the new port server-side.

Changed

  • docker-compose.image.yml passes SENDDOCK_WATCHTOWER_URL and SENDDOCK_WATCHTOWER_TOKEN through (empty defaults). Manual installs can now wire Watchtower via the override block in the docs without modifying the base compose file. Backwards-compatible for installs that don't set those vars.
  • Installation docs restructured into four options: (1) one-line installer (recommended for Ubuntu), (2) manual Docker Compose (any Linux), (3) Dokploy (honest about PR #821 to Dokploy templates still being open for review), (4) build from source. Cross-doc references in updating.md, configuration.md and environment.md re-numbered to match.
  • Update modal copy is platform-agnostic when Watchtower isn't configured. Previously the modal told everyone to run docker compose pull && up -d from the host — wrong advice for Dokploy / Coolify / Portainer users who don't manage the stack at that level. New layout shows two equally visible cards: "Rebuild from your hosting panel" (primary, for platform users) and "Direct Docker control" with the docker compose command (secondary, for bare-metal and install.sh users), plus a tip linking to the Watchtower setup for one-click updates from the dashboard.

Fixed

  • Template editor escaped < to &lt; while typing in the Code tab. The Visual tab's GrapesJS instance stayed mounted via v-show even when hidden. Its watcher fired on every CodeMirror keystroke and called setComponents() with the in-progress string. For incomplete HTML like a lone <, GrapesJS interpreted it as text content and re-emitted &lt; back into the shared v-model, feeding the bug character by character. Switched the Visual wrapper to v-if so GrapesJS is only mounted when the user is actually on that tab.
  • scripts/setup.sh silently defaulted PUBLIC_URL to localhost. Hitting Enter at an empty prompt previously triggered a warning that was easy to miss in the install output and produced an instance with newsletters and unsubscribe links disabled — which the user discovered hours later in the dashboard with no breadcrumb to the cause. Worse, re-running the script on an existing .env skipped the prompt entirely, so there was no way to fix it through the installer. New behaviour: empty prompt loops until non-empty input or Ctrl+C; localhost/127.0.0.1 requires explicit confirmation (or SENDDOCK_ALLOW_LOCALHOST=yes for non-interactive); bare domains auto-prefix https://; SENDDOCK_PUBLIC_URL env var always wins over existing .env so a broken install can be patched by re-running with the correct URL — secrets are preserved.
  • Watchtower image crashed in a restart loop on Docker 26+. containrrr/watchtower:latest — the canonical image when setup.sh first shipped — has been abandoned since 2023 and bundles a Docker client too old (API 1.25) for modern Docker daemons (which require API 1.40+). Manifested as client version 1.25 is too old. Minimum supported API version is 1.40 in the logs, silent restart loop in docker compose ps, and a non-working "Update now" button. Switched both setup.sh and the manual recipe in updating.md to nickfedor/watchtower:latest, the actively-maintained community fork. Inline comment explains the abandonment so future readers know why.
  • scripts/setup.sh no longer reports "Docker already installed" when the daemon is dead. Previous check was command -v docker && docker compose version — both pass on hosts where the CLI is present but the daemon isn't running (the state left by an incomplete purge, snap-installed Docker, or some pre-bundled Ubuntu images). New check adds docker info and attempts systemctl enable --now docker before falling back to a clean reinstall.
  • docs/guide/environment.md no longer tells self-hosters to copy .env.example from backend/. That instruction applies to source builds only; self-hosters now get pointed at the installation guide and the .env.production.example reference.

Removed

  • OPEN_REGISTRATION env var. It was a design footgun: self-hosted instances should never accept anonymous signups — that's the whole point of self-hosting your own list. Registration goes through the first-boot Setup screen and the admin "Create user" action exclusively. Cloud signup is in the separate cloud package and unaffected.

Cloud

(carryover from the v0.6.6 work that never published as its own release)

  • Plan-aware Pro paywall — shows the upgrade flow on cloud, the self-host license copy on self-host. No more confusing copy where cloud users see "enter your license key".
  • Hide the self-host "Update available" badge on the cloud build (the badge is meaningless when the platform manages the version).
  • Team plan paywall now selects the right checkout link based on the user's current plan.

v0.6.5.1 — 2FA TOTP + multi-tenancy security hardening

Choose a tag to compare

@JuansesDev JuansesDev released this 12 Jun 23:43

Security and authentication patch on top of v0.6.5. Drop-in image bump — the 2FA migration applies automatically on startup.

Added

  • Two-factor authentication (TOTP) with recovery codes (#65). Enable 2FA from the Account page: scan the QR with any authenticator app (Google Authenticator, 1Password, Authy, …), confirm a 6-digit code, and save the one-time recovery codes shown once at setup. Login becomes a two-step flow — password first, then the 6-digit code (or a recovery code if you lose the device), exchanged through a short-lived intermediate token. Recovery codes are single-use and bcrypt-hashed at rest, and disabling 2FA requires a valid code. Works the same self-hosted or on cloud.

Security

  • Multi-tenancy hardening across project-scoped endpoints. Authorization on the audit-log, webhooks and analytics sections now verifies workspace membership rather than project ownership alone, webhook delivery listings are constrained to the owning project, and the email service gained a defense-in-depth context guard so a project ID can only be acted on inside a request that was authorized for it. No action is required on upgrade.

Image: ghcr.io/arkhe-systems/senddock:0.6.5.1 (also :latest)

v0.6.5 — profile sidebar, Account/Billing, one-click updates, log drawer

Choose a tag to compare

@JuansesDev JuansesDev released this 29 May 01:10

Quality-of-life release on top of v0.6.4.1. Adds the persistent profile sidebar, dedicated Account and Billing pages, one-click updates via Watchtower, and a side-drawer for email log inspection. Also fixes a broadcast restart-recovery edge case from 0.6.4 that left in-flight broadcasts mislabeled as interrupted even though sending actually resumed.

One migration. No breaking changes.

Added

  • Persistent profile sidebar across every authenticated screen. The dashboard now uses the same flex+sidebar layout as the project view, so the page doesn't look empty when you have one or two projects. The sidebar is sticky to the viewport (no longer scrolls away with the main content) and embeds a profile panel at the bottom with avatar, name, email, plan badge, and links to Account / Billing / Logout.
  • Account page (/account). Read-only profile (name, email, plan, member since) plus a change-password form. Validates current password server-side and applies the same complexity rules as registration (≥8 chars, one uppercase, one digit, one special).
  • Billing page (/billing). Shows the current tier (Free / Pro / Team) with a colored badge, plus the license expires_at and last_check timestamps when a license is active. Free users see Pro and Team paywall cards with the existing checkout links.
  • One-click updates from the dashboard via Watchtower. Set SENDDOCK_WATCHTOWER_URL (and optional SENDDOCK_WATCHTOWER_TOKEN) and the update modal grows an "Update now" button that POSTs to Watchtower's /v1/update. The dashboard then polls /api/v1/version every 2 seconds, tolerates the network errors that happen while the container restarts, and shows a success toast once the new version is live. When Watchtower isn't configured (the default), the modal still shows the manual docker compose pull && up -d command as before. See the new "One-click updates" section in the updating docs for the full compose snippet and security notes.
  • Email log detail drawer (#44). Click any row in the Logs page and a right-side drawer slides in with the full lifecycle: a vertical timeline (sent → opened → clicked → bounced / failed / suppressed), per-click event list with URL + timestamp + user agent, error or suppression reason, and reference IDs. The list view also gained an Engagement column with compact O / C badges so you can spot opens and clicks without opening each row.
  • pg_trgm gin indexes on email_logs.to_email and email_logs.subject (#44). Substring ILIKE '%x%' searches now use a real index instead of sequential scan, which keeps the Logs search responsive past a few thousand rows.
  • Custom dark-themed scrollbars across the whole app (subtle gray thumb, transparent track, lighter on hover, both WebKit and Firefox).

Changed

  • AppModal now uses Teleport to body. Any modal triggered from inside a sidebar (or any element with a transform) now correctly overlays the entire viewport instead of getting trapped inside its parent's bounding box. Fixes the update dialog rendering inside the sidebar.
  • GET /api/v1/me now returns email, name, plan and created_at in addition to user_id. Needed by the new profile panel; no breaking change since the response was previously {user_id}.
  • Analytics, Webhooks and Audit log sections check the user's license tier before fetching. Free users see the paywall immediately instead of waiting for a 402 / 404 round-trip and falling through to a generic "Couldn't load" error.

Fixed

  • Broadcasts marked interrupted on restart even though they actually resumed sending (#41 follow-up). A backend restart in the middle of a broadcast flipped its status to 'interrupted' even though the per-recipient jobs were still being drained by the worker pool. The UI then told the user the broadcast had failed and the remaining recipients didn't get the email — which was wrong. The status now stays 'sending' until every job has settled, then transitions to 'completed'. Pro Analytics "broadcasts in flight" also recovers correctly across restarts now (it filters on status='sending' and was losing visibility because of this).

API

  • GET /api/v1/me — now returns email, name, plan, created_at alongside user_id.
  • POST /api/v1/me/password — change the authenticated user's password. Body: {current_password, new_password}.
  • GET /api/v1/update/auto-status — returns Watchtower availability: {configured, healthy, url, last_check, last_error}.
  • POST /api/v1/update/trigger — fires the Watchtower /v1/update call and returns 202. Returns 400 if Watchtower isn't configured, 502 if it's unreachable.
  • GET /api/v1/projects/{id}/logs/{logId} — returns {log, clicks} for the email log detail drawer.

Environment

  • New optional SENDDOCK_WATCHTOWER_URL and SENDDOCK_WATCHTOWER_TOKEN — enable the dashboard's one-click update flow. When unset, the update modal falls back to the manual command. Docs.

Migrations

  • 20260528193111_add_email_logs_search_index.sql — enables pg_trgm if missing and adds gin indexes on email_logs.to_email and email_logs.subject. Idempotent, no data changes. Runs automatically on container start.

How to upgrade

docker pull ghcr.io/arkhe-systems/senddock:latest
# or pin: ghcr.io/arkhe-systems/senddock:0.6.5
docker compose up -d

One migration runs automatically on start. Postgres and Redis volumes are preserved.

Closes #44 and the open follow-up from #41.

v0.6.4.1 — restart-loop hotfix

Choose a tag to compare

@JuansesDev JuansesDev released this 08 May 20:51

Hotfix on top of v0.6.4. No new features, no DB migrations — drop-in replacement for any 0.6.x deployment showing the "container restarts every ~5 hours" pattern.

Why upgrade

If you're running 0.6.3 or 0.6.4, your container is silently rate-limiting its own healthcheck. About 5 hours after every boot, wget /health from the Dockerfile healthcheck starts getting 429 Too Many Requests, swarm/Compose flags the container unhealthy, and it gets restarted. The new container starts a fresh 5-hour timer, and the loop continues forever.

This hotfix breaks the loop. 0.6.3 and 0.6.4 are now marked deprecated in the changelog.

Fixed

  • Rate-limit counter never expired. Redis.Increment reset the key's TTL on every call (INCR followed unconditionally by EXPIRE). The Dockerfile healthcheck (wget /health every 30s) kept the rl:::1 counter alive forever instead of expiring per-minute, so the counter accumulated cumulatively. After ~5 hours (600 hits ÷ 2/min), it crossed the 600 req/min threshold and /health started returning 429. Now uses an atomic Lua script that only sets the TTL when the key is created.
  • /health was wrapped by the rate limiter, CORS, and body-size middlewares. Healthchecks must never be subject to client-facing throttles. Now mounted on a separate root mux that bypasses all middleware.

Added

  • RATE_LIMIT_PER_MINUTE env var (default 600). Lower it on small deployments or raise it for high-traffic apps without rebuilding the image.

How to upgrade

docker pull ghcr.io/arkhe-systems/senddock:latest
# or pin: ghcr.io/arkhe-systems/senddock:0.6.4.1

No migration to run. No env vars required. Just redeploy.