You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What backend/server/service did you use to store the repository?
VPS
Expected behavior
.htpasswd should have the following permissions which prevents anyone but the creating user from reading the file:
-rw-r----- 1 root root 73 Dec 23 22:58 .htpasswd
Actual behavior
.htpasswd is created with global read permissions
-rw-r--r-- 1 root root 73 Dec 23 22:58 .htpasswd
Steps to reproduce the behavior
Start docker
Add a user with docker exec <container_name> create_user <user_name> <password
Do you have any idea what may have caused this?
Default file premissions are not changed by the server.
Output of
rest-server --version
rest-server version rest-server 0.13.0 compiled with go1.22.5 on linux/amd64
How did you run rest-server exactly?
Using docker & docker-compose
What backend/server/service did you use to store the repository?
VPS
Expected behavior
.htpasswd
should have the following permissions which prevents anyone but the creating user from reading the file:-rw-r----- 1 root root 73 Dec 23 22:58 .htpasswd
Actual behavior
.htpasswd
is created with global read permissions-rw-r--r-- 1 root root 73 Dec 23 22:58 .htpasswd
Steps to reproduce the behavior
docker exec <container_name> create_user <user_name> <password
Do you have any idea what may have caused this?
Default file premissions are not changed by the server.
Do you have an idea how to solve the issue?
The file is created here:
rest-server/docker/entrypoint.sh
Line 9 in 2513a69
We should add a
chmod 640 "$PASSWORD_FILE"
Did rest-server help you today? Did it make you happy in any way?
Very much. Much easier to maintain and use than AWS in a WORM setup and allows for selfhosting. Much appreciated!
P.S. more than happy to create a PR if you think the fix is okay.
The text was updated successfully, but these errors were encountered: