Bug 282245 - www/tt-rss: Define ttrssd in UIDs and GIDs instead of using WWWOWN
Summary: www/tt-rss: Define ttrssd in UIDs and GIDs instead of using WWWOWN
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-21 13:55 UTC by Mateusz Piotrowski
Modified: 2026-04-08 02:39 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (dereks)


Attachments
Run ttrssd as ttrssd user and move data to /var (9.67 KB, patch)
2025-02-25 03:31 UTC, Derek Schrock
no flags Details | Diff
Rebase on main after 0df0ed7b50dc18 (7.68 KB, patch)
2025-07-13 21:28 UTC, Derek Schrock
no flags Details | Diff
Rebase on c17aeab31e5d0 from phab. (7.75 KB, patch)
2025-11-28 22:00 UTC, Derek Schrock
no flags Details | Diff
Rebase on main ce39d634b8d553412121bc6a126cc75b0e77cfef (7.38 KB, patch)
2026-04-08 02:39 UTC, Derek Schrock
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer freebsd_triage 2024-10-21 13:55:24 UTC
Per documentation, WWWONW should be using sparingly: https://docs.freebsd.org/en/books/porters-handbook/book/index.html#web-apps

Robert William Vesterman reported on GitHub that it would be nice to use a dedicated user for that service.
Comment 1 Derek Schrock 2025-02-25 03:31:20 UTC
I've been sitting on a patch for this for a couple months now keeping the current version updated while rebasing it and installing it in my apache/ttrss jail.   It seems to work.  My current concern is if anything ttrssd and www (the php web app) need to share (mainly write) data where a umask doesn't need to be set.  So far I don't think I've seen any issues like that however I'm wondering if there's parts I'm not using or if third-party plugins could make it more complicated.

If a user wanted to use an alt. user for ttrssd they would add that user to the ttrssd group.

If this is still desired I think some additional testing might be good.

https://reviews.freebsd.org/D49128
Comment 2 Derek Schrock 2025-02-25 03:31:45 UTC
Created attachment 257861 [details]
Run ttrssd as ttrssd user and move data to /var

- Create a ttrssd user and group to run ttrssd.
- Move log file to /var/log/tt-rss directorie.
- Move pid files to /var/run/tt-rss directorie.
- Move on disk data to /var/tt-rss/.
Comment 3 Derek Schrock 2025-07-13 21:28:32 UTC
Created attachment 262118 [details]
Rebase on main after 0df0ed7b50dc18

Rebase init. patch on main after 0df0ed7b50dc18 update removing mysql support.
Comment 4 Derek Schrock 2025-11-28 22:00:59 UTC
Created attachment 265697 [details]
Rebase on c17aeab31e5d0 from phab.

Rebase due to dist changes.
Comment 5 Derek Schrock 2025-12-23 04:10:09 UTC
FYI, pkg 2.5.0 breaks empty dir @mode pkg-plist.

https://github.com/freebsd/pkg/issues/2580
Comment 6 Derek Schrock 2026-04-08 02:39:25 UTC
Created attachment 269478 [details]
Rebase on main ce39d634b8d553412121bc6a126cc75b0e77cfef

Rebase on main ce39d634b8d553412121bc6a126cc75b0e77cfef from phan.