[Bug 276150] www/caddy - caddy_logfile permissions change?

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 06 Jan 2024 15:23:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276150

            Bug ID: 276150
           Summary: www/caddy - caddy_logfile permissions change?
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: adamw@FreeBSD.org
          Reporter: mfisher911@gmail.com
          Assignee: adamw@FreeBSD.org
             Flags: maintainer-feedback?(adamw@FreeBSD.org)

Created attachment 247486
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247486&action=edit
Set caddy_log ownership to caddy_user

Bug 273181 proposes changing Caddy to be run as a non-root user. The referenced
wiki page (https://wiki.freebsd.org/ThomasHurst/Caddy) has a call-out:

> caddy_logfile (default /var/log/caddy/caddy.log) is a redirection of caddy console output, which will be opened by the rc(8) script as root:wheel.

An additional consequence to this is that failures messages can't be written to
that file.

Would it be reasonable to change the caddy_logfile permissions so that it's
owned by caddy_user?

Thank you for the consideration/attention.

-- 
You are receiving this mail because:
You are the assignee for the bug.