backups folder not accessible although backup permissions are set to 0644
Summary
I've installed GitLab by using a docker-container (although the problem is probably not docker specific). When I create a backup with a certain user who is not root, but has enough rights, using the docker exec -t <your container name> gitlab-rake gitlab:backup:create
command, the backup is successfully created.
In the gitlab.rb file, I've set gitlab_rails['backup_archive_permissions'] = 0644
. The backup-files have the correct permissions, as expected (visible by using root user).
However, I cannot access the backups
folder in the corresponding volume for /var/opt/gitlab
, because the permissions are set to rwx------
.
Steps to reproduce
- Execute
docker exec -t <your container name> gitlab-rake gitlab:backup:create
with a user that is not root but has enough priviledges to execute the command. - Try to access the folder that is linked to the folder
/var/opt/gitlab/backups
in docker. - You receive the error message
permission denied
What is the current bug behavior?
backups
folder is only accessible by user that created the backup and folder permissions are NOT 644
What is the expected correct behavior?
backups
folder accessible by the user that created the backup or also received permissions 644
Possible fixes
Use the gitlab_rails['backup_archive_permissions'] = 0644
to also set the permissions of folder backups
, not only its content.