chore(deps): update docker non-major #332

Merged
kompas-review merged 1 commit from renovate/docker-non-major into main 2026-11-09 13:49:37 +01:00
Collaborator

This PR contains the following updates:

Package Type Update Change
binwiederhier/ntfy (source) minor v2.11.0 → v2.37.2
python (source) final minor 3.10-slim → 3.15-slim
python (source) final minor 3.12-slim → 3.15-slim
rust (source) stage minor 1.85-bookworm → 1.99-bookworm

Release Notes

binwiederhier/ntfy

v2.37.2

Compare Source

Changelog

v2.37.1

Compare Source

This release fixes a database slowdown in v2.37.0 when using visitor-subscriber-rate-limiting with a user database: the subscriber activity of UnifiedPush topics was written far too often.

Bug fixes + maintenance:

  • With visitor-subscriber-rate-limiting and a user database, write a UnifiedPush topic's subscriber activity every one to two hours instead of every 5 minutes, spread over time, and not at all when a poll or reconnect only repeats the same subscriber; on ntfy.sh, v2.37.0's writes of ~45k topics every 5 minutes, all due in the same minute, slowed down the database (#​2151)

v2.37.0

Compare Source

This release makes UnifiedPush work across several servers: the subscriber who pays for a topic's pushes is shared through the database, and app servers are told with 410 Gone when a subscription has been abandoned for 4 days. It also adds Retry-After and the draft RateLimit headers to rate limit responses, and frees the memory of one-off visitors sooner.

Features:

  • With visitor-subscriber-rate-limiting, the subscriber of a UnifiedPush topic (who pays for its pushes) is kept in the user database and shared by all servers, so a push to any server is billed to the subscriber instead of answered with 507 (#​2136; see subscriber-based rate limiting)
  • Send a Retry-After header with HTTP 429 responses that are caused by a rate limit with a known wait, e.g. the request, e-mail or daily message limits (#​2142; see rate limiting)
  • Send the IETF draft RateLimit-Policy and RateLimit headers with publish responses (and with every 429 caused by a limit with a quota), for the request and daily message limits (#​2143; see rate limiting)
  • New metric ntfy_topics_unifiedpush_total: the UnifiedPush topics whose subscriber state a server keeps in memory (#​2136)

Behavior changes:

  • With visitor-subscriber-rate-limiting, a UnifiedPush push to a topic that has had no subscriber (subscribe, poll or open stream) for 4 days is answered with 410 (error code 41002) instead of 507, so app servers like Mastodon remove the expired subscription (#​664, #​2136); a Matrix push to such a topic gets its pushkey rejected (before: after 12 hours without a subscriber on the server that got the push)
  • With visitor-subscriber-rate-limiting, UnifiedPush messages are counted against the subscriber's account only while it has a tier, and against the subscriber's IP address otherwise (also after the account lost its tier or was deleted); a tier change applies to the next message (#​2136)
  • Ban feed: weights may be fractional (down to 0.001), auth failures (42909) now weigh 2 instead of 10, and a UnifiedPush push without a subscriber (50701) or to an abandoned topic (41002) weighs 0.05, so app servers pushing to many offline phones are not banned for it (#​2147)
  • The rate limit state of a visitor is forgotten about a minute after it has fully recovered (all buckets refilled) instead of after a day without use, which frees the memory of one-off visitors such as floods of new IPs. The visitors stat and the ntfy_visitors_total metric therefore count the visitors of roughly the last minute, not of the last day (#​2126)
  • Topics without subscribers are dropped from memory after 6 hours without use instead of 16; a publish to such a topic recreates it (and counts against visitor-topic-creation-limit-burst) (#​2136)

Bug fixes + maintenance:

  • With PostgreSQL and several servers, daily usage a server counted in the last seconds of a visitor's 24-hour period is no longer added to the next period (a double count); it is dropped instead (#​2136)
  • Cluster: a forwarded message for a topic without subscribers on the receiving node now counts as wasted (ntfy_cluster_messages_wasted_total) and no longer keeps that idle topic in memory (#​2140)

v2.36.0

Compare Source

This release keeps the daily limits across restarts and, with PostgreSQL, shares them between servers, so a visitor gets one daily allowance in total. Each visitor's day now starts at its own time instead of midnight UTC. It also adds an experimental local admin socket.

Features:

  • Daily limits (messages, e-mails, phone calls) are stored in the user database, so they survive restarts; with PostgreSQL, all servers share them. Each visitor's day starts at its own time instead of midnight UTC, and the account page and /v1/account (stats.reset_at) show when it resets (#​2131, see message limits)
  • Experimental local admin socket (experimental-listen-admin-unix, off by default) that serves the admin API without credentials to whoever can open it; the shipped systemd unit sets RuntimeDirectory=ntfy for it (see admin socket)
  • Export ntfy_db_up per PostgreSQL pool, and health-check the primary like the replicas (#​2133)

Upgrade notes:

  • Everyone's daily counts start over at the upgrade: the stats_* columns of the user table are zeroed and no longer used
  • Servers that share a PostgreSQL database must keep their clocks in sync (NTP)
  • Visitors without a tier have a daily e-mail limit again (24h / visitor-email-limit-replenish)
  • The whole server config is checked again when base-url or a message-size-limit above 4K is set, so an invalid config that used to start now fails at startup (#​1969, thanks to @​mikejgray for the contribution)

Bug fixes + maintenance:

  • Web app: Messages replayed by a poll or a reconnect no longer bring back deleted notifications, lose their read state or notify again (#​2098, #​2090, thanks to @​mattford63, @​arminus and @​tobykaspar79 for reporting)
  • CLI: ntfy pub --wait-pid now waits for processes owned by other users instead of failing with "not running" (#​1710, thanks to @​bekoeppel for the contribution)
  • Admin API (internal): manage other users' tokens, tiers and password reset links, return 4xx instead of 500 for invalid input, and remove a deleted user's web push subscriptions

v2.35.0

Compare Source

This release keeps what a user already spent when their tier changes, and makes a tier's daily email limit a hard cap. It also fixes intermittent 403s under concurrent requests from the same IP, and the Matrix push gateway storing messages under a protected topic on SQLite.

Security:

  • Reject Matrix push gateway requests whose push key does not name a valid topic. Publishing strips NUL bytes and invalid UTF-8 from the topic after authorization, so an anonymous push key like /sec%00ret was authorized against an unmatched topic and then stored under the protected topic secret (SQLite only; on PostgreSQL the request was denied; thanks to Efe Çam for reporting)

Features:

  • A tier change (an upgrade, a downgrade, or a tier edited in place) applies on the user's next request and keeps what was already spent; before, it refilled the request, email and attachment bandwidth limits (#​2104, #​2105)
  • A tier's daily email limit is a hard cap; before, the tier's email burst came on top of it, so a user could send more emails a day than the tier allows

Bug fixes + maintenance:

  • Fix intermittent 403s and panics in the account handlers under concurrent requests from the same IP: a login or logout could change the user under another request, so a request with valid credentials was treated as anonymous, or the other way around. Every request now gets its own visitor (#​1051, #​2113, #​2118, thanks to @​ivanetinajero for reporting)
  • A tier with a daily email limit of zero sends no emails; before, it could still send the server's email burst (visitor-email-limit-burst)
  • An attachment upload rejected at a size limit is no longer charged to the attachment bandwidth limit for the part that went over
  • Rate limits live in one shared limit service, keyed by ip:<prefix> or user:<id>, instead of in each visitor, which uses less memory per visitor and takes a global lock off the request path
  • Accept terabyte units (e.g. 1T) in size settings such as attachment and tier limits, matching how sizes are displayed (#​2078, thanks to @​cangen185-sudo for the contribution)

v2.34.0

Compare Source

This release prepares the experimental cluster to run behind load balancers: nodes drain on shutdown instead of dropping all of their clients at once, ntfy can listen on several addresses, and access changes reach every node. It also fixes a revoked or deleted user keeping some of their subscriptions, on every server.

Features:

  • Allow several comma-separated addresses in listen-http, so a load balancer can hold more than ~63k connections to one ntfy node
  • Cluster nodes drain on shutdown: an active node withdraws (stops being ready), then turns read-only and closes its subscriber connections gradually (experimental-cluster-drain-delay, experimental-cluster-drain-duration), so its clients move to the other nodes without a reconnect storm (experimental, see draining on shutdown)

Security:

  • End all of a user's subscriptions when their access to a topic is reset or the user is deleted: only the first one was ended, so the others kept receiving the topic's messages (#​1845, thanks to @​gigioneggiando for reporting)
  • In an experimental cluster, tell the other nodes when access changes (e.g. a reservation or a revoked permission), so they reload their access cache and disconnect subscribers who lost access; the access cache reload also catches changes made elsewhere, e.g. by the ntfy access CLI, and now runs every 67 seconds instead of 87

Bug fixes + maintenance:

  • Fix a deadlock when ending subscriptions (reserving a topic with live subscribers, revoking access, deleting a user) while debug logging or log-level-overrides is on: the subscriptions' topic stayed locked for good
  • Fix a data race when log-level-overrides changes (e.g. on a config reload with SIGHUP) while the server logs

v2.33.1

Compare Source

This release builds ntfy with Go 1.27.3 (security fixes, including rejecting the compromised eMudhra intermediate CAs), and adds monitoring for the experimental cluster: each node's view of its peers, per-peer and database connection pool metrics.

The v2.33.0 release had an issue that made it crash on older CPU architectures. The v2.33.1 release fixes that (see #​2092).

Features:

  • Show each cluster node's view of its peers with ntfy cluster status, /v1/cluster/status on the cluster listener, and per-peer metrics, so a link that only works in one direction is visible (experimental clustering, see cluster status)
  • Export PostgreSQL connection pool metrics (ntfy_db_pool_*: connections in use, and queries that waited for a free connection, per pool), to size pool_max_conns (see PostgreSQL)

Security:

  • Build with Go 1.27.3, which includes the security fixes of Go 1.27.2 (crypto/tls, net/http, html/template and others) and 1.27.3 (crypto/x509: certificate chains through the compromised eMudhra intermediate CAs are rejected)
  • Reject phone number verification unless Twilio confirms the code as approved, instead of accepting any successful response
  • Ignore duplicate topics in a subscription and limit a subscription to 150 topics, so a single request cannot replay the same topic's cache over and over

Bug fixes + maintenance:

  • Count published messages from every cluster node: each node adds its own publishes to the stored total instead of the leader overwriting it with its own count (experimental clustering)
  • Fix "Illegal instruction" crash of the amd64 binaries on CPUs without x86-64-v3 (AVX2/BMI2), by building releases on Ubuntu 24.04 again (#​2092, thanks to @​frank-bg for reporting)

v2.33.0

Compare Source

v2.32.0

Compare Source

This release prepares ntfy.sh for a passive cluster node: jobs that write to the shared database run only on the cluster leader, and each database store now records the oldest schema version it works with. Streaming subscriptions also tell proxies not to buffer them.

Features:

  • Set the Incremental: ?1 header (RFC 10036) on streaming subscriptions, so proxies that support it forward messages without buffering (#​2056, thanks to @​bt90 for the suggestion)

Bug fixes + maintenance:

  • Fix template files (?tpl=<name>) ignoring the priority sent with the request when the file has no priority key (#​2045, thanks to @​6801318d8d for reporting)
  • Return HTTP 409 instead of 500 when deleting or changing the password of a user provisioned via auth-users through the admin API (#​2062, thanks to @​daniloamiranda for reporting)
  • Run the shared-database housekeeping (pruning expired messages, attachments and tokens, web push expiry warnings, writing the published-messages total) on the cluster leader only, so a passive node no longer overwrites the total with its own count (experimental clustering)
  • Record the oldest schema version each database store still works with, so an older ntfy refuses to start on a database that a newer version migrated in a breaking way, instead of misreading it; none of today's migrations are breaking (#​2060)

v2.31.1

Compare Source

This release fixes the database load that made us roll back ntfy.sh from v2.31.0: reconnecting with since=<message ID> read every message of the topic from the database. A new index makes these reconnects cheap, cheaper than in v2.30.0. It also lets ntfy start with a warning on a newer database schema, so later rollbacks need no manual step.

Bug fixes + maintenance:

  • Fix reconnects with since=<message ID> reading every message of the topic from the database, which overloaded ntfy.sh's database right after the v2.31.0 upgrade; the message cache gets a new index: (topic, published, id) on PostgreSQL, (topic, published, time) on SQLite (#​2058)
  • Start with a warning instead of failing when the database schema is newer than this version of ntfy supports, so a rollback or a rolling cluster upgrade needs no manual schema change (#​2059)
  • Web app: Fix the wrong topic opening when subscribed to the same topic on two different servers (#​858)
  • Web app: Fix the "Upgrade to ntfy Pro" banner covering the bottom of a long topic list (#​1007)
  • Web app: The "Notifications are disabled" and "Notifications are blocked" warnings can now be closed (#​1220)
  • Web app: Fix a crash when opening the subscribe dialog before the topic list has loaded, e.g. while another tab holds the browser database (#​2014, #​1881)

Upgrade notes:

  • This release changes the message database schema (version 16 to 17: an index for since=<message ID> reconnects). Downgrading to v2.31.0 or earlier afterwards requires setting the version back by hand first: UPDATE schema_version SET version = 16 WHERE store = 'message' on PostgreSQL, or UPDATE schemaVersion SET version = 16 WHERE id = 1 in the SQLite cache-file. From this release on, a newer schema only logs a warning (#​2059)

v2.31.0

Compare Source

This release fixes messages that could be lost when a client reconnects, e.g. a phone switching networks, right when messages are published: every server now reads newly written messages from its message cache once a second and sends them to the subscribers that missed them. In load tests with server restarts and crashes, this brought lost messages down from 465 to 2 out of about 615,000. It also adds a /v1/ready endpoint for load balancers, and continues the experimental clustering work with node roles.

Features:

  • Add /v1/ready for load balancers, and the node's role to /v1/health; with clustering, a node with no other active node leads right away instead of after a one-minute hold-off (#​2050)
  • Experimental clustering: add experimental-cluster-role to run a passive node that never leads and never takes over another node's subscribers, e.g. one that is not behind the load balancer (#​2049)

Bug fixes + maintenance:

  • Fix messages lost when a client reconnects before they are written to the message cache, or when a cluster node's fan-out is lost: every node now reads newly written messages once a second and sends them to the subscribers that missed them (#​2040)
  • Write user stats (messages, emails, calls) as increments, so servers sharing one database add up instead of overwriting each other's counts (#​1989)
  • Don't add a visitor's anonymous usage to an account's stats when the account takes over that visitor, e.g. right after upgrading (#​2041)

Upgrade notes:

  • A reconnect with since=<message ID> now also returns the messages published in the same second as that message, so none are skipped when several servers write out of order. The ntfy apps and web app drop these by ID; your own scripts may see a few duplicates (#​2040)
  • Experimental clustering only: this release changes the cluster's node registry schema (version 1 to 2). Downgrading a clustered server to v2.30.0 afterwards requires setting the version back by hand first: UPDATE schema_version SET version = 1 WHERE store = 'node_registry' (#​2049)

v2.30.0

Compare Source

This release links attachments in email notifications, adds SMTP LOGIN auth (e.g. for OVH and Outlook), and fixes the PostgreSQL memory growth that came with v2.29.0. It also ships the first experimental version of clustering: several ntfy servers sharing one PostgreSQL database. Clustering is not ready for production yet.

Features:

  • Link attachments in email notifications, including the file name and when the link expires (#​672, thanks to @​merspieler for suggesting)
  • Support SMTP servers that only offer LOGIN auth (e.g. OVH, Outlook) for sending emails (#​930/#​1530, thanks to @​wunter8 for reporting and @​santanoce for the initial implementation)
  • Experimental: run several ntfy servers as one cluster that shares a PostgreSQL database, enabled with experimental-cluster-listen; this is not ready for production yet (#​2005, #​2008, #​2012, #​2013)

Bug fixes + maintenance:

  • Fix Dockerfile-build failing to build: use Go 1.26 and add the cluster package (#​1962, thanks to @​ElectricTea for reporting)
  • Set the org.opencontainers.image.version label on release Docker images (#​1921/#​1936, thanks to @​Plazzmex for reporting and @​w1977-0 for the fix)
  • Warn at startup if attachment-expiry-duration is longer than cache-duration, since attachments never outlive their message (#​1053, thanks to @​ctschach for reporting)
  • Fix PostgreSQL memory growth after v2.29.0: write message batches with one fixed INSERT for any batch size (#​2011)
  • CLI: fix ntfy publish failing with "invalid header field value" when sending a multi-line message or title along with a file (#​1808, thanks to @​quantenzitrone for reporting)
  • Web app: fix an updated message showing next to its old version when the update arrived via the background poll instead of live (#​2010)

Documentation:

  • Document recommended PostgreSQL pool settings for busy servers (#​2011)

v2.29.0

Compare Source

This release fixes cache writes under load. On ntfy.sh, hourly cron bursts overwhelmed the batch writer: messages took up to 40s to reach the database (so poll=1 and since= missed them) and publishes stalled. Batches are now written in one statement, publishes no longer wait on the writer, and PostgreSQL connections stay idle instead of reconnecting.

Features:

  • Timezone support for delayed notifications via X-Timezone header, timezone query param or JSON field; the web app sends the browser's timezone (#​1967/#​1924, thanks @​beemines)
  • RFC 3339 timestamps for delayed notifications, e.g. At: 2026-12-10T11:00:00-05:00 (#​1931, thanks @​ALPHACOM-Brehmer)

Bug fixes + maintenance:

  • Fix delayed message visibility and stalled publishes under bursts: multi-row INSERT per batch, non-blocking publishes (100-batch buffer), and no scheduled-message lookup unless a sequence ID is set (#​2006)
  • Fix a panic in the account token-update endpoint caused by a concurrent anonymous request racing on the shared visitor; now returns HTTP 401
  • Fix messages lost on shutdown: the write queue is flushed and ntfy serve handles SIGTERM/SIGINT gracefully
  • pool_max_idle_conns now defaults to pool_max_conns, so PostgreSQL connections are reused instead of re-opened
  • Fix since=<message-id> replaying a topic's full history when the ID wasn't on the read replica yet; it's now resolved on the primary
  • Use the PostgreSQL row estimate for messages_cached instead of a COUNT(*) every minute
  • Detect Markdown when Content-Type has parameters or is uppercase (#​1995, thanks @​cipherprofessor)
  • Fix the Alertmanager template's bogus 0001-01-01 end time and merged start/end lines (#​1946/#​1940, thanks @​justadityaraj and @​deferred)
  • Embed the time zone database (time/tzdata) so named time zones work on ARM Docker images and minimal runtimes
  • Build with Go 1.27; minimum Go version to build is now 1.26
  • Groundwork for clustering (node registry, util primitives, reserved config options); not usable yet (#​1991, #​1997, #​2001, #​2003)

v2.28.0

Compare Source

This is a hardening release. A single topic on ntfy.sh was polled continuously with poll=1 and no since cursor, which replays a topic's entire cache on every request. The changes below bound what one replay can cost, close two fields that had no size limit at all, and fix an ordering bug found while digging into it.

Bug fixes + maintenance:

  • Fix messages being returned out of publish order when polling or replaying several topics at once (/topic1,topic2/json?poll=1, #​1297)
  • Limit the message title to 1 KB and all tags combined to 512 bytes, rejecting larger requests with HTTP 400 (error codes 40057 and 40058). Neither field had a size limit before, unlike the message body; on ntfy.sh the 99.9th percentile is 212 bytes for titles and 244 for tags
  • Cap a single cache replay at 10 MB of messages per topic. A poll without a since cursor returns a topic's entire cache, which was previously unbounded and could reach tens of megabytes on a busy topic, so one request could allocate that much on the server. The newest messages that fit are kept and a truncated response carries an X-Messages-Truncated: 1 header
  • visitor-attachment-daily-bandwidth-limit now also covers messages replayed from the message cache by poll requests, not just attachment traffic. A poll without a since cursor returns a topic's entire cache, so a topic that is cheap to fill can be re-read for many times its own size; polls beyond the budget are rejected with HTTP 429 (error code 42905) before anything is written. Note that heavy pollers now consume the same budget as attachment downloads, so operators serving both may want to raise the limit

v2.27.0

Compare Source

This release lets you sign in with your verified email address instead of your username, which should help if you ever signed up with an email and then forgot which username you picked. It also hardens the message templating engine against a few ways a small template could eat a lot of memory, and it drops the "experimental" label from PostgreSQL support, which has been running ntfy.sh for a while now.

I also did a bunch of refactoring in, mostly in preparation for being able to cluster ntfy nodes and scale the service horizontally. It'll be a while until then, ... baby steps.

Security:

  • Limit message templates (Template: yes) to 32 KB, limit printf widths and precisions to below 1000, and limit indent/nindent to 100 spaces, preventing excessive memory use from a single small template
  • Exclude secrets from the config hash served to the web app, preventing a rather theoretical information leak

Features:

  • Allow logging in with your verified primary email address (in addition to your username), so a password reset no longer leaves you unable to sign in when you only remember the email you signed up with

Bug fixes + maintenance:

  • Fix Twilio phone calls and phone number verifications failing silently when Twilio rejected the request, and move the Twilio integration into its own twilio package
  • Move the Prometheus metrics into a dedicated metrics package
  • Message cache databases from ntfy older than v1.10.0 (November 2021) can no longer be migrated; upgrade via an older ntfy version first, or delete the cache database
  • Fix user_phone table in the SQLite user database referencing a dropped table after the v2.14 schema migration; repaired automatically by a new migration

v2.26.3

Compare Source

This is a hotfix release, useful pretty much only for ntfy.sh. It was adds the ability to track abusive IPs mor efficiently, reducing the load on the IP banning services and preventing them from falling behind and leaving abusers unbanned for too long. It works by tracking HTTP errors, and writing out a ban file that fail2ban can read and ban offenders instantly. See ban-feed for details.

Features:

  • Add an abuse ban-feed: when enabled via ban-file, ntfy tracks a weighted strike budget per visitor and appends abusive IPs to a file that fail2ban can tail and ban on sight (ban-file, ban-window, ban-threshold, ban-weights; see ban-feed)

v2.26.0

Compare Source

This release hardens message templates, which are now executed with a hard-capped execution timeout. This closes
a denial-of-service hole.

On the web app side, it adds configurable date and time formats, a smoother loading and page-transition experience,
and a fix that strips unsafe URL protocols from rendered Markdown.

Security:

  • Prevent a CPU denial of service via message templates (Template: yes), #​1826, thanks to @​alanturing881 for reporting)

Features:

  • Web app: Add "Date format" and "Time format" settings (Settings -> Appearance), with ISO 8601, day/month/year (slash or dot) and month/day/year date options and a 12-/24-hour clock option, and base the default format on your browser/system locale rather than the selected display language. When logged in, both settings sync across devices via your account (#​1647, thanks to @​wsw70 for reporting)

Bug fixes + maintenance:

  • Web app: Smooth transitions and loading animation, remove flickering
  • Web app: GET /account now reads from the primary database instead of a read replica, so the account view no longer shows stale data right after a change when replicas lag behind
  • Docs: Document the third-party HelmForge Helm chart as a Kubernetes installation option (#​1727, thanks to @​mberlofa)
  • Web app: Strip unsafe URL protocols (javascript:, data:, ...) from links and images in Markdown-rendered messages, so they no longer trigger an uncaught "React has blocked a javascript: URL" error (thanks to @​jvoisin for reporting)

v2.25.0

Compare Source

This release adds password reset via email, and reworks email verification to use durable, link-based magic links (replacing the old in-memory 6-digit codes). Email stays optional at signup; a user can reset their password only once they have a verified "primary" (recovery)email.

All of this work is probably not useful for self-hosters, but it hopefully will be useful for me, since I do have to reset accounts on a regular basis.

Security issues:

  • Generate access tokens, IDs, and magic-link tokens with a cryptographically secure RNG (crypto/rand) instead of a clock-seeded PRNG

Features:

  • Add password reset via emailed magic link, with a "Forgot password" link on the login page and a ntfy user reset-pass CLI command for admins
  • Rework email verification to use durable, single-use, expiring magic links instead of in-memory 6-digit codes, and add a "primary" email (used for account recovery and as the X-Email: yes target) with verified/unverified state in the account UI
  • You can now clear/read messages and delete messages with a GET request (#​1771, thanks to @​lemmi for reporting and to @​wunter8 for implementing)
  • Add a reload button to the web app's action bar when running as an installed PWA, which clears the service worker caches and hard-refreshes the app
  • Add a "Back to app" link to the web app's login, signup, and password-reset pages (alongside the existing links), which previously had no way back to the app

Bug fixes + maintenance:

  • X-Email: yes (also true/1) now sends to your primary verified email regardless of the smtp-sender-verify setting (previously it was rejected unless verification was enabled); it requires being logged in with a verified address
  • Grant users full access to their own sync topic (st_...) so cross-device subscription sync works under auth-default-access: deny-all (#​733, #​1795, thanks to @​lmorchard for the contribution)
  • Support HTTP (non-TLS) S3-compatible endpoints by preserving the endpoint scheme, e.g. for a local MinIO instance (#​1794, #​1734, thanks to @​sskender for the contribution, and @​Kernald for reporting)
  • Stop silently stripping spaces from passwords while typing in the web app's login, signup, and password-reset forms (#​1246, thanks to @​aldem for reporting)
  • Update web app dependencies, including major-version upgrades to Vite (6 -> 8, now Rolldown-based), Material UI (5 -> 9), and Dexie (3 -> 4) (#​1800, #​1764, #​1767, #​1762, #​1766, #​1765, thanks Dependabot)
  • Play notification sounds in the web app even when the Notification API is unavailable, e.g. over plain HTTP or in browsers without notification support (#​1772, thanks to @​mitya12342 for the contribution)
  • Stop escaping <, >, and & as \u003c/\u003e/\u0026 in JSON responses (#​1511, #​1512, thanks to @​wunter8 for the contribution)
  • Fix the web app navbar not reflecting a topic reservation (lock icon, and "Reserve topic" -> "Change reservation"/"Remove reservation" menu) until a page reload, by persisting reservation and display-name changes onto already-subscribed topics during account sync
  • Reduce the web app's initial bundle size by ~300 KB (~50 KB gzipped) by lazy-loading the emoji picker dataset and the Markdown renderer, and by importing Material UI icons individually

v2.24.0

Compare Source

The main feature for this release is an in-memory ACL cache (auth-access-cache) that can help bring down the read load on the production database. The topic authorization queries are consistently the highest ranking queries on the database, so this will help quite a bit. The current database load is quite low, but I'm expecting it to increase as more users join and use ntfy.

Security issues:

  • Fix case-insensitive ACL topic matching on SQLite: an access control rule for secret no longer also matches a request for SECRET. SQLite's LIKE is case-insensitive for ASCII by default. PostgreSQL was unaffected. It's honestly incredible that this issue remained undetected for so long, especially while ntfy.sh was running on SQLite (it now runs on PostgreSQL).

Features:

  • Add opt-in in-memory ACL cache (auth-access-cache) that serves topic authorization without a database round-trip; off by default, intended for high-volume servers
  • Add ntfy --version flag to the CLI (#​1722, #​1748, thanks to @​sskender for the contribution, and @​Saucy9607 for reporting)

Bug fixes + maintenance:

v2.23.0

Compare Source

Features:

  • Add per-visitor rate limit on new topic creations (visitor-topic-creation-limit-burst / visitor-topic-creation-limit-replenish, defaults 100 burst / 1m replenish) to mitigate topic-enumeration / squatting attacks that inflate the in-memory topic map

Bug fixes + maintenance:

  • Remove stacktrace-js, stacktrace-gps, humanize-duration, and js-base64 from the web app to reduce dependency and security footprint
  • Restrict the publish dialog's local file preview to safe image types (png/jpg/gif/webp) to prevent same-origin script execution from blob URLs when previewing a crafted SVG (GHSA-j8hr-p342-xrmh, thanks to @​Venukamatchi for reporting)

v2.22.0

Compare Source

Bug fixes + maintenance:

v2.21.0

Compare Source

This release adds the ability to verify email addresses using the smtp-sender-verify flag. This is a change that is required because ntfy.sh was used to send unsolicited emails and the AWS SES account was suspended. Going forward, ntfy.sh won't be able to send emails unless the email address was verified ahead of time.

Features:

  • Add verified email recipients feature with smtp-sender-verify config flag, allowing server admins to require email
    address verification before sending email notifications (#​1681)

v2.20.1

Compare Source

This is a small bugfix release that only affects high volume S3 backends that struggle with HTTP/2.

Bug fixes + maintenance:

  • Attachments: Add disable_http2=true S3 URL option to work around HTTP/2 stream errors with DigitalOcean Spaces and other S3-compatible providers (#​1678/#​1679)

v2.20.0

Compare Source

This release is another step towards making it possible to help scale ntfy up and out 🔥! With this release, you can store attachments in an S3-compatible object store as an alterative to the directory. See attachment store for details.

⚠️ Important note: With this release, ntfy will take full control over the attachment directory or S3 bucket. Files/objects in the configured attachment-cache-dir that match the message ID format (12 chars, matching ^[A-Za-z0-9]{12}$), and have no entries in the message database will be deleted. Do not use a directory or S3 bucket as attachment-cache-dir that is also used for something else.

This is a small behavioral change that was necessary because the old logic often left attachments behind and would not clean them up. Unless you have re-used the attachment directory for anything else (which is hopefully never done), this should not affect you at all.

Features:

Bug fixes + maintenance:

  • Reject invalid e-mail addresses (e.g. multiple comma-separated recipients) with HTTP 400
  • Add OpenRC init service file (#​1650, thanks to @​ageru for the contribution)

v2.19.2

Compare Source

This is another small bugfix release for PostgreSQL, avoiding races between primary and read replica, as well as to further reduce primary load.

Bug fixes + maintenance:

  • Fix race condition in web push subscription causing FK constraint violation when concurrent requests hit the same endpoint
  • Route authorization query to read-only database replica to reduce primary database load

v2.19.1

Compare Source

This is a bugfix release to avoid PostgreSQL insert failures due to invalid UTF-8 messages. It also fixes database-url validation incorrectly rejecting postgresql:// connection strings.

Bug fixes + maintenance:

  • Fix invalid UTF-8 in HTTP headers (e.g. Latin-1 encoded text) causing PostgreSQL insert failures and dropping entire message batches
  • Fix database-url validation rejecting postgresql:// connection strings (#​1657/#​1658)

v2.19.0

Compare Source

This is a fast-follow release that enables Postgres read replica support.

To offload read-heavy queries from the primary database, you can optionally configure one or more read replicas using the database-replica-urls option. When configured, non-critical read-only queries (e.g. fetching messages, checking access permissions, etc) are distributed across the replicas using round-robin, while all writes and correctness-critical reads continue to go to the primary. If a replica becomes unhealthy, ntfy automatically falls back to the primary until the replica recovers.

Features:

Bug fixes + maintenance:

  • Web: Throttle notification sound in web app to play at most once every 2 seconds (similar to #​1550, thanks to @​jlaffaye for reporting)
  • Web: Add hover tooltips to icon buttons in web app account and preferences pages (#​1565, thanks to @​jermanuts for reporting)

v2.18.0

Compare Source

This is the biggest release I've ever done on the server. It's 14,997 added lines of code, and 10,202 lines removed, all from one pull request that adds PostgreSQL support.

The code was written by Cursor and Claude, but reviewed and heavily tested over 2-3 weeks by me. I created comparison documents, went through all queries multiple times and reviewed the logic over and over again. I also did load tests and manual regression tests, which took lots of evenings.

ntfy.sh was successfully upgraded to 2.18.0 (though not with Postgres backend yet, as per the rollout plan).

I'm kindly asking the community to test the Postgres support and report back to me if things are working (or not working). There is a one-off migration tool (entirely written by AI) that you can use to migrate.

Features:

Bug fixes + maintenance:

v2.17.0

Compare Source

This release adds support for templating in the priority field, a new "copy" action button to copy values to the clipboard,
a red notification dot on the favicon for unread messages, and an admin-only version endpoint. It also includes several
crash fixes, web app improvements, and documentation updates.

❤️ If you like ntfy, please consider sponsoring me via GitHub Sponsors, Liberapay, Bitcoin (1626wjrw3uWk9adyjCfYwafw4sQWujyjn8),
or by buying a paid plan via the web app. ntfy will always remain open source.

Features:

Bug fixes + maintenance:

  • Server: Fix crash when commit string is shorter than 7 characters in non-GitHub-Action builds (#​1493, thanks to @​cyrinux for reporting)
  • Server: Fix server crash (nil pointer panic) when subscriber disconnects during publish (#​1598)
  • Server: Fix log spam from http: response.WriteHeader on hijacked connection for WebSocket errors (#​1362, thanks to @​bonfiresh for reporting)
  • Server: Use slices.Contains from stdlib to simplify code (#​1406, thanks to @​tanhuaan)
  • Web: Fix clear=true on action buttons not clearing the notification (#​1029, thanks to @​ElFishi for reporting)
  • Web: Fix Markdown message line height to match plain text (1.5 instead of 1.2) (#​1139, thanks to @​etfz for reporting)
  • Web: Fix long lines (e.g. JSON) being truncated by adding horizontal scroll (#​1363, thanks to @​v3DJG6GL for reporting)
  • Web: Fix Windows notification icon being cut off (#​884, thanks to @​ZhangTianrong for reporting)
  • Web: Use full URL in curl example on empty topic pages (#​1435, #​1535, thanks to @​elmatadoor for reporting and @​jjasghar for the PR)
  • Web: Add validation feedback for service URL when adding user (#​1566, thanks to @​jermanuts)
  • Docs: Remove obsolete version field from docker-compose examples (#​1333, thanks to @​seals187 for reporting and @​cyb3rko for fixing)
  • Docs: Fix Kustomize config in installation docs (#​1367, thanks to @​toby-griffiths)
  • Docs: Use SVG F-Droid badge and add app store badges to README (#​1170, thanks to @​PanderMusubi for reporting)

v2.16.0

Compare Source

This release adds support for updating and deleting notifications, heartbeat-style / dead man's switch notifications, custom Twilio call format, and makes ntfy serve work on Windows. It also adds a "New version available" banner to the web app.

This one is very exciting, as it brings a lot of highly requested features to ntfy.

Features:

v2.15.0

Compare Source

This release adds a require-login flag to topics, which forces users to log in before they can use the web app. This is useful for self-hosters and will obviously not be enabled on ntfy.sh.

Features:

Bug fixes + maintenance:

v2.14.0

Compare Source

This release adds support for declarative users, declarative ACL entries and declarative tokens. This allows you to define users, ACL entries and tokens in the config file, which is useful for static deployments or deployments that use a configuration management system.

It also adds support for pre-defined templates and custom templates for enhanced JSON webhook support, as well as advanced template functions based on the Sprig functions.

❤️ If you like ntfy, please consider sponsoring me via GitHub Sponsors, Liberapay, Bitcoin (1626wjrw3uWk9adyjCfYwafw4sQWujyjn8), or by buying a paid plan via the web app. ntfy
will always remain open source.

Features:

v2.13.0

Compare Source

This is a relatively small release, mainly to support IPv6 and to add more sophisticated
proxy header support. Quick reminder that if you like ntfy, please consider sponsoring us
via GitHub Sponsors and Liberapay, or buying a paid plan via the web app.
ntfy will always remain open source.

Features:

Languages

  • Update new languages from Weblate. Thanks to all the contributors!
  • Added Estonian (Esti), Galician (Galego), Romanian (Română), Slovak (Slovenčina) as new languages to the web app

v2.12.0

Compare Source

This is mainly a maintenance release that updates dependencies, though since it's been over a year, there are a few new features and bug fixes as well.

Thanks to everyone who contributed to this release, and special thanks to @​wunter8 for his continued user support in Discord/Matrix/GitHub! You rock, man!

Features:

Bug fixes + maintenance:

  • Security updates for dependencies and Docker images (#​1341)
  • Upgrade to Vite 6 (#​1342, thanks Dependabot)
  • Fix iOS delivery issues for read-protected topics (#​1207, thanks a lot to @​barart!)
  • Add Date header to outgoing emails to avoid rejection (#​1141, thanks to @​pcouy)
  • Fix IP address parsing when behind a proxy (#​1266, thanks to @​mmatuska)
  • Make sure UnifiedPush messages are not treated as attachments (#​1312, thanks to @​vkrause)
  • Add OCI image version to Docker image (#​1307, thanks to @​jlssmt)
  • WebSocket returning incorrect HTTP error code (#​1338 / #​1337, thanks to @​wunter8 for debugging and implementing)
  • Make Markdown in the web app scrollable horizontally (#​1262, thanks to @​rake5k for fixing)
  • Make sure WebPush subscription topics are actually deleted (no ticket)
  • Increase the number of access tokens per user to 60 (#​1308)
  • Allow specifying cache and firebase via JSON publishing (#​1119/#​1123, thanks to @​stendler)

Documentation:

Languages

  • Update new languages from Weblate. Thanks to all the contributors!
  • Added Tamil (தமிழ்) as a new language to the web app

Configuration

📅 Schedule: (in timezone Europe/Amsterdam)

  • Branch creation
    • "before 6am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [binwiederhier/ntfy](https://ntfy.sh/) ([source](https://github.com/binwiederhier/ntfy)) | | minor | `v2.11.0` → `v2.37.2` | | [python](https://hub.docker.com/_/python) ([source](https://github.com/docker-library/python)) | final | minor | `3.10-slim` → `3.15-slim` | | [python](https://hub.docker.com/_/python) ([source](https://github.com/docker-library/python)) | final | minor | `3.12-slim` → `3.15-slim` | | [rust](https://hub.docker.com/_/rust) ([source](https://github.com/rust-lang/docker-rust)) | stage | minor | `1.85-bookworm` → `1.99-bookworm` | --- ### Release Notes <details> <summary>binwiederhier/ntfy</summary> ### [`v2.37.2`](https://github.com/binwiederhier/ntfy/releases/tag/v2.37.2) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.37.1...v2.37.2) #### Changelog - [`0510957`](https://github.com/binwiederhier/ntfy/commit/05109571fd0931affb6f92b17bbfd62c4d2ea68a) Merge pull request [#&#8203;2169](https://github.com/binwiederhier/ntfy/issues/2169) from binwiederhier/release-2380 ### [`v2.37.1`](https://github.com/binwiederhier/ntfy/releases/tag/v2.37.1) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.37.0...v2.37.1) This release fixes a database slowdown in v2.37.0 when using `visitor-subscriber-rate-limiting` with a user database: the subscriber activity of UnifiedPush topics was written far too often. **Bug fixes + maintenance:** - With `visitor-subscriber-rate-limiting` and a user database, write a UnifiedPush topic's subscriber activity every one to two hours instead of every 5 minutes, spread over time, and not at all when a poll or reconnect only repeats the same subscriber; on ntfy.sh, v2.37.0's writes of \~45k topics every 5 minutes, all due in the same minute, slowed down the database ([#&#8203;2151](https://github.com/binwiederhier/ntfy/pull/2151)) ### [`v2.37.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.37.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.36.0...v2.37.0) This release makes UnifiedPush work across several servers: the subscriber who pays for a topic's pushes is shared through the database, and app servers are told with `410 Gone` when a subscription has been abandoned for 4 days. It also adds `Retry-After` and the draft `RateLimit` headers to rate limit responses, and frees the memory of one-off visitors sooner. **Features:** - With `visitor-subscriber-rate-limiting`, the subscriber of a UnifiedPush topic (who pays for its pushes) is kept in the user database and shared by all servers, so a push to any server is billed to the subscriber instead of answered with 507 ([#&#8203;2136](https://github.com/binwiederhier/ntfy/pull/2136); see [subscriber-based rate limiting](https://docs.ntfy.sh/config/#subscriber-based-rate-limiting)) - Send a `Retry-After` header with HTTP 429 responses that are caused by a rate limit with a known wait, e.g. the request, e-mail or daily message limits ([#&#8203;2142](https://github.com/binwiederhier/ntfy/pull/2142); see [rate limiting](https://docs.ntfy.sh/config/#rate-limiting)) - Send the IETF draft `RateLimit-Policy` and `RateLimit` headers with publish responses (and with every 429 caused by a limit with a quota), for the request and daily message limits ([#&#8203;2143](https://github.com/binwiederhier/ntfy/pull/2143); see [rate limiting](https://docs.ntfy.sh/config/#rate-limiting)) - New metric `ntfy_topics_unifiedpush_total`: the UnifiedPush topics whose subscriber state a server keeps in memory ([#&#8203;2136](https://github.com/binwiederhier/ntfy/pull/2136)) **Behavior changes:** - With `visitor-subscriber-rate-limiting`, a UnifiedPush push to a topic that has had no subscriber (subscribe, poll or open stream) for 4 days is answered with `410` (error code 41002) instead of `507`, so app servers like Mastodon remove the expired subscription ([#&#8203;664](https://github.com/binwiederhier/ntfy/issues/664), [#&#8203;2136](https://github.com/binwiederhier/ntfy/pull/2136)); a Matrix push to such a topic gets its pushkey rejected (before: after 12 hours without a subscriber on the server that got the push) - With `visitor-subscriber-rate-limiting`, UnifiedPush messages are counted against the subscriber's account only while it has a tier, and against the subscriber's IP address otherwise (also after the account lost its tier or was deleted); a tier change applies to the next message ([#&#8203;2136](https://github.com/binwiederhier/ntfy/pull/2136)) - Ban feed: weights may be fractional (down to `0.001`), auth failures (`42909`) now weigh 2 instead of 10, and a UnifiedPush push without a subscriber (`50701`) or to an abandoned topic (`41002`) weighs 0.05, so app servers pushing to many offline phones are not banned for it ([#&#8203;2147](https://github.com/binwiederhier/ntfy/pull/2147)) - The rate limit state of a visitor is forgotten about a minute after it has fully recovered (all buckets refilled) instead of after a day without use, which frees the memory of one-off visitors such as floods of new IPs. The `visitors` stat and the `ntfy_visitors_total` metric therefore count the visitors of roughly the last minute, not of the last day ([#&#8203;2126](https://github.com/binwiederhier/ntfy/pull/2126)) - Topics without subscribers are dropped from memory after 6 hours without use instead of 16; a publish to such a topic recreates it (and counts against `visitor-topic-creation-limit-burst`) ([#&#8203;2136](https://github.com/binwiederhier/ntfy/pull/2136)) **Bug fixes + maintenance:** - With PostgreSQL and several servers, daily usage a server counted in the last seconds of a visitor's 24-hour period is no longer added to the next period (a double count); it is dropped instead ([#&#8203;2136](https://github.com/binwiederhier/ntfy/pull/2136)) - Cluster: a forwarded message for a topic without subscribers on the receiving node now counts as wasted (`ntfy_cluster_messages_wasted_total`) and no longer keeps that idle topic in memory ([#&#8203;2140](https://github.com/binwiederhier/ntfy/pull/2140)) ### [`v2.36.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.36.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.35.0...v2.36.0) This release keeps the daily limits across restarts and, with PostgreSQL, shares them between servers, so a visitor gets one daily allowance in total. Each visitor's day now starts at its own time instead of midnight UTC. It also adds an experimental local admin socket. **Features:** - Daily limits (messages, e-mails, phone calls) are stored in the user database, so they survive restarts; with PostgreSQL, all servers share them. Each visitor's day starts at its own time instead of midnight UTC, and the account page and `/v1/account` (`stats.reset_at`) show when it resets ([#&#8203;2131](https://github.com/binwiederhier/ntfy/pull/2131), see [message limits](https://docs.ntfy.sh/config/#message-limits)) - Experimental local admin socket (`experimental-listen-admin-unix`, off by default) that serves the admin API without credentials to whoever can open it; the shipped systemd unit sets `RuntimeDirectory=ntfy` for it (see [admin socket](https://docs.ntfy.sh/config/#admin-socket)) - Export `ntfy_db_up` per PostgreSQL pool, and health-check the primary like the replicas ([#&#8203;2133](https://github.com/binwiederhier/ntfy/pull/2133)) **Upgrade notes:** - Everyone's daily counts start over at the upgrade: the `stats_*` columns of the user table are zeroed and no longer used - Servers that share a PostgreSQL database must keep their clocks in sync (NTP) - Visitors without a tier have a daily e-mail limit again (24h / `visitor-email-limit-replenish`) - The whole server config is checked again when `base-url` or a `message-size-limit` above 4K is set, so an invalid config that used to start now fails at startup ([#&#8203;1969](https://github.com/binwiederhier/ntfy/pull/1969), thanks to [@&#8203;mikejgray](https://github.com/mikejgray) for the contribution) **Bug fixes + maintenance:** - Web app: Messages replayed by a poll or a reconnect no longer bring back deleted notifications, lose their read state or notify again ([#&#8203;2098](https://github.com/binwiederhier/ntfy/issues/2098), [#&#8203;2090](https://github.com/binwiederhier/ntfy/issues/2090), thanks to [@&#8203;mattford63](https://github.com/mattford63), [@&#8203;arminus](https://github.com/arminus) and [@&#8203;tobykaspar79](https://github.com/tobykaspar79) for reporting) - CLI: `ntfy pub --wait-pid` now waits for processes owned by other users instead of failing with "not running" ([#&#8203;1710](https://github.com/binwiederhier/ntfy/pull/1710), thanks to [@&#8203;bekoeppel](https://github.com/bekoeppel) for the contribution) - Admin API (internal): manage other users' tokens, tiers and password reset links, return 4xx instead of 500 for invalid input, and remove a deleted user's web push subscriptions ### [`v2.35.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.35.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.34.0...v2.35.0) This release keeps what a user already spent when their tier changes, and makes a tier's daily email limit a hard cap. It also fixes intermittent 403s under concurrent requests from the same IP, and the Matrix push gateway storing messages under a protected topic on SQLite. **Security:** - Reject Matrix push gateway requests whose push key does not name a valid topic. Publishing strips NUL bytes and invalid UTF-8 from the topic after authorization, so an anonymous push key like `/sec%00ret` was authorized against an unmatched topic and then stored under the protected topic `secret` (SQLite only; on PostgreSQL the request was denied; thanks to [Efe Çam](https://github.com/the-arma-of-owl) for reporting) **Features:** - A tier change (an upgrade, a downgrade, or a tier edited in place) applies on the user's next request and keeps what was already spent; before, it refilled the request, email and attachment bandwidth limits ([#&#8203;2104](https://github.com/binwiederhier/ntfy/pull/2104), [#&#8203;2105](https://github.com/binwiederhier/ntfy/pull/2105)) - A tier's daily email limit is a hard cap; before, the tier's email burst came on top of it, so a user could send more emails a day than the tier allows **Bug fixes + maintenance:** - Fix intermittent 403s and panics in the account handlers under concurrent requests from the same IP: a login or logout could change the user under another request, so a request with valid credentials was treated as anonymous, or the other way around. Every request now gets its own visitor ([#&#8203;1051](https://github.com/binwiederhier/ntfy/issues/1051), [#&#8203;2113](https://github.com/binwiederhier/ntfy/issues/2113), [#&#8203;2118](https://github.com/binwiederhier/ntfy/pull/2118), thanks to [@&#8203;ivanetinajero](https://github.com/ivanetinajero) for reporting) - A tier with a daily email limit of zero sends no emails; before, it could still send the server's email burst (`visitor-email-limit-burst`) - An attachment upload rejected at a size limit is no longer charged to the attachment bandwidth limit for the part that went over - Rate limits live in one shared limit service, keyed by `ip:<prefix>` or `user:<id>`, instead of in each visitor, which uses less memory per visitor and takes a global lock off the request path - Accept terabyte units (e.g. `1T`) in size settings such as attachment and tier limits, matching how sizes are displayed ([#&#8203;2078](https://github.com/binwiederhier/ntfy/pull/2078), thanks to [@&#8203;cangen185-sudo](https://github.com/cangen185-sudo) for the contribution) ### [`v2.34.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.34.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.33.1...v2.34.0) This release prepares the experimental cluster to run behind load balancers: nodes drain on shutdown instead of dropping all of their clients at once, ntfy can listen on several addresses, and access changes reach every node. It also fixes a revoked or deleted user keeping some of their subscriptions, on every server. **Features:** - Allow several comma-separated addresses in `listen-http`, so a load balancer can hold more than \~63k connections to one ntfy node - Cluster nodes drain on shutdown: an active node withdraws (stops being ready), then turns read-only and closes its subscriber connections gradually (`experimental-cluster-drain-delay`, `experimental-cluster-drain-duration`), so its clients move to the other nodes without a reconnect storm (experimental, see [draining on shutdown](https://docs.ntfy.sh/config/#draining-on-shutdown)) **Security:** - End all of a user's subscriptions when their access to a topic is reset or the user is deleted: only the first one was ended, so the others kept receiving the topic's messages ([#&#8203;1845](https://github.com/binwiederhier/ntfy/pull/1845), thanks to [@&#8203;gigioneggiando](https://github.com/gigioneggiando) for reporting) - In an experimental cluster, tell the other nodes when access changes (e.g. a reservation or a revoked permission), so they reload their access cache and disconnect subscribers who lost access; the access cache reload also catches changes made elsewhere, e.g. by the `ntfy access` CLI, and now runs every 67 seconds instead of 87 **Bug fixes + maintenance:** - Fix a deadlock when ending subscriptions (reserving a topic with live subscribers, revoking access, deleting a user) while debug logging or `log-level-overrides` is on: the subscriptions' topic stayed locked for good - Fix a data race when `log-level-overrides` changes (e.g. on a config reload with SIGHUP) while the server logs ### [`v2.33.1`](https://github.com/binwiederhier/ntfy/releases/tag/v2.33.1) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.33.0...v2.33.1) This release builds ntfy with Go 1.27.3 (security fixes, including rejecting the compromised eMudhra intermediate CAs), and adds monitoring for the experimental cluster: each node's view of its peers, per-peer and database connection pool metrics. *The v2.33.0 release had an issue that made it crash on older CPU architectures. The v2.33.1 release fixes that (see [#&#8203;2092](https://github.com/binwiederhier/ntfy/issues/2092)).* **Features:** - Show each cluster node's view of its peers with `ntfy cluster status`, `/v1/cluster/status` on the cluster listener, and per-peer metrics, so a link that only works in one direction is visible (experimental clustering, see [cluster status](https://docs.ntfy.sh/config/#cluster-status)) - Export PostgreSQL connection pool metrics (`ntfy_db_pool_*`: connections in use, and queries that waited for a free connection, per pool), to size `pool_max_conns` (see [PostgreSQL](https://docs.ntfy.sh/config/#postgresql)) **Security:** - Build with Go 1.27.3, which includes the security fixes of Go 1.27.2 (`crypto/tls`, `net/http`, `html/template` and others) and 1.27.3 (`crypto/x509`: certificate chains through the compromised eMudhra intermediate CAs are rejected) - Reject phone number verification unless Twilio confirms the code as approved, instead of accepting any successful response - Ignore duplicate topics in a subscription and limit a subscription to 150 topics, so a single request cannot replay the same topic's cache over and over **Bug fixes + maintenance:** - Count published messages from every cluster node: each node adds its own publishes to the stored total instead of the leader overwriting it with its own count (experimental clustering) - Fix "Illegal instruction" crash of the amd64 binaries on CPUs without x86-64-v3 (AVX2/BMI2), by building releases on Ubuntu 24.04 again ([#&#8203;2092](https://github.com/binwiederhier/ntfy/issues/2092), thanks to [@&#8203;frank-bg](https://github.com/frank-bg) for reporting) ### [`v2.33.0`](https://github.com/binwiederhier/ntfy/compare/v2.32.0...v2.33.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.32.0...v2.33.0) ### [`v2.32.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.32.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.31.1...v2.32.0) This release prepares ntfy.sh for a passive cluster node: jobs that write to the shared database run only on the cluster leader, and each database store now records the oldest schema version it works with. Streaming subscriptions also tell proxies not to buffer them. **Features:** - Set the `Incremental: ?1` header ([RFC 10036](https://www.rfc-editor.org/info/rfc10036/)) on streaming subscriptions, so proxies that support it forward messages without buffering ([#&#8203;2056](https://github.com/binwiederhier/ntfy/issues/2056), thanks to [@&#8203;bt90](https://github.com/bt90) for the suggestion) **Bug fixes + maintenance:** - Fix template files (`?tpl=<name>`) ignoring the priority sent with the request when the file has no `priority` key ([#&#8203;2045](https://github.com/binwiederhier/ntfy/issues/2045), thanks to [@&#8203;6801318d8d](https://github.com/6801318d8d) for reporting) - Return HTTP 409 instead of 500 when deleting or changing the password of a user provisioned via `auth-users` through the admin API ([#&#8203;2062](https://github.com/binwiederhier/ntfy/issues/2062), thanks to [@&#8203;daniloamiranda](https://github.com/daniloamiranda) for reporting) - Run the shared-database housekeeping (pruning expired messages, attachments and tokens, web push expiry warnings, writing the published-messages total) on the cluster leader only, so a passive node no longer overwrites the total with its own count (experimental clustering) - Record the oldest schema version each database store still works with, so an older ntfy refuses to start on a database that a newer version migrated in a breaking way, instead of misreading it; none of today's migrations are breaking ([#&#8203;2060](https://github.com/binwiederhier/ntfy/pull/2060)) ### [`v2.31.1`](https://github.com/binwiederhier/ntfy/releases/tag/v2.31.1) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.31.0...v2.31.1) This release fixes the database load that made us roll back ntfy.sh from v2.31.0: reconnecting with `since=<message ID>` read every message of the topic from the database. A new index makes these reconnects cheap, cheaper than in v2.30.0. It also lets ntfy start with a warning on a newer database schema, so later rollbacks need no manual step. **Bug fixes + maintenance:** - Fix reconnects with `since=<message ID>` reading every message of the topic from the database, which overloaded ntfy.sh's database right after the v2.31.0 upgrade; the message cache gets a new index: (topic, published, id) on PostgreSQL, (topic, published, time) on SQLite ([#&#8203;2058](https://github.com/binwiederhier/ntfy/pull/2058)) - Start with a warning instead of failing when the database schema is newer than this version of ntfy supports, so a rollback or a rolling cluster upgrade needs no manual schema change ([#&#8203;2059](https://github.com/binwiederhier/ntfy/pull/2059)) - Web app: Fix the wrong topic opening when subscribed to the same topic on two different servers ([#&#8203;858](https://github.com/binwiederhier/ntfy/issues/858)) - Web app: Fix the "Upgrade to ntfy Pro" banner covering the bottom of a long topic list ([#&#8203;1007](https://github.com/binwiederhier/ntfy/issues/1007)) - Web app: The "Notifications are disabled" and "Notifications are blocked" warnings can now be closed ([#&#8203;1220](https://github.com/binwiederhier/ntfy/issues/1220)) - Web app: Fix a crash when opening the subscribe dialog before the topic list has loaded, e.g. while another tab holds the browser database ([#&#8203;2014](https://github.com/binwiederhier/ntfy/issues/2014), [#&#8203;1881](https://github.com/binwiederhier/ntfy/issues/1881)) **Upgrade notes:** - This release changes the message database schema (version 16 to 17: an index for `since=<message ID>` reconnects). Downgrading to v2.31.0 or earlier afterwards requires setting the version back by hand first: `UPDATE schema_version SET version = 16 WHERE store = 'message'` on PostgreSQL, or `UPDATE schemaVersion SET version = 16 WHERE id = 1` in the SQLite `cache-file`. From this release on, a newer schema only logs a warning ([#&#8203;2059](https://github.com/binwiederhier/ntfy/pull/2059)) ### [`v2.31.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.31.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.30.0...v2.31.0) This release fixes messages that could be lost when a client reconnects, e.g. a phone switching networks, right when messages are published: every server now reads newly written messages from its message cache once a second and sends them to the subscribers that missed them. In load tests with server restarts and crashes, this brought lost messages down from 465 to 2 out of about 615,000. It also adds a `/v1/ready` endpoint for load balancers, and continues the experimental clustering work with node roles. **Features:** - Add `/v1/ready` for load balancers, and the node's role to `/v1/health`; with clustering, a node with no other active node leads right away instead of after a one-minute hold-off ([#&#8203;2050](https://github.com/binwiederhier/ntfy/pull/2050)) - Experimental clustering: add `experimental-cluster-role` to run a `passive` node that never leads and never takes over another node's subscribers, e.g. one that is not behind the load balancer ([#&#8203;2049](https://github.com/binwiederhier/ntfy/pull/2049)) **Bug fixes + maintenance:** - Fix messages lost when a client reconnects before they are written to the message cache, or when a cluster node's fan-out is lost: every node now reads newly written messages once a second and sends them to the subscribers that missed them ([#&#8203;2040](https://github.com/binwiederhier/ntfy/pull/2040)) - Write user stats (messages, emails, calls) as increments, so servers sharing one database add up instead of overwriting each other's counts ([#&#8203;1989](https://github.com/binwiederhier/ntfy/pull/1989)) - Don't add a visitor's anonymous usage to an account's stats when the account takes over that visitor, e.g. right after upgrading ([#&#8203;2041](https://github.com/binwiederhier/ntfy/pull/2041)) **Upgrade notes:** - A reconnect with `since=<message ID>` now also returns the messages published in the same second as that message, so none are skipped when several servers write out of order. The ntfy apps and web app drop these by ID; your own scripts may see a few duplicates ([#&#8203;2040](https://github.com/binwiederhier/ntfy/pull/2040)) - Experimental clustering only: this release changes the cluster's node registry schema (version 1 to 2). Downgrading a clustered server to v2.30.0 afterwards requires setting the version back by hand first: `UPDATE schema_version SET version = 1 WHERE store = 'node_registry'` ([#&#8203;2049](https://github.com/binwiederhier/ntfy/pull/2049)) ### [`v2.30.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.30.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.29.0...v2.30.0) This release links attachments in email notifications, adds SMTP LOGIN auth (e.g. for OVH and Outlook), and fixes the PostgreSQL memory growth that came with v2.29.0. It also ships the first experimental version of clustering: several ntfy servers sharing one PostgreSQL database. Clustering is not ready for production yet. **Features:** - Link attachments in email notifications, including the file name and when the link expires ([#&#8203;672](https://github.com/binwiederhier/ntfy/issues/672), thanks to [@&#8203;merspieler](https://github.com/merspieler) for suggesting) - Support SMTP servers that only offer LOGIN auth (e.g. OVH, Outlook) for sending emails ([#&#8203;930](https://github.com/binwiederhier/ntfy/issues/930)/[#&#8203;1530](https://github.com/binwiederhier/ntfy/pull/1530), thanks to [@&#8203;wunter8](https://github.com/wunter8) for reporting and [@&#8203;santanoce](https://github.com/santanoce) for the initial implementation) - Experimental: run several ntfy servers as one cluster that shares a PostgreSQL database, enabled with `experimental-cluster-listen`; this is not ready for production yet ([#&#8203;2005](https://github.com/binwiederhier/ntfy/pull/2005), [#&#8203;2008](https://github.com/binwiederhier/ntfy/pull/2008), [#&#8203;2012](https://github.com/binwiederhier/ntfy/pull/2012), [#&#8203;2013](https://github.com/binwiederhier/ntfy/pull/2013)) **Bug fixes + maintenance:** - Fix `Dockerfile-build` failing to build: use Go 1.26 and add the `cluster` package ([#&#8203;1962](https://github.com/binwiederhier/ntfy/issues/1962), thanks to [@&#8203;ElectricTea](https://github.com/ElectricTea) for reporting) - Set the `org.opencontainers.image.version` label on release Docker images ([#&#8203;1921](https://github.com/binwiederhier/ntfy/issues/1921)/[#&#8203;1936](https://github.com/binwiederhier/ntfy/pull/1936), thanks to [@&#8203;Plazzmex](https://github.com/Plazzmex) for reporting and [@&#8203;w1977-0](https://github.com/w1977-0) for the fix) - Warn at startup if `attachment-expiry-duration` is longer than `cache-duration`, since attachments never outlive their message ([#&#8203;1053](https://github.com/binwiederhier/ntfy/issues/1053), thanks to [@&#8203;ctschach](https://github.com/ctschach) for reporting) - Fix PostgreSQL memory growth after v2.29.0: write message batches with one fixed `INSERT` for any batch size ([#&#8203;2011](https://github.com/binwiederhier/ntfy/pull/2011)) - CLI: fix `ntfy publish` failing with "invalid header field value" when sending a multi-line message or title along with a file ([#&#8203;1808](https://github.com/binwiederhier/ntfy/issues/1808), thanks to [@&#8203;quantenzitrone](https://github.com/quantenzitrone) for reporting) - Web app: fix an updated message showing next to its old version when the update arrived via the background poll instead of live ([#&#8203;2010](https://github.com/binwiederhier/ntfy/pull/2010)) **Documentation:** - Document recommended PostgreSQL pool settings for busy servers ([#&#8203;2011](https://github.com/binwiederhier/ntfy/pull/2011)) ### [`v2.29.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.29.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.28.0...v2.29.0) This release fixes cache writes under load. On ntfy.sh, hourly cron bursts overwhelmed the batch writer: messages took up to 40s to reach the database (so `poll=1` and `since=` missed them) and publishes stalled. Batches are now written in one statement, publishes no longer wait on the writer, and PostgreSQL connections stay idle instead of reconnecting. **Features:** - Timezone support for delayed notifications via `X-Timezone` header, `timezone` query param or JSON field; the web app sends the browser's timezone ([#&#8203;1967](https://github.com/binwiederhier/ntfy/pull/1967)/[#&#8203;1924](https://github.com/binwiederhier/ntfy/issues/1924), thanks [@&#8203;beemines](https://github.com/beemines)) - RFC 3339 timestamps for delayed notifications, e.g. `At: 2026-12-10T11:00:00-05:00` ([#&#8203;1931](https://github.com/binwiederhier/ntfy/pull/1931), thanks [@&#8203;ALPHACOM-Brehmer](https://github.com/ALPHACOM-Brehmer)) **Bug fixes + maintenance:** - Fix delayed message visibility and stalled publishes under bursts: multi-row `INSERT` per batch, non-blocking publishes (100-batch buffer), and no scheduled-message lookup unless a sequence ID is set ([#&#8203;2006](https://github.com/binwiederhier/ntfy/pull/2006)) - Fix a panic in the account token-update endpoint caused by a concurrent anonymous request racing on the shared visitor; now returns HTTP 401 - Fix messages lost on shutdown: the write queue is flushed and `ntfy serve` handles `SIGTERM`/`SIGINT` gracefully - `pool_max_idle_conns` now defaults to `pool_max_conns`, so PostgreSQL connections are reused instead of re-opened - Fix `since=<message-id>` replaying a topic's full history when the ID wasn't on the read replica yet; it's now resolved on the primary - Use the PostgreSQL row estimate for `messages_cached` instead of a `COUNT(*)` every minute - Detect Markdown when `Content-Type` has parameters or is uppercase ([#&#8203;1995](https://github.com/binwiederhier/ntfy/pull/1995), thanks [@&#8203;cipherprofessor](https://github.com/cipherprofessor)) - Fix the Alertmanager template's bogus `0001-01-01` end time and merged start/end lines ([#&#8203;1946](https://github.com/binwiederhier/ntfy/pull/1946)/[#&#8203;1940](https://github.com/binwiederhier/ntfy/issues/1940), thanks [@&#8203;justadityaraj](https://github.com/justadityaraj) and [@&#8203;deferred](https://github.com/deferred)) - Embed the time zone database (`time/tzdata`) so named time zones work on ARM Docker images and minimal runtimes - Build with Go 1.27; minimum Go version to build is now 1.26 - Groundwork for clustering (node registry, util primitives, reserved config options); not usable yet ([#&#8203;1991](https://github.com/binwiederhier/ntfy/pull/1991), [#&#8203;1997](https://github.com/binwiederhier/ntfy/pull/1997), [#&#8203;2001](https://github.com/binwiederhier/ntfy/pull/2001), [#&#8203;2003](https://github.com/binwiederhier/ntfy/pull/2003)) ### [`v2.28.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.28.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.27.0...v2.28.0) This is a hardening release. A single topic on ntfy.sh was polled continuously with `poll=1` and no `since` cursor, which replays a topic's entire cache on every request. The changes below bound what one replay can cost, close two fields that had no size limit at all, and fix an ordering bug found while digging into it. **Bug fixes + maintenance:** - Fix messages being returned out of publish order when polling or replaying **several topics at once** (`/topic1,topic2/json?poll=1`, [#&#8203;1297](https://github.com/binwiederhier/ntfy/issues/1297)) - Limit the message title to 1 KB and all tags combined to 512 bytes, rejecting larger requests with HTTP 400 (error codes `40057` and `40058`). Neither field had a size limit before, unlike the message body; on ntfy.sh the 99.9th percentile is 212 bytes for titles and 244 for tags - Cap a single cache replay at 10 MB of messages per topic. A poll without a `since` cursor returns a topic's entire cache, which was previously unbounded and could reach tens of megabytes on a busy topic, so one request could allocate that much on the server. The newest messages that fit are kept and a truncated response carries an `X-Messages-Truncated: 1` header - `visitor-attachment-daily-bandwidth-limit` now also covers messages replayed from the message cache by poll requests, not just attachment traffic. A poll without a `since` cursor returns a topic's entire cache, so a topic that is cheap to fill can be re-read for many times its own size; polls beyond the budget are rejected with HTTP 429 (error code 42905) before anything is written. **Note that heavy pollers now consume the same budget as attachment downloads**, so operators serving both may want to raise the limit ### [`v2.27.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.27.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.26.3...v2.27.0) This release lets you sign in with your verified email address instead of your username, which should help if you ever signed up with an email and then forgot which username you picked. It also hardens the message templating engine against a few ways a small template could eat a lot of memory, and it drops the "experimental" label from PostgreSQL support, which has been running ntfy.sh for a while now. I also did a bunch of refactoring in, mostly in preparation for being able to cluster ntfy nodes and scale the service horizontally. It'll be a while until then, ... baby steps. **Security:** - Limit message templates (`Template: yes`) to 32 KB, limit `printf` widths and precisions to below 1000, and limit `indent`/`nindent` to 100 spaces, preventing excessive memory use from a single small template - Exclude secrets from the config hash served to the web app, preventing a rather theoretical information leak **Features:** - Allow logging in with your verified primary email address (in addition to your username), so a password reset no longer leaves you unable to sign in when you only remember the email you signed up with **Bug fixes + maintenance:** - Fix Twilio phone calls and phone number verifications failing silently when Twilio rejected the request, and move the Twilio integration into its own `twilio` package - Move the Prometheus metrics into a dedicated `metrics` package - Message cache databases from ntfy older than v1.10.0 (November 2021) can no longer be migrated; upgrade via an older ntfy version first, or delete the cache database - Fix `user_phone` table in the SQLite user database referencing a dropped table after the v2.14 schema migration; repaired automatically by a new migration ### [`v2.26.3`](https://github.com/binwiederhier/ntfy/releases/tag/v2.26.3) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.26.0...v2.26.3) This is a hotfix release, useful pretty much only for ntfy.sh. It was adds the ability to track abusive IPs mor efficiently, reducing the load on the IP banning services and preventing them from falling behind and leaving abusers unbanned for too long. It works by tracking HTTP errors, and writing out a ban file that fail2ban can read and ban offenders instantly. See [ban-feed](https://docs.ntfy.sh/config/#ban-feed) for details. **Features:** - Add an abuse ban-feed: when enabled via `ban-file`, ntfy tracks a weighted strike budget per visitor and appends abusive IPs to a file that fail2ban can tail and ban on sight (`ban-file`, `ban-window`, `ban-threshold`, `ban-weights`; see [ban-feed](https://docs.ntfy.sh/config/#ban-feed)) ### [`v2.26.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.26.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.25.0...v2.26.0) This release hardens **message templates**, which are now executed with a hard-capped execution timeout. This closes a denial-of-service hole. On the web app side, it adds configurable **date and time formats**, a smoother loading and page-transition experience, and a fix that strips unsafe URL protocols from rendered Markdown. **Security:** - Prevent a CPU denial of service via message templates (`Template: yes`), [#&#8203;1826](https://github.com/binwiederhier/ntfy/pull/1826), thanks to [@&#8203;alanturing881](https://github.com/alanturing881) for reporting) **Features:** - Web app: Add "Date format" and "Time format" settings (Settings -> Appearance), with ISO 8601, day/month/year (slash or dot) and month/day/year date options and a 12-/24-hour clock option, and base the default format on your browser/system locale rather than the selected display language. When logged in, both settings sync across devices via your account ([#&#8203;1647](https://github.com/binwiederhier/ntfy/issues/1647), thanks to [@&#8203;wsw70](https://github.com/wsw70) for reporting) **Bug fixes + maintenance:** - Web app: Smooth transitions and loading animation, remove flickering - Web app: `GET /account` now reads from the primary database instead of a read replica, so the account view no longer shows stale data right after a change when replicas lag behind - Docs: Document the third-party HelmForge Helm chart as a Kubernetes installation option ([#&#8203;1727](https://github.com/binwiederhier/ntfy/issues/1727), thanks to [@&#8203;mberlofa](https://github.com/mberlofa)) - Web app: Strip unsafe URL protocols (`javascript:`, `data:`, ...) from links and images in Markdown-rendered messages, so they no longer trigger an uncaught "React has blocked a javascript: URL" error (thanks to [@&#8203;jvoisin](https://github.com/jvoisin) for reporting) ### [`v2.25.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.25.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.24.0...v2.25.0) This release adds **password reset** via email, and reworks email verification to use durable, link-based magic links (replacing the old in-memory 6-digit codes). Email stays optional at signup; a user can reset their password only once they have a verified "primary" (recovery)email. All of this work is probably not useful for self-hosters, but it hopefully will be useful for me, since I do have to reset accounts on a regular basis. **Security issues:** - Generate access tokens, IDs, and magic-link tokens with a cryptographically secure RNG (`crypto/rand`) instead of a clock-seeded PRNG **Features:** - Add password reset via emailed magic link, with a "Forgot password" link on the login page and a `ntfy user reset-pass` CLI command for admins - Rework email verification to use durable, single-use, expiring magic links instead of in-memory 6-digit codes, and add a "primary" email (used for account recovery and as the `X-Email: yes` target) with verified/unverified state in the account UI - You can now clear/read messages and delete messages with a GET request ([#&#8203;1771](https://github.com/binwiederhier/ntfy/issues/1771), thanks to [@&#8203;lemmi](https://github.com/lemmi) for reporting and to [@&#8203;wunter8](https://github.com/wunter8) for implementing) - Add a reload button to the web app's action bar when running as an installed PWA, which clears the service worker caches and hard-refreshes the app - Add a "Back to app" link to the web app's login, signup, and password-reset pages (alongside the existing links), which previously had no way back to the app **Bug fixes + maintenance:** - `X-Email: yes` (also `true`/`1`) now sends to your primary verified email regardless of the `smtp-sender-verify` setting (previously it was rejected unless verification was enabled); it requires being logged in with a verified address - Grant users full access to their own sync topic (`st_...`) so cross-device subscription sync works under `auth-default-access: deny-all` ([#&#8203;733](https://github.com/binwiederhier/ntfy/issues/733), [#&#8203;1795](https://github.com/binwiederhier/ntfy/pull/1795), thanks to [@&#8203;lmorchard](https://github.com/lmorchard) for the contribution) - Support HTTP (non-TLS) S3-compatible endpoints by preserving the endpoint scheme, e.g. for a local MinIO instance ([#&#8203;1794](https://github.com/binwiederhier/ntfy/pull/1794), [#&#8203;1734](https://github.com/binwiederhier/ntfy/issues/1734), thanks to [@&#8203;sskender](https://github.com/sskender) for the contribution, and [@&#8203;Kernald](https://github.com/Kernald) for reporting) - Stop silently stripping spaces from passwords while typing in the web app's login, signup, and password-reset forms ([#&#8203;1246](https://github.com/binwiederhier/ntfy/issues/1246), thanks to [@&#8203;aldem](https://github.com/aldem) for reporting) - Update web app dependencies, including major-version upgrades to Vite (6 -> 8, now Rolldown-based), Material UI (5 -> 9), and Dexie (3 -> 4) ([#&#8203;1800](https://github.com/binwiederhier/ntfy/pull/1800), [#&#8203;1764](https://github.com/binwiederhier/ntfy/pull/1764), [#&#8203;1767](https://github.com/binwiederhier/ntfy/pull/1767), [#&#8203;1762](https://github.com/binwiederhier/ntfy/pull/1762), [#&#8203;1766](https://github.com/binwiederhier/ntfy/pull/1766), [#&#8203;1765](https://github.com/binwiederhier/ntfy/pull/1765), thanks Dependabot) - Play notification sounds in the web app even when the Notification API is unavailable, e.g. over plain HTTP or in browsers without notification support ([#&#8203;1772](https://github.com/binwiederhier/ntfy/pull/1772), thanks to [@&#8203;mitya12342](https://github.com/mitya12342) for the contribution) - Stop escaping `<`, `>`, and `&` as `\u003c`/`\u003e`/`\u0026` in JSON responses ([#&#8203;1511](https://github.com/binwiederhier/ntfy/issues/1511), [#&#8203;1512](https://github.com/binwiederhier/ntfy/pull/1512), thanks to [@&#8203;wunter8](https://github.com/wunter8) for the contribution) - Fix the web app navbar not reflecting a topic reservation (lock icon, and "Reserve topic" -> "Change reservation"/"Remove reservation" menu) until a page reload, by persisting reservation and display-name changes onto already-subscribed topics during account sync - Reduce the web app's initial bundle size by \~300 KB (\~50 KB gzipped) by lazy-loading the emoji picker dataset and the Markdown renderer, and by importing Material UI icons individually ### [`v2.24.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.24.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.23.0...v2.24.0) The main feature for this release is an in-memory ACL cache (`auth-access-cache`) that can help bring down the read load on the production database. The topic authorization queries are consistently the highest ranking queries on the database, so this will help quite a bit. The current database load is quite low, but I'm expecting it to increase as more users join and use ntfy. **Security issues:** - Fix case-insensitive ACL topic matching on SQLite: an access control rule for `secret` no longer also matches a request for `SECRET`. SQLite's `LIKE` is case-insensitive for ASCII by default. PostgreSQL was unaffected. It's honestly incredible that this issue remained undetected for so long, especially while ntfy.sh was running on SQLite (it now runs on PostgreSQL). **Features:** - Add opt-in in-memory ACL cache (`auth-access-cache`) that serves topic authorization without a database round-trip; off by default, intended for high-volume servers - Add `ntfy --version` flag to the CLI ([#&#8203;1722](https://github.com/binwiederhier/ntfy/issues/1722), [#&#8203;1748](https://github.com/binwiederhier/ntfy/pull/1748), thanks to [@&#8203;sskender](https://github.com/sskender) for the contribution, and [@&#8203;Saucy9607](https://github.com/Saucy9607) for reporting) **Bug fixes + maintenance:** - Extend account token automatically from the PWA service worker, so installed PWAs don't get logged out ([#&#8203;1669](https://github.com/binwiederhier/ntfy/pull/1669), [#&#8203;1203](https://github.com/binwiederhier/ntfy/issues/1203), [#&#8203;1533](https://github.com/binwiederhier/ntfy/issues/1533), thanks to [@&#8203;nihalgonsalves](https://github.com/nihalgonsalves) for the contribution) - Fix `rel` attribute on auto-linked notification URLs so `noreferrer`/`noopener` are actually applied ([#&#8203;1720](https://github.com/binwiederhier/ntfy/pull/1720), thanks to [@&#8203;dmitrylyzo](https://github.com/dmitrylyzo) for the contribution) - Add systemd sandboxing/hardening to the `ntfy.service` unit ([#&#8203;1467](https://github.com/binwiederhier/ntfy/pull/1467), thanks to [@&#8203;Velocifyer](https://github.com/Velocifyer) for the contribution) - Fix `cmd` package build on macOS (darwin) so the server compiles from source ([#&#8203;1631](https://github.com/binwiederhier/ntfy/issues/1631), [#&#8203;1696](https://github.com/binwiederhier/ntfy/pull/1696), thanks to [@&#8203;ShipItAndPray](https://github.com/ShipItAndPray) for the contribution, and [@&#8203;XYenon](https://github.com/XYenon) for reporting) ### [`v2.23.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.23.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.22.0...v2.23.0) **Features:** - Add per-visitor rate limit on new topic creations (`visitor-topic-creation-limit-burst` / `visitor-topic-creation-limit-replenish`, defaults 100 burst / 1m replenish) to mitigate topic-enumeration / squatting attacks that inflate the in-memory topic map **Bug fixes + maintenance:** - Remove `stacktrace-js`, `stacktrace-gps`, `humanize-duration`, and `js-base64` from the web app to reduce dependency and security footprint - Restrict the publish dialog's local file preview to safe image types (png/jpg/gif/webp) to prevent same-origin script execution from blob URLs when previewing a crafted SVG ([GHSA-j8hr-p342-xrmh](https://github.com/binwiederhier/ntfy/security/advisories/GHSA-j8hr-p342-xrmh), thanks to [@&#8203;Venukamatchi](https://github.com/Venukamatchi) for reporting) ### [`v2.22.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.22.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.21.0...v2.22.0) **Bug fixes + maintenance:** - Tighten web push endpoint allow-list regex to prevent SSRF via unanchored pattern matching ([GHSA-w9hq-5jg7-q4j7](https://github.com/binwiederhier/ntfy/security/advisories/GHSA-w9hq-5jg7-q4j7), thanks to [@&#8203;MightyNawaf](https://github.com/MightyNawaf) for reporting) - Fix web app not allowing access tokens to be changed to never expire ([#&#8203;1693](https://github.com/binwiederhier/ntfy/issues/1693)/[#&#8203;1694](https://github.com/binwiederhier/ntfy/pull/1694), thanks to [@&#8203;lastsamurai26](https://github.com/lastsamurai26) for reporting and to [@&#8203;ShipItAndPray](https://github.com/ShipItAndPray) for fixing) - Fix web app crashing on account page for tokens without a last access time ([#&#8203;1651](https://github.com/binwiederhier/ntfy/issues/1651), [#&#8203;1684](https://github.com/binwiederhier/ntfy/issues/1684), thanks to [@&#8203;Pulsar7](https://github.com/Pulsar7) and [@&#8203;rzhli](https://github.com/rzhli) for reporting) ### [`v2.21.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.21.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.20.1...v2.21.0) This release adds the ability to verify email addresses using the `smtp-sender-verify` flag. This is a change that is required because ntfy.sh was used to send unsolicited emails and the AWS SES account was suspended. Going forward, ntfy.sh won't be able to send emails unless the email address was verified ahead of time. **Features:** - Add verified email recipients feature with `smtp-sender-verify` config flag, allowing server admins to require email address verification before sending email notifications ([#&#8203;1681](https://github.com/binwiederhier/ntfy/pull/1681)) ### [`v2.20.1`](https://github.com/binwiederhier/ntfy/releases/tag/v2.20.1) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.20.0...v2.20.1) This is a small bugfix release that only affects high volume S3 backends that struggle with HTTP/2. **Bug fixes + maintenance:** - [Attachments](https://docs.ntfy.sh/config/#attachments): Add `disable_http2=true` S3 URL option to work around HTTP/2 stream errors with DigitalOcean Spaces and other S3-compatible providers ([#&#8203;1678](https://github.com/binwiederhier/ntfy/issues/1678)/[#&#8203;1679](https://github.com/binwiederhier/ntfy/pull/1679)) ### [`v2.20.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.20.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.19.2...v2.20.0) This release is another step towards making it possible to help scale ntfy up and out 🔥! With this release, you can store attachments in an S3-compatible object store as an alterative to the directory. See [attachment store](https://docs.ntfy.sh/config/#attachments) for details. > :warning: **Important note:** With this release, ntfy will take full control over the attachment directory or S3 bucket. Files/objects in the configured `attachment-cache-dir` that match the message ID format (12 chars, matching `^[A-Za-z0-9]{12}$`), and have no entries in the message database will be deleted. **Do not use a directory or S3 bucket as `attachment-cache-dir` that is also used for something else.** > > This is a small behavioral change that was necessary because the old logic often left attachments behind and would not clean them up. Unless you have re-used the attachment directory for anything else (which is hopefully never done), this should not affect you at all. **Features:** - Add S3-compatible object storage as an alternative [attachment store](https://docs.ntfy.sh/config/#attachments) via `attachment-cache-dir` config option ([#&#8203;1656](https://github.com/binwiederhier/ntfy/pull/1656)/[#&#8203;1672](https://github.com/binwiederhier/ntfy/pull/1672)) **Bug fixes + maintenance:** - Reject invalid e-mail addresses (e.g. multiple comma-separated recipients) with HTTP 400 - Add OpenRC init service file ([#&#8203;1650](https://github.com/binwiederhier/ntfy/pull/1650), thanks to [@&#8203;ageru](https://github.com/ageru) for the contribution) ### [`v2.19.2`](https://github.com/binwiederhier/ntfy/releases/tag/v2.19.2) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.19.1...v2.19.2) This is another small bugfix release for PostgreSQL, avoiding races between primary and read replica, as well as to further reduce primary load. **Bug fixes + maintenance:** - Fix race condition in web push subscription causing FK constraint violation when concurrent requests hit the same endpoint - Route authorization query to read-only database replica to reduce primary database load ### [`v2.19.1`](https://github.com/binwiederhier/ntfy/releases/tag/v2.19.1) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.19.0...v2.19.1) This is a bugfix release to avoid PostgreSQL insert failures due to invalid UTF-8 messages. It also fixes `database-url` validation incorrectly rejecting `postgresql://` connection strings. **Bug fixes + maintenance:** - Fix invalid UTF-8 in HTTP headers (e.g. Latin-1 encoded text) causing PostgreSQL insert failures and dropping entire message batches - Fix `database-url` validation rejecting `postgresql://` connection strings ([#&#8203;1657](https://github.com/binwiederhier/ntfy/issues/1657)/[#&#8203;1658](https://github.com/binwiederhier/ntfy/pull/1658)) ### [`v2.19.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.19.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.18.0...v2.19.0) This is a fast-follow release that enables Postgres read replica support. To offload read-heavy queries from the primary database, you can optionally configure one or more read replicas using the `database-replica-urls` option. When configured, non-critical read-only queries (e.g. fetching messages, checking access permissions, etc) are distributed across the replicas using round-robin, while all writes and correctness-critical reads continue to go to the primary. If a replica becomes unhealthy, ntfy automatically falls back to the primary until the replica recovers. **Features:** - Support [PostgreSQL read replicas](https://docs.ntfy.sh/config/#postgresql-experimental) for offloading non-critical read queries via `database-replica-urls` config option ([#&#8203;1648](https://github.com/binwiederhier/ntfy/pull/1648)) - Add interactive [config generator](https://docs.ntfy.sh/config/#config-generator) to the documentation to help create server configuration files ([#&#8203;1654](https://github.com/binwiederhier/ntfy/pull/1654)) **Bug fixes + maintenance:** - Web: Throttle notification sound in web app to play at most once every 2 seconds (similar to [#&#8203;1550](https://github.com/binwiederhier/ntfy/issues/1550), thanks to [@&#8203;jlaffaye](https://github.com/jlaffaye) for reporting) - Web: Add hover tooltips to icon buttons in web app account and preferences pages ([#&#8203;1565](https://github.com/binwiederhier/ntfy/issues/1565), thanks to [@&#8203;jermanuts](https://github.com/jermanuts) for reporting) ### [`v2.18.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.18.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.17.0...v2.18.0) This is the biggest release I've ever done on the server. It's 14,997 added lines of code, and 10,202 lines removed, all from one [pull request](https://github.com/binwiederhier/ntfy/pull/1619) that adds [PostgreSQL support](https://docs.ntfy.sh/config/#postgresql-experimental). The code was written by Cursor and Claude, but reviewed and heavily tested over 2-3 weeks by me. I created comparison documents, went through all queries multiple times and reviewed the logic over and over again. I also did load tests and manual regression tests, which took lots of evenings. ntfy.sh was successfully upgraded to 2.18.0 (though not with Postgres backend yet, as per the [rollout plan](https://github.com/binwiederhier/ntfy/issues/1114#issuecomment-3991245185)). I'm kindly asking the community to test the Postgres support and report back to me if things are working (or not working). There is a [one-off migration tool](https://github.com/binwiederhier/ntfy/tree/main/tools/pgimport) (entirely written by AI) that you can use to migrate. **Features:** - Add experimental [PostgreSQL support](https://docs.ntfy.sh/config/#postgresql-experimental) as an alternative database backend (message cache, user manager, web push subscriptions) via `database-url` config option ([#&#8203;1114](https://github.com/binwiederhier/ntfy/issues/1114)/[#&#8203;1619](https://github.com/binwiederhier/ntfy/pull/1619), thanks to [@&#8203;brettinternet](https://github.com/brettinternet) for reporting) **Bug fixes + maintenance:** - Preserve `<br>` line breaks in HTML-only emails received via SMTP ([#&#8203;690](https://github.com/binwiederhier/ntfy/issues/690), [#&#8203;1620](https://github.com/binwiederhier/ntfy/pull/1620), thanks to [@&#8203;uzkikh](https://github.com/uzkikh) for the fix and to [@&#8203;teastrainer](https://github.com/teastrainer) for reporting) ### [`v2.17.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.17.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.16.0...v2.17.0) This release adds support for templating in the priority field, a new "copy" action button to copy values to the clipboard, a red notification dot on the favicon for unread messages, and an admin-only version endpoint. It also includes several crash fixes, web app improvements, and documentation updates. ❤️ If you like ntfy, **please consider sponsoring me** via [GitHub Sponsors](https://github.com/sponsors/binwiederhier), [Liberapay](https://en.liberapay.com/ntfy/), Bitcoin (`1626wjrw3uWk9adyjCfYwafw4sQWujyjn8`), or by buying a [paid plan via the web app](https://ntfy.sh/app). ntfy will always remain open source. **Features:** - Server: Support templating in the priority field ([#&#8203;1426](https://github.com/binwiederhier/ntfy/issues/1426), thanks to [@&#8203;seantomburke](https://github.com/seantomburke) for reporting) - Server: Add admin-only `GET /v1/version` endpoint returning server version, build commit, and date ([#&#8203;1599](https://github.com/binwiederhier/ntfy/issues/1599), thanks to [@&#8203;crivchri](https://github.com/crivchri) for reporting) - Server/Web: [Support "copy" action](https://docs.ntfy.sh/publish/#copy-to-clipboard) button to copy a value to the clipboard ([#&#8203;1364](https://github.com/binwiederhier/ntfy/issues/1364), thanks to [@&#8203;SudoWatson](https://github.com/SudoWatson) for reporting) - Web: Show red notification dot on favicon when there are unread messages ([#&#8203;1017](https://github.com/binwiederhier/ntfy/issues/1017), thanks to [@&#8203;ad-si](https://github.com/ad-si) for reporting) **Bug fixes + maintenance:** - Server: Fix crash when commit string is shorter than 7 characters in non-GitHub-Action builds ([#&#8203;1493](https://github.com/binwiederhier/ntfy/issues/1493), thanks to [@&#8203;cyrinux](https://github.com/cyrinux) for reporting) - Server: Fix server crash (nil pointer panic) when subscriber disconnects during publish ([#&#8203;1598](https://github.com/binwiederhier/ntfy/pull/1598)) - Server: Fix log spam from `http: response.WriteHeader on hijacked connection` for WebSocket errors ([#&#8203;1362](https://github.com/binwiederhier/ntfy/issues/1362), thanks to [@&#8203;bonfiresh](https://github.com/bonfiresh) for reporting) - Server: Use `slices.Contains` from stdlib to simplify code ([#&#8203;1406](https://github.com/binwiederhier/ntfy/pull/1406), thanks to [@&#8203;tanhuaan](https://github.com/tanhuaan)) - Web: Fix `clear=true` on action buttons not clearing the notification ([#&#8203;1029](https://github.com/binwiederhier/ntfy/issues/1029), thanks to [@&#8203;ElFishi](https://github.com/ElFishi) for reporting) - Web: Fix Markdown message line height to match plain text (1.5 instead of 1.2) ([#&#8203;1139](https://github.com/binwiederhier/ntfy/issues/1139), thanks to [@&#8203;etfz](https://github.com/etfz) for reporting) - Web: Fix long lines (e.g. JSON) being truncated by adding horizontal scroll ([#&#8203;1363](https://github.com/binwiederhier/ntfy/issues/1363), thanks to [@&#8203;v3DJG6GL](https://github.com/v3DJG6GL) for reporting) - Web: Fix Windows notification icon being cut off ([#&#8203;884](https://github.com/binwiederhier/ntfy/issues/884), thanks to [@&#8203;ZhangTianrong](https://github.com/ZhangTianrong) for reporting) - Web: Use full URL in curl example on empty topic pages ([#&#8203;1435](https://github.com/binwiederhier/ntfy/issues/1435), [#&#8203;1535](https://github.com/binwiederhier/ntfy/pull/1535), thanks to [@&#8203;elmatadoor](https://github.com/elmatadoor) for reporting and [@&#8203;jjasghar](https://github.com/jjasghar) for the PR) - Web: Add validation feedback for service URL when adding user ([#&#8203;1566](https://github.com/binwiederhier/ntfy/issues/1566), thanks to [@&#8203;jermanuts](https://github.com/jermanuts)) - Docs: Remove obsolete `version` field from docker-compose examples ([#&#8203;1333](https://github.com/binwiederhier/ntfy/issues/1333), thanks to [@&#8203;seals187](https://github.com/seals187) for reporting and [@&#8203;cyb3rko](https://github.com/cyb3rko) for fixing) - Docs: Fix Kustomize config in installation docs ([#&#8203;1367](https://github.com/binwiederhier/ntfy/issues/1367), thanks to [@&#8203;toby-griffiths](https://github.com/toby-griffiths)) - Docs: Use SVG F-Droid badge and add app store badges to README ([#&#8203;1170](https://github.com/binwiederhier/ntfy/issues/1170), thanks to [@&#8203;PanderMusubi](https://github.com/PanderMusubi) for reporting) ### [`v2.16.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.16.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.15.0...v2.16.0) This release adds support for [updating and deleting notifications](https://docs.ntfy.sh/publish/#updating-deleting-notifications), [heartbeat-style / dead man's switch notifications](https://docs.ntfy.sh/publish/#scheduled-delivery), [custom Twilio call format](https://docs.ntfy.sh/config/#phone-calls), and makes `ntfy serve` work on Windows. It also adds a "New version available" banner to the web app. This one is very exciting, as it brings a lot of highly requested features to ntfy. **Features:** - Support for [updating and deleting notifications](https://docs.ntfy.sh/publish/#updating-deleting-notifications) ([#&#8203;303](https://github.com/binwiederhier/ntfy/issues/303), [#&#8203;1536](https://github.com/binwiederhier/ntfy/pull/1536), [ntfy-android#151](https://github.com/binwiederhier/ntfy-android/pull/151), thanks to [@&#8203;wunter8](https://github.com/wunter8) for the initial implementation) - Support for heartbeat-style / [dead man's switch](https://en.wikipedia.org/wiki/Dead_man%27s_switch) notifications aka [updating and deleting scheduled notifications](https://docs.ntfy.sh/publish/#scheduled-delivery) ([#&#8203;1556](https://github.com/binwiederhier/ntfy/pull/1556), [#&#8203;1142](https://github.com/binwiederhier/ntfy/pull/1142), [#&#8203;954](https://github.com/binwiederhier/ntfy/issues/954), thanks to [@&#8203;GamerGirlandCo](https://github.com/GamerGirlandCo) for the initial implementation) - Configure [custom Twilio call format](https://docs.ntfy.sh/config/#phone-calls) for phone calls ([#&#8203;1289](https://github.com/binwiederhier/ntfy/pull/1289), thanks to [@&#8203;mmichaa](https://github.com/mmichaa) for the initial implementation) - `ntfy serve` now works on Windows, including support for running it as a Windows service ([#&#8203;1104](https://github.com/binwiederhier/ntfy/issues/1104), [#&#8203;1552](https://github.com/binwiederhier/ntfy/pull/1552), originally [#&#8203;1328](https://github.com/binwiederhier/ntfy/pull/1328), thanks to [@&#8203;wtf911](https://github.com/wtf911)) - Web app: "New version available" banner ([#&#8203;1554](https://github.com/binwiederhier/ntfy/pull/1554)) ### [`v2.15.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.15.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.14.0...v2.15.0) This release adds a `require-login` flag to topics, which forces users to log in before they can use the web app. This is useful for self-hosters and will obviously not be enabled on ntfy.sh. **Features:** - Add `require-login` flag to redirect to login page if not logged in ([#&#8203;1434](https://github.com/binwiederhier/ntfy/pull/1434)/[#&#8203;238](https://github.com/binwiederhier/ntfy/issues/238)/[#&#8203;1329](https://github.com/binwiederhier/ntfy/pull/1329), thanks to [@&#8203;theatischbein](https://github.com/theatischbein) for implementing most of this) **Bug fixes + maintenance:** - The official ntfy.sh Debian/Ubuntu repository has moved to [archive.ntfy.sh](https://archive.ntfy.sh) ([#&#8203;1357](https://github.com/binwiederhier/ntfy/issues/1357)/[#&#8203;1401](https://github.com/binwiederhier/ntfy/issues/1401), thanks to [@&#8203;skibbipl](https://github.com/skibbipl) and [@&#8203;lduesing](https://github.com/lduesing) for reporting) - Add mutex around message cache writes to avoid `database locked` errors ([#&#8203;1397](https://github.com/binwiederhier/ntfy/pull/1397), [#&#8203;1391](https://github.com/binwiederhier/ntfy/issues/1391), thanks to [@&#8203;timofej673](https://github.com/timofej673)) - Add build tags `nopayments`, `nofirebase` and `nowebpush` to allow excluding external dependencies, useful for packaging in Debian ([#&#8203;1420](https://github.com/binwiederhier/ntfy/pull/1420), discussion in [#&#8203;1258](https://github.com/binwiederhier/ntfy/issues/1258), thanks to [@&#8203;thekhalifa](https://github.com/thekhalifa) for packaging ntfy for Debian/Ubuntu) - Make copying tokens, phone numbers, etc. possible on HTTP ([#&#8203;1432](https://github.com/binwiederhier/ntfy/pull/1432)/[#&#8203;1408](https://github.com/binwiederhier/ntfy/issues/1408)/[#&#8203;1295](https://github.com/binwiederhier/ntfy/issues/1295), thanks to [@&#8203;EdwinKM](https://github.com/EdwinKM), [@&#8203;xxl6097](https://github.com/xxl6097) for reporting) ### [`v2.14.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.14.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.13.0...v2.14.0) This release adds support for [declarative users](https://docs.ntfy.sh/config/#users-via-the-config), [declarative ACL entries](https://docs.ntfy.sh/config/#acl-entries-via-the-config) and [declarative tokens](https://docs.ntfy.sh/config/#tokens-via-the-config). This allows you to define users, ACL entries and tokens in the config file, which is useful for static deployments or deployments that use a configuration management system. It also adds support for [pre-defined templates](https://docs.ntfy.sh/publish/#pre-defined-templates) and [custom templates](https://docs.ntfy.sh/publish/#custom-templates) for enhanced JSON webhook support, as well as advanced [template functions](https://docs.ntfy.sh/publish/#template-functions) based on the [Sprig](https://github.com/Masterminds/sprig) functions. ❤️ If you like ntfy, **please consider sponsoring me** via [GitHub Sponsors](https://github.com/sponsors/binwiederhier), [Liberapay](https://en.liberapay.com/ntfy/), Bitcoin (`1626wjrw3uWk9adyjCfYwafw4sQWujyjn8`), or by buying a [paid plan via the web app](https://ntfy.sh/app). ntfy will always remain open source. **Features:** - [Declarative users](https://docs.ntfy.sh/config/#users-via-the-config), [declarative ACL entries](https://docs.ntfy.sh/config/#acl-entries-via-the-config) and [declarative tokens](https://docs.ntfy.sh/config/#tokens-via-the-config) ([#&#8203;464](https://github.com/binwiederhier/ntfy/issues/464), [#&#8203;1384](https://github.com/binwiederhier/ntfy/issues/1384), [#&#8203;1413](https://github.com/binwiederhier/ntfy/issues/1413), thanks to pinpox for reporting, to [@&#8203;wunter8](https://github.com/wunter8) for reviewing and implementing parts of it) - [Pre-defined templates](https://docs.ntfy.sh/publish/#pre-defined-templates) and [custom templates](https://docs.ntfy.sh/publish/#custom-templates) for enhanced JSON webhook support ([#&#8203;1390](https://github.com/binwiederhier/ntfy/issues/1390)) - Support of advanced [template functions](https://docs.ntfy.sh/publish/#template-functions) based on the [Sprig](https://github.com/Masterminds/sprig) library ([#&#8203;1121](https://github.com/binwiederhier/ntfy/issues/1121), thanks to [@&#8203;davidatkinsondoyle](https://github.com/davidatkinsondoyle) for reporting, to [@&#8203;wunter8](https://github.com/wunter8) for implementing, and to the Sprig team for their work) ### [`v2.13.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.13.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.12.0...v2.13.0) This is a relatively small release, mainly to support IPv6 and to add more sophisticated proxy header support. Quick reminder that if you like ntfy, **please consider sponsoring us** via [GitHub Sponsors](https://github.com/sponsors/binwiederhier) and [Liberapay](https://en.liberapay.com/ntfy/), or buying a [paid plan via the web app](https://ntfy.sh/app). ntfy will always remain open source. **Features:** - Full [IPv6 support](https://docs.ntfy.sh/config/#ipv6-support) for ntfy and the official ntfy.sh server ([#&#8203;519](https://github.com/binwiederhier/ntfy/issues/519) / [#&#8203;1380](https://github.com/binwiederhier/ntfy/issues/1380) / [#&#8203;4](https://github.com/binwiederhier/ntfy/issues/4)) - Support `X-Client-IP`, `X-Real-IP`, `Forwarded` headers for rate limiting via `proxy-forwarded-header` and `proxy-trusted-hosts` ([#&#8203;1360](https://github.com/binwiederhier/ntfy/issues/1360) / [#&#8203;1252](https://github.com/binwiederhier/ntfy/issues/1252), thanks to [@&#8203;pixitha](https://github.com/pixitha)) - Add STDIN support for `ntfy publish` ([#&#8203;1382](https://github.com/binwiederhier/ntfy/issues/1382), thanks to [@&#8203;srevn](https://github.com/srevn)) **Languages** - Update new languages from Weblate. Thanks to all the contributors! - Added Estonian (Esti), Galician (Galego), Romanian (Română), Slovak (Slovenčina) as new languages to the web app ### [`v2.12.0`](https://github.com/binwiederhier/ntfy/releases/tag/v2.12.0) [Compare Source](https://github.com/binwiederhier/ntfy/compare/v2.11.0...v2.12.0) This is mainly a maintenance release that updates dependencies, though since it's been over a year, there are a few new features and bug fixes as well. Thanks to everyone who contributed to this release, and special thanks to [@&#8203;wunter8](https://github.com/wunter8) for his continued user support in Discord/Matrix/GitHub! You rock, man! **Features:** - Add username/password auth to email publishing ([#&#8203;1164](https://github.com/binwiederhier/ntfy/pull/1164), thanks to [@&#8203;bishtawi](https://github.com/bishtawi)) - Write VAPID keys to file in `ntfy webpush --output-file` ([#&#8203;1138](https://github.com/binwiederhier/ntfy/pull/1138), thanks to [@&#8203;nogweii](https://github.com/nogweii)) - Add Docker major/minor version to image tags ([#&#8203;1271](https://github.com/binwiederhier/ntfy/pull/1271), thanks to [@&#8203;RoboMagus](https://github.com/RoboMagus)) - Add `latest` subscription param for grabbing just the most recent message ([#&#8203;1216](https://github.com/binwiederhier/ntfy/pull/1216), thanks to [@&#8203;wunter8](https://github.com/wunter8)) - Allow using `NTFY_PASSWORD_HASH` in `ntfy user` command instead of raw password ([#&#8203;1340](https://github.com/binwiederhier/ntfy/pull/1340), thanks to [@&#8203;Tom-Hubrecht](https://github.com/Tom-Hubrecht) for implementing) - You can now change passwords via `v1/users` API ([#&#8203;1267](https://github.com/binwiederhier/ntfy/pull/1267), thanks to [@&#8203;wunter8](https://github.com/wunter8) for implementing) - Make WebPush subscription warning/expiry configurable, increase default to 55/60 days ([#&#8203;1212](https://github.com/binwiederhier/ntfy/pull/1212), thanks to [@&#8203;KuroSetsuna29](https://github.com/KuroSetsuna29)) - Support [systemd user service](https://docs.ntfy.sh/subscribe/cli/#using-the-systemd-service) `ntfy-client.service` ([#&#8203;1002](https://github.com/binwiederhier/ntfy/pull/1002), thanks to [@&#8203;dandersch](https://github.com/dandersch)) **Bug fixes + maintenance:** - Security updates for dependencies and Docker images ([#&#8203;1341](https://github.com/binwiederhier/ntfy/pull/1341)) - Upgrade to Vite 6 ([#&#8203;1342](https://github.com/binwiederhier/ntfy/pull/1342), thanks Dependabot) - Fix iOS delivery issues for read-protected topics ([#&#8203;1207](https://github.com/binwiederhier/ntfy/pull/1287), thanks a lot to [@&#8203;barart](https://github.com/barart)!) - Add `Date` header to outgoing emails to avoid rejection ([#&#8203;1141](https://github.com/binwiederhier/ntfy/pull/1141), thanks to [@&#8203;pcouy](https://github.com/pcouy)) - Fix IP address parsing when behind a proxy ([#&#8203;1266](https://github.com/binwiederhier/ntfy/pull/1266), thanks to [@&#8203;mmatuska](https://github.com/mmatuska)) - Make sure UnifiedPush messages are not treated as attachments ([#&#8203;1312](https://github.com/binwiederhier/ntfy/pull/1312), thanks to [@&#8203;vkrause](https://github.com/vkrause)) - Add OCI image version to Docker image ([#&#8203;1307](https://github.com/binwiederhier/ntfy/pull/1307), thanks to [@&#8203;jlssmt](https://github.com/jlssmt)) - WebSocket returning incorrect HTTP error code ([#&#8203;1338](https://github.com/binwiederhier/ntfy/pull/1338) / [#&#8203;1337](https://github.com/binwiederhier/ntfy/pull/1337), thanks to [@&#8203;wunter8](https://github.com/wunter8) for debugging and implementing) - Make Markdown in the web app scrollable horizontally ([#&#8203;1262](https://github.com/binwiederhier/ntfy/pull/1262), thanks to [@&#8203;rake5k](https://github.com/rake5k) for fixing) - Make sure WebPush subscription topics are actually deleted (no ticket) - Increase the number of access tokens per user to 60 ([#&#8203;1308](https://github.com/binwiederhier/ntfy/issues/1308)) - Allow specifying `cache` and `firebase` via JSON publishing ([#&#8203;1119](https://github.com/binwiederhier/ntfy/issues/1119)/[#&#8203;1123](https://github.com/binwiederhier/ntfy/pull/1123), thanks to [@&#8203;stendler](https://github.com/stendler)) **Documentation:** - Lots of new integrations and projects. Amazing! - [ntfy-me-mcp](https://github.com/gitmotion/ntfy-me-mcp) - [UptimeObserver](https://uptimeobserver.com) - [alertmanager-ntfy-relay](https://github.com/therobbielee/alertmanager-ntfy-relay) - [Monibot](https://monibot.io/) - [Daily_Fact_Ntfy](https://github.com/thiswillbeyourgithub/Daily_Fact_Ntfy) - [EasyMorph](https://help.easymorph.com/doku.php?id=transformations:sendntfymessage) - [ntfy-run](https://github.com/quantum5/ntfy-run) - [Clipboard IO](https://github.com/jim3692/clipboard-io) - [ntfy-me-mcp](https://github.com/gitmotion/ntfy-me-mcp) - [InvaderInformant](https://github.com/patricksthannon/InvaderInformant) - Various docs updates ([#&#8203;1161](https://github.com/binwiederhier/ntfy/pull/1161), thanks to [@&#8203;OneWeekNotice](https://github.com/OneWeekNotice)) - Typo in config docs ([#&#8203;1177](https://github.com/binwiederhier/ntfy/pull/1177), thanks to [@&#8203;hoho4190](https://github.com/hoho4190)) - Typo in CLI docs ([#&#8203;1172](https://github.com/binwiederhier/ntfy/pull/1172), thanks to [@&#8203;anirvan](https://github.com/anirvan)) - Correction about MacroDroid ([#&#8203;1137](https://github.com/binwiederhier/ntfy/pull/1137), thanks to [@&#8203;ShlomoCode](https://github.com/ShlomoCode)) - Note about fail2ban in Docker ([#&#8203;1175](https://github.com/binwiederhier/ntfy/pull/1175)), thanks to [@&#8203;Measurity](https://github.com/Measurity)) - Lots of other tiny docs updates, thanks to everyone who contributed! **Languages** - Update new languages from Weblate. Thanks to all the contributors! - Added Tamil (தமிழ்) as a new language to the web app </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Amsterdam) - Branch creation - "before 6am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBzIl19-->
chore(deps): update docker non-major
Some checks failed
review-gate / sweep (pull_request) Has been cancelled
kreative-pr/review reviewed: 0 finding(s)
build / skills (pull_request) Successful in 17s
build / web (pull_request) Successful in 21s
build / runner-windows (pull_request) Successful in 21s
fresh-install / fresh-install (pull_request) Successful in 12s
build / server (pull_request) Successful in 4m17s
build / runner (pull_request) Successful in 3m44s
lint / megalinter (pull_request) Successful in 3m6s
build / web-live (pull_request) Successful in 4m7s
review-gate / gate review findings are all handled
kk / all-checks All 10 checks passed
fc3df31dd9
Collaborator

Title

chore(deps): update docker non-major


PR Type

Dependencies


Description

  • Update Python and Rust Docker base images to latest minor versions.

  • Upgrade ntfy service image from v2.11.0 to v2.37.2.

  • Align tooling environments across anatomy, motion, and macOS builds.


Diagram Walkthrough

flowchart LR
  A["Base Images"] -->|"Python 3.15"| B["Anatomy Service"]
  A -->|"Python 3.15"| C["Motion Service"]
  A -->|"Rust 1.99"| D["macOS Build"]
  E["ntfy v2.37.2"] -.->|"Notification"| F["System Events"]

File Walkthrough

Relevant files
Dependencies
Dockerfile
Upgrade Python base image to version 3.15 slim                     

tools/anatomy/Dockerfile

  • Updated base image from python:3.12-slim to python:3.15-slim.
  • No other logic or dependency changes in the file.
+1/-1     
Dockerfile
Upgrade Python base image to version 3.15 slim                     

tools/motion/Dockerfile

  • Updated base image from python:3.10-slim to python:3.15-slim.
  • Maintained existing PyTorch and library versions for compatibility.
+1/-1     
docker-compose.yml
Upgrade ntfy notification service to version 2.37.2           

docker-compose.yml

  • Updated ntfy service image tag from v2.11.0 to v2.37.2.
  • No changes to environment variables or command arguments.
+1/-1     
Dockerfile.macos
Upgrade Rust base image to version 1.99 bookworm                 

release/Dockerfile.macos

  • Updated Rust base image from rust:1.85-bookworm to rust:1.99-bookworm.
  • Preserved osxcross and ubuntu base images unchanged.
+1/-1     

## Title <!-- pr-agent:describe:persistent --> chore(deps): update docker non-major ___ ### **PR Type** Dependencies ___ ### **Description** - Update Python and Rust Docker base images to latest minor versions. - Upgrade ntfy service image from v2.11.0 to v2.37.2. - Align tooling environments across anatomy, motion, and macOS builds. ___ ### Diagram Walkthrough ```mermaid flowchart LR A["Base Images"] -->|"Python 3.15"| B["Anatomy Service"] A -->|"Python 3.15"| C["Motion Service"] A -->|"Rust 1.99"| D["macOS Build"] E["ntfy v2.37.2"] -.->|"Notification"| F["System Events"] ``` <details> <summary><h3> File Walkthrough</h3></summary> <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Dependencies</strong></td><td><table> <tr> <td> <details> <summary><strong>Dockerfile</strong><dd><code>Upgrade Python base image to version 3.15 slim</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> tools/anatomy/Dockerfile <ul><li>Updated base image from <code>python:3.12-slim</code> to <code>python:3.15-slim</code>.<br> <li> No other logic or dependency changes in the file.</ul> </details> </td> <td><a href="https://git.kreative-kompas.com/khyretos/kreative-kompanion/src/branch/renovate/docker-non-major/tools/anatomy/Dockerfile">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>Dockerfile</strong><dd><code>Upgrade Python base image to version 3.15 slim</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> tools/motion/Dockerfile <ul><li>Updated base image from <code>python:3.10-slim</code> to <code>python:3.15-slim</code>.<br> <li> Maintained existing PyTorch and library versions for compatibility.</ul> </details> </td> <td><a href="https://git.kreative-kompas.com/khyretos/kreative-kompanion/src/branch/renovate/docker-non-major/tools/motion/Dockerfile">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>docker-compose.yml</strong><dd><code>Upgrade ntfy notification service to version 2.37.2</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> docker-compose.yml <ul><li>Updated ntfy service image tag from <code>v2.11.0</code> to <code>v2.37.2</code>.<br> <li> No changes to environment variables or command arguments.</ul> </details> </td> <td><a href="https://git.kreative-kompas.com/khyretos/kreative-kompanion/src/branch/renovate/docker-non-major/docker-compose.yml">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>Dockerfile.macos</strong><dd><code>Upgrade Rust base image to version 1.99 bookworm</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> release/Dockerfile.macos <ul><li>Updated Rust base image from <code>rust:1.85-bookworm</code> to <code>rust:1.99-bookworm</code>.<br> <li> Preserved osxcross and ubuntu base images unchanged.</ul> </details> </td> <td><a href="https://git.kreative-kompas.com/khyretos/kreative-kompanion/src/branch/renovate/docker-non-major/release/Dockerfile.macos">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> </details> ___
Owner

/review

/review
Collaborator

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🔒 No security concerns identified
⚡ No major issues detected
## PR Reviewer Guide 🔍 <!-- pr-agent:review:full --> Here are some key observations to aid the review process: <table> <tr><td>🔒&nbsp;<strong>No security concerns identified</strong></td></tr> <tr><td>⚡&nbsp;<strong>No major issues detected</strong></td></tr> </table>

🧹 Lint report · ✅ all 25 checks clean

Errors below fail this check.

✅ Clean: black, checkstyle, djlint, editorconfig-checker, git_diff, gitleaks, grype, hadolint, htmlhint, isort, jsonlint, markdownlint, npm-groovy-lint, pmd, prettier, prettier, ruff, secretlint, shellcheck, shfmt, stylelint, trivy, trufflehog, xmllint, yamllint

MegaLinter on soucouyant · full logs in the Actions run · comment /improve for AI fix suggestions

<!-- kk-lint --> ## 🧹 Lint report · ✅ all 25 checks clean Errors below fail this check. ✅ Clean: black, checkstyle, djlint, editorconfig-checker, git_diff, gitleaks, grype, hadolint, htmlhint, isort, jsonlint, markdownlint, npm-groovy-lint, pmd, prettier, prettier, ruff, secretlint, shellcheck, shfmt, stylelint, trivy, trufflehog, xmllint, yamllint <sub>MegaLinter on soucouyant · full logs in the Actions run · comment <code>/improve</code> for AI fix suggestions</sub>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
khyretos/kreative-kompanion!332
No description provided.