Skip to content

PostgreSQL: make commitNewEntries resilient to duplicate keys - #9231

Merged
Alkarex merged 3 commits into
FreshRSS:edgefrom
aligundogar:fix/pg-commit-new-entries-duplicate-keys
Aug 26, 2026
Merged

Alkarex merged 3 commits into
FreshRSS:edgefrom
aligundogar:fix/pg-commit-new-entries-duplicate-keys

Conversation

@aligundogar

Copy link
Copy Markdown
Contributor

Problem

On PostgreSQL, commitNewEntries() can fail permanently, leaving all new articles stuck in _entrytmp while the UI/API shows nothing newer than the day the failure started — even though feed fetching itself keeps working.

We hit this in production (FreshRSS 1.26.0, PostgreSQL 16, ~3200 feeds, nb_parallel_refresh = 10, WebSub enabled):

ERROR:  duplicate key value violates unique constraint "…_entry_id_feed_guid_key"
ERROR:  current transaction is aborted, commands ignored until end of transaction block

Within ~8 days the temporary table grew to 213,000+ articles that never reached _entry:

Table Rows
_entrytmp (stuck backlog) 211,587 → 213,247
newest article visible in UI/API frozen at the day of first failure

Root cause

The DO $$ … $$ block in commitNewEntries() uses a plain INSERT INTO _entry … SELECT … FROM _entrytmp WHERE NOT EXISTS (…), so a single duplicate (id_feed, guid) — or duplicate generated id — aborts the entire transaction, and the trailing DELETE FROM _entrytmp WHERE id <= maxrank never executes. Every subsequent refresh retries the whole ever-growing batch under the same conditions.

