On Sat Dec 05, 2026 at 07:12:10PM +0100, Kirill A. Korinsky wrote: > On Sat, 05 Dec 2026 17:43:39 +0100, > Rafael Sadowski <rafael@sizeofvoid.org> wrote: > > > > On Sat Dec 05, 2026 at 02:38:42PM +0100, Kirill A. Korinsky wrote: > > > > > > > > Index: user.list > > > > =================================================================== > > > > RCS file: /cvs/ports/infrastructure/db/user.list,v > > > > diff -u -p -r1.501 user.list > > > > --- user.list 23 Nov 2026 18:03:19 -0000 1.501 > > > > +++ user.list 5 Dec 2026 11:36:08 -0000 > > > > @@ -414,3 +414,4 @@ id user group port > > > > 903 _iaxmodem _iaxmodem telephony/iaxmodem > > > > 904 _neighbot _neighbot net/neighbot > > > > 905 _pgweb _pgweb www/pgweb > > > > +906 _gitea-runner _gitea-runner sysutils/gitea-runner > > > > [2 gitea-runner-6.0.1.tar.gz <application/x-tar-gz (base64)>] > > > > > > Not sure about new user, but I think it is the right idea, but the same user > > > is owner of the config: > > > > > > @mode 640 > > > @owner _gitea-runner > > > @group _gitea-runner > > > @sample ${SYSCONFDIR}/gitea-runner/config.yaml > > > > > > so, bad code can edit runner config, that, probably, is not good idea. > > > > I think that's intentional: > > https://docs.gitea.com/runner/installation/binary/ > > > > doas -u _gitea-runner gitea-runner config set -c /etc/gitea-runner/config.yaml runner.shutdown_timeout 2h50m > > > > Or they think that all code which is running under runner is trusted? > Trust? There is no trust. A malicious job code can read the .runner credentials. I think the trust model is based on the separate user and for me it looks like it owns the config file anyway. Of course we set: @mode 640 @owner root @group _gitea-runner @sample ${SYSCONFDIR}/gitea-runner/config.yaml The only downside is that "gitea-runner config set" as described upstream would then have to be run as root.