[pkg-go] Bug#994945: webhook should not run as root by default
Antoine Beaupré
anarcat at debian.org
Mon Nov 16 16:07:42 GMT 2026
On 2026-11-16 16:55:17, Andrea Pappacoda wrote:
> Hi Antoine,
>
> On Thu, 23 Sep 2021 12:05:43 -0400 Antoine Beaupre <anarcat at debian.org> wrote:
>> I was surprised to find out that this package starts a user-facing
>> daemon as root, by default (when the config file is created, that is).
>>
>> That seems like poor security, and it seems to me the package should
>> create a user on install.
>
> I was similarly surprised to see this as well. At least, the systemd
> service unit is disabled by default (as no configuration file is shipped
> in the package).
>
> I have now started using this software in my local hacklab, and would
> like to take a bit more care of it (unless we stop using it in the next
> few weeks, that is).
>
> I was thinking that maybe the package could ship with a socket unit, so
> that the program doesn't need to bind sockets itself and needs no
> special privileges. Then, settings like DynamicUser= could easily be
> enabled.
>
> Do you think this makes sense?
Yes.
--
Don't just do something, sit there.
- Sylvia Boorstein
More information about the Pkg-go-maintainers
mailing list