Two realistic sources of duplicates:

  1. Concurrent commits: multiple parallel refresh workers and WebSub (pshb.php) handlers can call commitNewEntries() at the same time on the shared _entrytmp. Under READ COMMITTED, two transactions evaluate NOT EXISTS against the same snapshot; the loser then hits the unique index after the winner commits.
  2. Feeds with non-unique GUIDs within one update batch (as documented in addEntry: Insertion of articles in _entrytmp table raise exception because of key constraint (id_feed, guid) #1614).

MySQL and SQLite adapters already tolerate this via INSERT IGNORE / INSERT OR IGNORE; only PostgreSQL hard-fails. The related TODO ("Update to PostgreSQL 9.5+ syntax with ON CONFLICT DO NOTHING") has been in this file for years.

Fix

  • Deduplicate each batch with SELECT DISTINCT ON (id_feed, guid) … ORDER BY date DESC — keeps the newest version of a given GUID, matching the intent discussed in addEntry: Insertion of articles in _entrytmp table raise exception because of key constraint (id_feed, guid) #1614 ("keep the newest article when there is no unique GUID").
  • Add ON CONFLICT DO NOTHING so losing races and already-known GUIDs become harmless no-ops instead of aborted transactions. This also covers primary-key collisions between concurrent committers.
  • ID generation semantics are unchanged: (maxrank - nb) + row_number() OVER (ORDER BY date, id) still produces IDs ≤ MAX(id) OF _entrytmp, ordered by publication date.

Validation

  • php -l clean.
  • Executed the exact new statement against the live production database inside a transaction followed by ROLLBACK (dry run): moved 213,247 articles from _entrytmp into _entry, left 0 rows behind, no constraint violations, completed in seconds.

Fixes scenarios reported in #1610 and #1614.

@aligundogar
aligundogar force-pushed the fix/pg-commit-new-entries-duplicate-keys branch from e2303f5 to d33b321 Compare August 23, 2026 12:41
@Alkarex Alkarex added this to the 1.30.0 milestone Aug 23, 2026
@Alkarex

Alkarex commented Aug 23, 2026

Copy link
Copy Markdown
Member

I have not looked into the code in details yet, but now that we require PostgreSQL 10+, supporting e.g. CONFLICT DO NOTHING, it should be possible to reduce the code a lot, to something similar to our MySQL version

Concurrent commits - from parallel refresh workers or WebSub pushes -
as well as feeds providing duplicate GUIDs could make the whole
entrytmp-to-entry transaction fail with:

  ERROR: duplicate key value violates unique constraint "..._entry_id_feed_guid_key"
  ERROR: current transaction is aborted, commands ignored until end of transaction block

Because the trailing DELETE FROM `\_entrytmp` then never runs, every new
article stays stuck in `\_entrytmp` forever and no fresh content appears
in the UI/API, even though feed fetching keeps working. In production
this grew to 200000+ stuck articles within days on a busy instance.

Use ON CONFLICT DO NOTHING so that losing races or re-inserted GUIDs
become harmless no-ops instead of aborted transactions, mirroring the
INSERT IGNORE / INSERT OR IGNORE semantics already used by the MySQL
and SQLite adapters. maxrank is computed once up-front so that the
trailing DELETE cannot remove rows concurrently added to `\_entrytmp`
after the INSERT.

References FreshRSS#1610 FreshRSS#1614
@aligundogar
aligundogar force-pushed the fix/pg-commit-new-entries-duplicate-keys branch from d33b321 to e612981 Compare August 24, 2026 16:06
@aligundogar

Copy link
Copy Markdown
Contributor Author

Thanks @Alkarex, agreed — pushed e612981 simplifying to the same shape as the MySQL version:

  • Dropped the DISTINCT ON pre-dedup entirely. Intra-batch duplicate GUIDs (and losing races) are now simply skipped by ON CONFLICT DO NOTHING, matching the INSERT IGNORE / INSERT OR IGNORE semantics of the other adapters, where the oldest row wins too.
  • One deliberate difference from a literal two-statement translation: the DO $$ … $$ block stays, because maxrank must be computed once up-front. Otherwise a row concurrently pushed into _entrytmp by another refresh worker or WebSub handler between the INSERT and the trailing DELETE would be deleted without ever having been committed into _entry.

Validation: php -l clean; executed this exact statement against a live production database inside BEGIN … ROLLBACK (dry run) — no errors, no constraint violations. The previous variant was additionally validated against a 213k-row stuck backlog the same way.

References #1610 #1614

@Alkarex

Alkarex commented Aug 24, 2026

Copy link
Copy Markdown
Member

I have reduced a bit the diff. Double-check welcome

@Alkarex
Alkarex merged commit a9a5856 into FreshRSS:edge Aug 26, 2026
1 check passed
doonga pushed a commit to greyrock-labs/home-ops that referenced this pull request Sep 9, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [freshrss/freshrss](https://freshrss.org/) ([source](https://github.com/FreshRSS/FreshRSS)) | minor | `1.29.1-alpine` → `1.30.0-alpine` |

---

### Release Notes

<details>
<summary>FreshRSS/FreshRSS (freshrss/freshrss)</summary>

### [`v1.30.0`](https://github.com/FreshRSS/FreshRSS/blob/HEAD/CHANGELOG.md#2026-09-09-FreshRSS-1300)

[Compare Source](FreshRSS/FreshRSS@1.29.1...1.30.0)

- Security
  - 💥 Disallow access to local networks such as `127.0.0.1` by default, for security reasons (breaking change) [#&#8203;8400](FreshRSS/FreshRSS#8400),
    [#&#8203;9195](FreshRSS/FreshRSS#9195)
    - Selected local networks can be allowed under *System configuration* or using the `INTERNAL_HOST_ALLOWLIST` environment variable
    - Passing `*` allows all networks like before (unsafe)
  - Improve SSRF mitigations by restricting `CURLOPT_PROXY` [#&#8203;8950](FreshRSS/FreshRSS#8950)
  - Fix auth CSRFs (login and register actions) [#&#8203;9171](FreshRSS/FreshRSS#9171)
  - Log invalid challenge and ignore JSON error during login [#&#8203;9278](FreshRSS/FreshRSS#9278)
  - Disallow fetching of non remote URI [#&#8203;9215](FreshRSS/FreshRSS#9215)
  - Only allow HTTP/HTTPS schemes for enclosure and thumbnail URLs [#&#8203;9272](FreshRSS/FreshRSS#9272)
  - Fix access control in `rss` and `opml` actions [#&#8203;8912](FreshRSS/FreshRSS#8912)
  - Refactor to use CSRF field directly instead of borrowing it from a form [#&#8203;9169](FreshRSS/FreshRSS#9169), [#&#8203;9205](FreshRSS/FreshRSS#9205)
  - Cleaner limit anonymous mode to default user [#&#8203;9235](FreshRSS/FreshRSS#9235)
  - Fix HTML ingestions in templates [#&#8203;9146](FreshRSS/FreshRSS#9146), [#&#8203;9170](FreshRSS/FreshRSS#9170)
  - Fix bad header filtering bypass [#&#8203;8964](FreshRSS/FreshRSS#8964)
  - Sanitize all fields during JSON import [#&#8203;9168](FreshRSS/FreshRSS#9168)
  - Gate `greader` (JSON) user query share format behind *Share by OPML* [#&#8203;9248](FreshRSS/FreshRSS#9248)
  - Public OPML should not contain cURL parameters [#&#8203;9070](FreshRSS/FreshRSS#9070)
  - Ignore security-relevant OPML attributes for dynamic OPML sources [#&#8203;9276](FreshRSS/FreshRSS#9276)
  - Strip feed URL credentials from anonymous user query output [#&#8203;9246](FreshRSS/FreshRSS#9246)
  - Set limits for regex during search [#&#8203;8913](FreshRSS/FreshRSS#8913)
  - Fix path disclosure in cache error message [#&#8203;9206](FreshRSS/FreshRSS#9206)
  - Limit the length and parentheses nesting depth of a search query [#&#8203;9277](FreshRSS/FreshRSS#9277)
  - Use timing-safe comparison for tokens [#&#8203;8945](FreshRSS/FreshRSS#8945)
  - Use `hash_equals()` for GReader API token comparison [#&#8203;9183](FreshRSS/FreshRSS#9183)
  - Mailer: allow disabling SMTPAutoTLS via config [#&#8203;9026](FreshRSS/FreshRSS#9026)
  - Warn during install if document root does not point to `./p/` [#&#8203;9010](FreshRSS/FreshRSS#9010)
  - Stop the unread-count poller after the session ends [#&#8203;9065](FreshRSS/FreshRSS#9065)
  - Add remote IP address to warning on form login [#&#8203;8942](FreshRSS/FreshRSS#8942)
  - Pin the GitHub actions using SHA [#&#8203;9200](FreshRSS/FreshRSS#9200)
  - Harden cache and SimplePie cache deserialization [#&#8203;9273](FreshRSS/FreshRSS#9273)
- SimplePie
  - Security: Disallow `javascript:` URI scheme (protocol) [#&#8203;8263](FreshRSS/FreshRSS#8263)
  - Fix wrong player parent logic leading to invalid type [#&#8203;8893](FreshRSS/FreshRSS#8893), [simplepie#978](simplepie/simplepie#978)
  - Consistently enable `XML_OPTION_PARSE_HUGE` [#&#8203;8894](FreshRSS/FreshRSS#8894), [simplepie#977](simplepie/simplepie#977)
  - Fix null warning in IRI for PHP 8.5+ [#&#8203;8918](FreshRSS/FreshRSS#8918), [simplepie#979](simplepie/simplepie#979)
  - Fix sanitizer whitelist stripping order [#&#8203;9066](FreshRSS/FreshRSS#9066)
  - Show only one representation per `media:group` [#&#8203;9009](FreshRSS/FreshRSS#9009)
  - Bump upstream SimplePie [#&#8203;8947](FreshRSS/FreshRSS#8947)
- Features
  - Filter global view feed list by state and search [#&#8203;9132](FreshRSS/FreshRSS#9132)
    - Use global view when searching from subscription page [#&#8203;9144](FreshRSS/FreshRSS#9144)
  - New option to hide badges showing number of unread articles (*Phantom Obligation*) [#&#8203;8844](FreshRSS/FreshRSS#8844)
  - Refresh only feeds in the current view [#&#8203;9060](FreshRSS/FreshRSS#9060)
  - Offer to add a prefix when resharing user labels [#&#8203;9236](FreshRSS/FreshRSS#9236)
  - Add log search to the logs page [#&#8203;9059](FreshRSS/FreshRSS#9059)
  - Add configurable `log_level` system setting [#&#8203;9185](FreshRSS/FreshRSS#9185)
  - New option to keep or not the custom sort order when navigating between categories and feeds [#&#8203;8969](FreshRSS/FreshRSS#8969)
  - New per-feed option to show or hide enclosures (attachments) [#&#8203;9015](FreshRSS/FreshRSS#9015)
  - Detect JSON feeds from URLs containing `json` [#&#8203;9058](FreshRSS/FreshRSS#9058)
    - Also when subscribing via the API [#&#8203;9167](FreshRSS/FreshRSS#9167)
  - Order categories during OPML import/export according to position [#&#8203;9203](FreshRSS/FreshRSS#9203)
  - OPML: include each feed’s refresh interval (TTL) in export/import [#&#8203;8982](FreshRSS/FreshRSS#8982)
  - Log failed CSS content retrieval (Web scraping) [#&#8203;9077](FreshRSS/FreshRSS#9077)
  - Allow providing a category when adding a feed by bookmarklet [#&#8203;9047](FreshRSS/FreshRSS#9047)
  - Add LinkAce sharing service [#&#8203;9024](FreshRSS/FreshRSS#9024)
  - Add Nextcloud Bookmarks sharing service [#&#8203;9032](FreshRSS/FreshRSS#9032)
- Bug fixing
  - Fix lost elements while parsing search query [#&#8203;8884](FreshRSS/FreshRSS#8884)
  - Fix “mark as read older than…” widening the active search [#&#8203;9173](FreshRSS/FreshRSS#9173)
  - Fix saving user queries [#&#8203;9190](FreshRSS/FreshRSS#9190)
  - Fix SQL errors breaking some regex searches with MySQL / MariaDB [#&#8203;9036](FreshRSS/FreshRSS#9036)
  - Fix marking filtered label articles as read in SQLite and PostgreSQL [#&#8203;9264](FreshRSS/FreshRSS#9264)
  - Fix tagging an already-tagged entry on PostgreSQL raising a SQL error instead of being a no-op [#&#8203;9136](FreshRSS/FreshRSS#9136)
  - PostgreSQL: make committing new entries resilient to duplicate keys [#&#8203;9231](FreshRSS/FreshRSS#9231)
  - Preserve negative timezone offsets in date intervals [#&#8203;9071](FreshRSS/FreshRSS#9071)
  - Fix feed dropdown bugs due to hash desync [#&#8203;8949](FreshRSS/FreshRSS#8949)
  - Fix slider not reinitializing after form submit [#&#8203;8973](FreshRSS/FreshRSS#8973)
  - Minz: Skip loading duplicated JS/CSS assets [#&#8203;9000](FreshRSS/FreshRSS#9000)
  - Respect `simplepie_syslog_enabled` for the *uses cache* logs [#&#8203;8986](FreshRSS/FreshRSS#8986)
  - Fix statistics repartition averages [#&#8203;8996](FreshRSS/FreshRSS#8996)
  - Fix article hover date visibility [#&#8203;8997](FreshRSS/FreshRSS#8997)
  - Keep search and state filters when marking articles as read [#&#8203;9007](FreshRSS/FreshRSS#9007)
  - Fix `--db-prefix` silently drops following CLI flags [#&#8203;9042](FreshRSS/FreshRSS#9042)
  - Remove stale dynamic favicon links [#&#8203;9127](FreshRSS/FreshRSS#9127)
  - Fix desync between favicon and title unread counters [#&#8203;9262](FreshRSS/FreshRSS#9262)
  - Fix outdated username length hint on registration and install forms [#&#8203;9013](FreshRSS/FreshRSS#9013)
  - Redirect away from wrong URL paths [#&#8203;9075](FreshRSS/FreshRSS#9075)
  - Fix auto-share shortcut on first use [#&#8203;9072](FreshRSS/FreshRSS#9072)
  - Exclude hidden feeds from global view counts [#&#8203;9152](FreshRSS/FreshRSS#9152)
  - Fix only the last `<media:credit>` being written to the RSS output [#&#8203;9174](FreshRSS/FreshRSS#9174)
- CLI
  - New `cli/reconfigure-user.php` to read/write per-user config attributes [#&#8203;8873](FreshRSS/FreshRSS#8873)
  - Report new articles count per feed in `app/actualize_script.php` output [#&#8203;8948](FreshRSS/FreshRSS#8948)
  - Output a diagnostic when the `cli/health.php` check fails [#&#8203;8980](FreshRSS/FreshRSS#8980)
- API
  - Add a warning message to the API password section and a log warning when a client uses GET instead of recommended POST [#&#8203;8845](FreshRSS/FreshRSS#8845)
  - Fever API: log the client IP address on authentication failure [#&#8203;8981](FreshRSS/FreshRSS#8981)
  - WebSub: ignore HTTP/HTTPS scheme difference in Self URL comparison [#&#8203;9005](FreshRSS/FreshRSS#9005)
- Deployment
  - Docker alternative image updated to Alpine 3.24 with PHP 8.5.7 and Apache 2.4.67 [#&#8203;8916](FreshRSS/FreshRSS#8916)
  - Start supporting PHP 8.6+
    - Docker dev `:newest` with PHP 8.6 [#&#8203;9155](FreshRSS/FreshRSS#9155)
  - Docker: attach provenance and SBOM attestations to the published image [#&#8203;9150](FreshRSS/FreshRSS#9150)
  - Apache use only `CONN_REMOTE_ADDR` in logs when `mod_remoteip` is available, for compatibility with LiteSpeed Web Server [#&#8203;8890](FreshRSS/FreshRSS#8890)
  - Fix `.dockerignore` being ignored during build in CI [#&#8203;9001](FreshRSS/FreshRSS#9001)
  - New `ENABLE_ACCESS_LOG` environment variable to disable access logs [#&#8203;9191](FreshRSS/FreshRSS#9191)
  - Check GMP during 32-bit installation [#&#8203;9046](FreshRSS/FreshRSS#9046)
  - Improve actualize mutex to allow multiple instances [#&#8203;9045](FreshRSS/FreshRSS#9045)
  - OIDC: redirect to a default URL on expired auth state instead of 400 [#&#8203;9143](FreshRSS/FreshRSS#9143)
- UI
  - Always jump article to top when header is offscreen, also when *Stick the article to the top when opened* is disabled [#&#8203;8870](FreshRSS/FreshRSS#8870)
  - Move article header/footer options (feed title, authors and date, icons position, tags) from *Reading* to *Display* configuration [#&#8203;9139](FreshRSS/FreshRSS#9139)
  - Move disable button before remove button in user management [#&#8203;8944](FreshRSS/FreshRSS#8944)
  - Keep scroll position of slider after form submit [#&#8203;8974](FreshRSS/FreshRSS#8974)
  - Group export feeds by category [#&#8203;9079](FreshRSS/FreshRSS#9079), [#&#8203;9154](FreshRSS/FreshRSS#9154)
  - Sort feed names with locale-aware collation [#&#8203;8985](FreshRSS/FreshRSS#8985)
  - Sort labels with locale-aware collation [#&#8203;9023](FreshRSS/FreshRSS#9023)
  - Format unread counter in title on page load [#&#8203;9263](FreshRSS/FreshRSS#9263)
  - Display slider after submit for all buttons in feed update UI [#&#8203;8999](FreshRSS/FreshRSS#8999)
  - Improve aside keyboard navigation [#&#8203;9202](FreshRSS/FreshRSS#9202)
  - Allows usage of <kbd>Ctrl/Shift</kbd> keys with the open website shortcut [#&#8203;9186](FreshRSS/FreshRSS#9186)
  - Fix padding for `.nav_menu` in Alternative-Dark, Flat, and Nord themes [#&#8203;8901](FreshRSS/FreshRSS#8901)
  - Fix typo in alert error border `color` variable [#&#8203;9266](FreshRSS/FreshRSS#9266)
  - Use JavaScript `Event()` constructor instead of deprecated `initEvent()` [#&#8203;9035](FreshRSS/FreshRSS#9035)
  - Use `:user-invalid` instead of `:invalid` for CSS form field styling [#&#8203;9025](FreshRSS/FreshRSS#9025)
  - Remove unused simple layout [#&#8203;8998](FreshRSS/FreshRSS#8998)
  - Various UI and style improvements: [#&#8203;8823](FreshRSS/FreshRSS#8823), [#&#8203;8824](FreshRSS/FreshRSS#8824),
    [#&#8203;9140](FreshRSS/FreshRSS#9140), [#&#8203;9145](FreshRSS/FreshRSS#9145)
- Extensions
  - Minor `Minz_Extension` typing [#&#8203;8952](FreshRSS/FreshRSS#8952)
  - Improve extension list fetch diagnostics [#&#8203;9055](FreshRSS/FreshRSS#9055)
  - Fix a PHP warning in *Serve* action [#&#8203;9267](FreshRSS/FreshRSS#9267)
  - Fix extension settings cancel action [#&#8203;9053](FreshRSS/FreshRSS#9053)
  - Fix sharing menu conflicts with extensions [#&#8203;9074](FreshRSS/FreshRSS#9074)
  - Add read status hook for entries [#&#8203;8995](FreshRSS/FreshRSS#8995)
  - Dispatch a new JavaScript event `freshrss:entryStateChange` when an entry finishes being marked read/unread [#&#8203;9031](FreshRSS/FreshRSS#9031)
  - Redirect after saving user CSS/JS so changes apply immediately [#&#8203;9006](FreshRSS/FreshRSS#9006)
- I18n
  - New plural system [#&#8203;8988](FreshRSS/FreshRSS#8988)
    - Pluralize the *new articles* count message
  - Prefer OS-bundled Japanese fonts when UI language is Japanese [#&#8203;9002](FreshRSS/FreshRSS#9002)
  - Add Azerbaijani [#&#8203;9269](FreshRSS/FreshRSS#9269)
  - Add Lithuanian [#&#8203;9201](FreshRSS/FreshRSS#9201), [#&#8203;9213](FreshRSS/FreshRSS#9213)
  - Improve Brazilian Portuguese [#&#8203;9240](FreshRSS/FreshRSS#9240), [#&#8203;9242](FreshRSS/FreshRSS#9242)
  - Improve German [#&#8203;9149](FreshRSS/FreshRSS#9149)
  - Improve Greek [#&#8203;8977](FreshRSS/FreshRSS#8977), [#&#8203;9038](FreshRSS/FreshRSS#9038)
  - Improve Hungarian [#&#8203;8879](FreshRSS/FreshRSS#8879)
  - Improve Indonesian (Bahasa Indonesia) [#&#8203;9220](FreshRSS/FreshRSS#9220)
  - Improve Italian [#&#8203;8880](FreshRSS/FreshRSS#8880)
  - Improve Japanese [#&#8203;9064](FreshRSS/FreshRSS#9064)
  - Improve Persian [#&#8203;8923](FreshRSS/FreshRSS#8923)
  - Improve Spanish [#&#8203;8878](FreshRSS/FreshRSS#8878), [#&#8203;9245](FreshRSS/FreshRSS#9245)
  - Improve Traditional Chinese [#&#8203;9037](FreshRSS/FreshRSS#9037), [#&#8203;9069](FreshRSS/FreshRSS#9069), [#&#8203;9223](FreshRSS/FreshRSS#9223)
  - Improve Turkish [#&#8203;8966](FreshRSS/FreshRSS#8966), [#&#8203;8971](FreshRSS/FreshRSS#8971), [#&#8203;8970](FreshRSS/FreshRSS#8970),
    [#&#8203;8989](FreshRSS/FreshRSS#8989)
  - Improve Ukrainian [#&#8203;8871](FreshRSS/FreshRSS#8871)
  - Refactor user query translation keys [#&#8203;9049](FreshRSS/FreshRSS#9049)
- Misc.
  - Update to PHPMailer 7.1.1 [#&#8203;8907](FreshRSS/FreshRSS#8907)
  - Improve PHP code [#&#8203;8906](FreshRSS/FreshRSS#8906), [#&#8203;9156](FreshRSS/FreshRSS#9156)
  - Fix PHPStan 2.2.2 in CLI [#&#8203;8911](FreshRSS/FreshRSS#8911)
  - Migrate `markdownlint-cli` to `markdownlint-cli2` [#&#8203;8987](FreshRSS/FreshRSS#8987)
  - Update dev dependencies [#&#8203;8904](FreshRSS/FreshRSS#8904), [#&#8203;8905](FreshRSS/FreshRSS#8905), [#&#8203;8926](FreshRSS/FreshRSS#8926),
    [#&#8203;8939](FreshRSS/FreshRSS#8939), [#&#8203;8940](FreshRSS/FreshRSS#8940), [#&#8203;8963](FreshRSS/FreshRSS#8963),
    [#&#8203;8961](FreshRSS/FreshRSS#8961), [#&#8203;8959](FreshRSS/FreshRSS#8959), [#&#8203;8958](FreshRSS/FreshRSS#8958),
    [#&#8203;8962](FreshRSS/FreshRSS#8962), [#&#8203;8960](FreshRSS/FreshRSS#8960), [#&#8203;9148](FreshRSS/FreshRSS#9148),
    [#&#8203;9162](FreshRSS/FreshRSS#9162), [#&#8203;9165](FreshRSS/FreshRSS#9165), [#&#8203;9158](FreshRSS/FreshRSS#9158),
    [#&#8203;9159](FreshRSS/FreshRSS#9159), [#&#8203;9176](FreshRSS/FreshRSS#9176), [#&#8203;9178](FreshRSS/FreshRSS#9178),
    [#&#8203;9179](FreshRSS/FreshRSS#9179), [#&#8203;9219](FreshRSS/FreshRSS#9219), [#&#8203;9253](FreshRSS/FreshRSS#9253),
    [#&#8203;9254](FreshRSS/FreshRSS#9254), [#&#8203;9255](FreshRSS/FreshRSS#9255), [#&#8203;9257](FreshRSS/FreshRSS#9257)

</details>

---

### Configuration

📅 **Schedule**: (in timezone America/New_York)

- Branch creation
  - At any time (no schedule defined)
- 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.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiI0NC42Ni4xIiwidXBkYXRlZEluVmVyIjoiNDQuNjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9taW5vciJdfQ==-->

Reviewed-on: https://git.greyrock.io/todd/home-ops/pulls/157
GiorgioAresu pushed a commit to GiorgioAresu/home-ops that referenced this pull request Sep 13, 2026
…056)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [freshrss/freshrss](https://freshrss.org/) ([source](https://github.com/FreshRSS/FreshRSS)) | minor | `1.29.1-alpine` → `1.30.0-alpine` |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/6) for more information.

---

### Release Notes

<details>
<summary>FreshRSS/FreshRSS (freshrss/freshrss)</summary>

### [`v1.30.0`](https://github.com/FreshRSS/FreshRSS/blob/HEAD/CHANGELOG.md#2026-09-09-FreshRSS-1300)

[Compare Source](FreshRSS/FreshRSS@1.29.1...1.30.0)

- Security
  - 💥 SSRF mitigation: disallow access to local networks such as `127.0.0.1` by default, for security reasons (breaking change) [#&#8203;8400](FreshRSS/FreshRSS#8400),
    [#&#8203;8950](FreshRSS/FreshRSS#8950), [#&#8203;9195](FreshRSS/FreshRSS#9195)
    - Selected local networks can be allowed under *System configuration* or using the `INTERNAL_HOST_ALLOWLIST` environment variable
    - Passing `*` allows all networks like before (unsafe)
  - Fix auth CSRFs (login and register actions) [#&#8203;9171](FreshRSS/FreshRSS#9171)
  - Log invalid challenge and ignore JSON error during login [#&#8203;9278](FreshRSS/FreshRSS#9278)
  - Disallow fetching of non remote URI [#&#8203;9215](FreshRSS/FreshRSS#9215)
  - Only allow HTTP/HTTPS schemes for enclosure and thumbnail URLs [#&#8203;9272](FreshRSS/FreshRSS#9272)
  - Fix access control in `rss` and `opml` actions [#&#8203;8912](FreshRSS/FreshRSS#8912)
  - Refactor to use CSRF field directly instead of borrowing it from a form [#&#8203;9169](FreshRSS/FreshRSS#9169), [#&#8203;9205](FreshRSS/FreshRSS#9205)
  - Cleaner limit anonymous mode to default user [#&#8203;9235](FreshRSS/FreshRSS#9235)
  - Fix HTML ingestions in templates [#&#8203;9146](FreshRSS/FreshRSS#9146), [#&#8203;9170](FreshRSS/FreshRSS#9170)
  - Fix bad header filtering bypass [#&#8203;8964](FreshRSS/FreshRSS#8964)
  - Sanitize all fields during JSON import [#&#8203;9168](FreshRSS/FreshRSS#9168)
  - Gate `greader` (JSON) user query share format behind *Share by OPML* [#&#8203;9248](FreshRSS/FreshRSS#9248)
  - Public OPML should not contain cURL parameters [#&#8203;9070](FreshRSS/FreshRSS#9070)
  - Ignore security-relevant OPML attributes for dynamic OPML sources [#&#8203;9276](FreshRSS/FreshRSS#9276)
  - Strip feed URL credentials from anonymous user query output [#&#8203;9246](FreshRSS/FreshRSS#9246)
  - Set limits for regex during search [#&#8203;8913](FreshRSS/FreshRSS#8913)
  - Fix path disclosure in cache error message [#&#8203;9206](FreshRSS/FreshRSS#9206)
  - Limit the length and parentheses nesting depth of a search query [#&#8203;9277](FreshRSS/FreshRSS#9277)
  - Use timing-safe comparison for tokens [#&#8203;8945](FreshRSS/FreshRSS#8945)
  - Use `hash_equals()` for GReader API token comparison [#&#8203;9183](FreshRSS/FreshRSS#9183)
  - Mailer: allow disabling SMTPAutoTLS via config [#&#8203;9026](FreshRSS/FreshRSS#9026)
  - Warn during install if document root does not point to `./p/` [#&#8203;9010](FreshRSS/FreshRSS#9010)
  - Stop the unread-count poller after the session ends [#&#8203;9065](FreshRSS/FreshRSS#9065)
  - Add remote IP address to warning on form login [#&#8203;8942](FreshRSS/FreshRSS#8942)
  - Pin the GitHub actions using SHA [#&#8203;9200](FreshRSS/FreshRSS#9200)
  - Harden cache and SimplePie cache deserialization [#&#8203;9273](FreshRSS/FreshRSS#9273)
- SimplePie
  - Security: Disallow `javascript:` URI scheme (protocol) [#&#8203;8263](FreshRSS/FreshRSS#8263)
  - Fix wrong player parent logic leading to invalid type [#&#8203;8893](FreshRSS/FreshRSS#8893), [simplepie#978](simplepie/simplepie#978)
  - Consistently enable `XML_OPTION_PARSE_HUGE` [#&#8203;8894](FreshRSS/FreshRSS#8894), [simplepie#977](simplepie/simplepie#977)
  - Fix null warning in IRI for PHP 8.5+ [#&#8203;8918](FreshRSS/FreshRSS#8918), [simplepie#979](simplepie/simplepie#979)
  - Fix sanitizer whitelist stripping order [#&#8203;9066](FreshRSS/FreshRSS#9066)
  - Show only one representation per `media:group` [#&#8203;9009](FreshRSS/FreshRSS#9009)
  - Bump upstream SimplePie [#&#8203;8947](FreshRSS/FreshRSS#8947)
- Features
  - Filter global view feed list by state and search [#&#8203;9132](FreshRSS/FreshRSS#9132)
    - Use global view when searching from subscription page [#&#8203;9144](FreshRSS/FreshRSS#9144)
  - New option to hide badges showing number of unread articles (*Phantom Obligation*) [#&#8203;8844](FreshRSS/FreshRSS#8844)
  - Refresh only feeds in the current view [#&#8203;9060](FreshRSS/FreshRSS#9060)
  - Offer to add a prefix when resharing user labels [#&#8203;9236](FreshRSS/FreshRSS#9236)
  - Add log search to the logs page [#&#8203;9059](FreshRSS/FreshRSS#9059)
  - Add configurable `log_level` system setting [#&#8203;9185](FreshRSS/FreshRSS#9185)
  - New option to keep or not the custom sort order when navigating between categories and feeds [#&#8203;8969](FreshRSS/FreshRSS#8969)
  - New per-feed option to show or hide enclosures (attachments) [#&#8203;9015](FreshRSS/FreshRSS#9015)
  - Detect JSON feeds from URLs containing `json` [#&#8203;9058](FreshRSS/FreshRSS#9058)
    - Also when subscribing via the API [#&#8203;9167](FreshRSS/FreshRSS#9167)
  - Order categories during OPML import/export according to position [#&#8203;9203](FreshRSS/FreshRSS#9203)
  - OPML: include each feed’s refresh interval (TTL) in export/import [#&#8203;8982](FreshRSS/FreshRSS#8982)
  - Log failed CSS content retrieval (Web scraping) [#&#8203;9077](FreshRSS/FreshRSS#9077)
  - Allow providing a category when adding a feed by bookmarklet [#&#8203;9047](FreshRSS/FreshRSS#9047)
  - Add LinkAce sharing service [#&#8203;9024](FreshRSS/FreshRSS#9024)
  - Add Nextcloud Bookmarks sharing service [#&#8203;9032](FreshRSS/FreshRSS#9032)
- Bug fixing
  - Fix lost elements while parsing search query [#&#8203;8884](FreshRSS/FreshRSS#8884)
  - Fix “mark as read older than…” widening the active search [#&#8203;9173](FreshRSS/FreshRSS#9173)
  - Fix saving user queries [#&#8203;9190](FreshRSS/FreshRSS#9190)
  - Fix SQL errors breaking some regex searches with MySQL / MariaDB [#&#8203;9036](FreshRSS/FreshRSS#9036)
  - Fix marking filtered label articles as read in SQLite and PostgreSQL [#&#8203;9264](FreshRSS/FreshRSS#9264)
  - Fix tagging an already-tagged entry on PostgreSQL raising a SQL error instead of being a no-op [#&#8203;9136](FreshRSS/FreshRSS#9136)
  - PostgreSQL: make committing new entries resilient to duplicate keys [#&#8203;9231](FreshRSS/FreshRSS#9231)
  - Preserve negative timezone offsets in date intervals [#&#8203;9071](FreshRSS/FreshRSS#9071)
  - Fix feed dropdown bugs due to hash desync [#&#8203;8949](FreshRSS/FreshRSS#8949)
  - Fix slider not reinitializing after form submit [#&#8203;8973](FreshRSS/FreshRSS#8973)
  - Minz: Skip loading duplicated JS/CSS assets [#&#8203;9000](FreshRSS/FreshRSS#9000)
  - Respect `simplepie_syslog_enabled` for the *uses cache* logs [#&#8203;8986](FreshRSS/FreshRSS#8986)
  - Fix statistics repartition averages [#&#8203;8996](FreshRSS/FreshRSS#8996)
  - Fix article hover date visibility [#&#8203;8997](FreshRSS/FreshRSS#8997)
  - Keep search and state filters when marking articles as read [#&#8203;9007](FreshRSS/FreshRSS#9007)
  - Fix `--db-prefix` silently drops following CLI flags [#&#8203;9042](FreshRSS/FreshRSS#9042)
  - Remove stale dynamic favicon links [#&#8203;9127](FreshRSS/FreshRSS#9127)
  - Fix desync between favicon and title unread counters [#&#8203;9262](FreshRSS/FreshRSS#9262)
  - Fix outdated username length hint on registration and install forms [#&#8203;9013](FreshRSS/FreshRSS#9013)
  - Redirect away from wrong URL paths [#&#8203;9075](FreshRSS/FreshRSS#9075)
  - Fix auto-share shortcut on first use [#&#8203;9072](FreshRSS/FreshRSS#9072)
  - Exclude hidden feeds from global view counts [#&#8203;9152](FreshRSS/FreshRSS#9152)
  - Fix only the last `<media:credit>` being written to the RSS output [#&#8203;9174](FreshRSS/FreshRSS#9174)
- CLI
  - New `cli/reconfigure-user.php` to read/write per-user config attributes [#&#8203;8873](FreshRSS/FreshRSS#8873)
  - Report new articles count per feed in `app/actualize_script.php` output [#&#8203;8948](FreshRSS/FreshRSS#8948)
  - Output a diagnostic when the `cli/health.php` check fails [#&#8203;8980](FreshRSS/FreshRSS#8980)
- API
  - Add a warning message to the API password section and a log warning when a client uses GET instead of recommended POST [#&#8203;8845](FreshRSS/FreshRSS#8845)
  - Fever API: log the client IP address on authentication failure [#&#8203;8981](FreshRSS/FreshRSS#8981)
  - WebSub: ignore HTTP/HTTPS scheme difference in Self URL comparison [#&#8203;9005](FreshRSS/FreshRSS#9005)
- Deployment
  - Docker alternative image updated to Alpine 3.24 with PHP 8.5.7 and Apache 2.4.67 [#&#8203;8916](FreshRSS/FreshRSS#8916)
  - Start supporting PHP 8.6+
    - Docker dev `:newest` with PHP 8.6 [#&#8203;9155](FreshRSS/FreshRSS#9155)
  - Docker: attach provenance and SBOM attestations to the published image [#&#8203;9150](FreshRSS/FreshRSS#9150)
  - Apache use only `CONN_REMOTE_ADDR` in logs when `mod_remoteip` is available, for compatibility with LiteSpeed Web Server [#&#8203;8890](FreshRSS/FreshRSS#8890)
  - Fix `.dockerignore` being ignored during build in CI [#&#8203;9001](FreshRSS/FreshRSS#9001)
  - New `ENABLE_ACCESS_LOG` environment variable to disable access logs [#&#8203;9191](FreshRSS/FreshRSS#9191)
  - Check GMP during 32-bit installation [#&#8203;9046](FreshRSS/FreshRSS#9046)
  - Improve actualize mutex to allow multiple instances [#&#8203;9045](FreshRSS/FreshRSS#9045)
  - OIDC: redirect to a default URL on expired auth state instead of 400 [#&#8203;9143](FreshRSS/FreshRSS#9143)
- UI
  - Always jump article to top when header is offscreen, also when *Stick the article to the top when opened* is disabled [#&#8203;8870](FreshRSS/FreshRSS#8870)
  - Move article header/footer options (feed title, authors and date, icons position, tags) from *Reading* to *Display* configuration [#&#8203;9139](FreshRSS/FreshRSS#9139)
  - Move disable button before remove button in user management [#&#8203;8944](FreshRSS/FreshRSS#8944)
  - Keep scroll position of slider after form submit [#&#8203;8974](FreshRSS/FreshRSS#8974)
  - Group export feeds by category [#&#8203;9079](FreshRSS/FreshRSS#9079), [#&#8203;9154](FreshRSS/FreshRSS#9154)
  - Sort feed names with locale-aware collation [#&#8203;8985](FreshRSS/FreshRSS#8985)
  - Sort labels with locale-aware collation [#&#8203;9023](FreshRSS/FreshRSS#9023)
  - Format unread counter in title on page load [#&#8203;9263](FreshRSS/FreshRSS#9263)
  - Display slider after submit for all buttons in feed update UI [#&#8203;8999](FreshRSS/FreshRSS#8999)
  - Improve aside keyboard navigation [#&#8203;9202](FreshRSS/FreshRSS#9202)
  - Allows usage of <kbd>Ctrl/Shift</kbd> keys with the open website shortcut [#&#8203;9186](FreshRSS/FreshRSS#9186)
  - Fix padding for `.nav_menu` in Alternative-Dark, Flat, and Nord themes [#&#8203;8901](FreshRSS/FreshRSS#8901)
  - Fix typo in alert error border `color` variable [#&#8203;9266](FreshRSS/FreshRSS#9266)
  - Use JavaScript `Event()` constructor instead of deprecated `initEvent()` [#&#8203;9035](FreshRSS/FreshRSS#9035)
  - Use `:user-invalid` instead of `:invalid` for CSS form field styling [#&#8203;9025](FreshRSS/FreshRSS#9025)
  - Remove unused simple layout [#&#8203;8998](FreshRSS/FreshRSS#8998)
  - Various UI and style improvements: [#&#8203;8823](FreshRSS/FreshRSS#8823), [#&#8203;8824](FreshRSS/FreshRSS#8824),
    [#&#8203;9140](FreshRSS/FreshRSS#9140), [#&#8203;9145](FreshRSS/FreshRSS#9145)
- Extensions
  - Minor `Minz_Extension` typing [#&#8203;8952](FreshRSS/FreshRSS#8952)
  - Improve extension list fetch diagnostics [#&#8203;9055](FreshRSS/FreshRSS#9055)
  - Fix a PHP warning in *Serve* action [#&#8203;9267](FreshRSS/FreshRSS#9267)
  - Fix extension settings cancel action [#&#8203;9053](FreshRSS/FreshRSS#9053)
  - Fix sharing menu conflicts with extensions [#&#8203;9074](FreshRSS/FreshRSS#9074)
  - Add read status hook for entries [#&#8203;8995](FreshRSS/FreshRSS#8995)
  - Dispatch a new JavaScript event `freshrss:entryStateChange` when an entry finishes being marked read/unread [#&#8203;9031](FreshRSS/FreshRSS#9031)
  - Redirect after saving user CSS/JS so changes apply immediately [#&#8203;9006](FreshRSS/FreshRSS#9006)
- I18n
  - New plural system [#&#8203;8988](FreshRSS/FreshRSS#8988)
    - Pluralize the *new articles* count message
  - Prefer OS-bundled Japanese fonts when UI language is Japanese [#&#8203;9002](FreshRSS/FreshRSS#9002)
  - Add Azerbaijani [#&#8203;9269](FreshRSS/FreshRSS#9269)
  - Add Lithuanian [#&#8203;9201](FreshRSS/FreshRSS#9201), [#&#8203;9213](FreshRSS/FreshRSS#9213)
  - Improve Brazilian Portuguese [#&#8203;9240](FreshRSS/FreshRSS#9240), [#&#8203;9242](FreshRSS/FreshRSS#9242)
  - Improve German [#&#8203;9149](FreshRSS/FreshRSS#9149)
  - Improve Greek [#&#8203;8977](FreshRSS/FreshRSS#8977), [#&#8203;9038](FreshRSS/FreshRSS#9038)
  - Improve Hungarian [#&#8203;8879](FreshRSS/FreshRSS#8879)
  - Improve Indonesian (Bahasa Indonesia) [#&#8203;9220](FreshRSS/FreshRSS#9220)
  - Improve Italian [#&#8203;8880](FreshRSS/FreshRSS#8880)
  - Improve Japanese [#&#8203;9064](FreshRSS/FreshRSS#9064)
  - Improve Persian [#&#8203;8923](FreshRSS/FreshRSS#8923)
  - Improve Spanish [#&#8203;8878](FreshRSS/FreshRSS#8878), [#&#8203;9245](FreshRSS/FreshRSS#9245)
  - Improve Traditional Chinese [#&#8203;9037](FreshRSS/FreshRSS#9037), [#&#8203;9069](FreshRSS/FreshRSS#9069), [#&#8203;9223](FreshRSS/FreshRSS#9223)
  - Improve Turkish [#&#8203;8966](FreshRSS/FreshRSS#8966), [#&#8203;8971](FreshRSS/FreshRSS#8971), [#&#8203;8970](FreshRSS/FreshRSS#8970),
    [#&#8203;8989](FreshRSS/FreshRSS#8989)
  - Improve Ukrainian [#&#8203;8871](FreshRSS/FreshRSS#8871)
  - Refactor user query translation keys [#&#8203;9049](FreshRSS/FreshRSS#9049)
- Misc.
  - Update to PHPMailer 7.1.1 [#&#8203;8907](FreshRSS/FreshRSS#8907)
  - Improve PHP code [#&#8203;8906](FreshRSS/FreshRSS#8906), [#&#8203;9156](FreshRSS/FreshRSS#9156)
  - Fix PHPStan 2.2.2 in CLI [#&#8203;8911](FreshRSS/FreshRSS#8911)
  - Migrate `markdownlint-cli` to `markdownlint-cli2` [#&#8203;8987](FreshRSS/FreshRSS#8987)
  - Update dev dependencies [#&#8203;8904](FreshRSS/FreshRSS#8904), [#&#8203;8905](FreshRSS/FreshRSS#8905), [#&#8203;8926](FreshRSS/FreshRSS#8926),
    [#&#8203;8939](FreshRSS/FreshRSS#8939), [#&#8203;8940](FreshRSS/FreshRSS#8940), [#&#8203;8963](FreshRSS/FreshRSS#8963),
    [#&#8203;8961](FreshRSS/FreshRSS#8961), [#&#8203;8959](FreshRSS/FreshRSS#8959), [#&#8203;8958](FreshRSS/FreshRSS#8958),
    [#&#8203;8962](FreshRSS/FreshRSS#8962), [#&#8203;8960](FreshRSS/FreshRSS#8960), [#&#8203;9148](FreshRSS/FreshRSS#9148),
    [#&#8203;9162](FreshRSS/FreshRSS#9162), [#&#8203;9165](FreshRSS/FreshRSS#9165), [#&#8203;9158](FreshRSS/FreshRSS#9158),
    [#&#8203;9159](FreshRSS/FreshRSS#9159), [#&#8203;9176](FreshRSS/FreshRSS#9176), [#&#8203;9178](FreshRSS/FreshRSS#9178),
    [#&#8203;9179](FreshRSS/FreshRSS#9179), [#&#8203;9219](FreshRSS/FreshRSS#9219), [#&#8203;9253](FreshRSS/FreshRSS#9253),
    [#&#8203;9254](FreshRSS/FreshRSS#9254), [#&#8203;9255](FreshRSS/FreshRSS#9255), [#&#8203;9257](FreshRSS/FreshRSS#9257)

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/Rome)

- Branch creation
  - At any time (no schedule defined)
- 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.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNy4xIiwidXBkYXRlZEluVmVyIjoiNDQuMTcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9taW5vciJdfQ==-->

Reviewed-on: https://git.aresu.eu/GiorgioAresu/home-ops/pulls/2056
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants