[DRE-maint] Bug#968286: gitlab: adding log rotation

Fabrice Meyer fabrice.meyer at edf-sf.com
Thu Aug 13 09:39:21 BST 2020


I didn't spot the bug report 839702 before opening this one:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839702

Looking closer to the security issue mentioned in 839702, a fix came out
recently and the configuration suggested previously should be dropped.

A log-rotate file is present in the gitlab repo here:
https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/support/logrotate/gitlab

That being said, the current user use by gitlab in debian package is
gitlab. So I think "su git git" should be replace by "su gitlab gitlab".

# GitLab logrotate settings
# based on: http://stackoverflow.com/a/4883967

/home/git/gitlab/log/*.log {
su git git
daily
missingok
rotate 90
compress
notifempty
copytruncate
}

/home/git/gitlab-shell/gitlab-shell.log {
su git git
daily
missingok
rotate 90
compress
notifempty
copytruncate
}

Sorry for the noise,

-- 
**Fabrice MEYER*
Software and System Engineer*

EDF Store & Forecast
13 Avenue Albert Einstein
69100 Villeurbanne
France

*fabrice.meyer at edf-sf.co*
*www.edf-sf.com*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20200813/68730423/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnaomjpcldcllhkc.jpeg
Type: image/jpeg
Size: 6498 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20200813/68730423/attachment-0001.jpeg>


More information about the Pkg-ruby-extras-maintainers mailing list