-
-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Thanks for the detailed explanation in the previous discussion. So now that I understand how the vaults folder permissions are set by the image build process, I’d like to propose a feature that could solve the external access / backup issue without compromising the security model.
I've seen that many containers in the ecosystem, particularly those following the linuxserver.io pattern, allow users to set PUID and PGID as environment variables on container launch. A startup script then adjusts the container’s user and group IDs accordingly. Implementing this in the Many Notes container would allow users to map the container’s www-data user to their host system IDs, granting external access (e.g. for SMB shares or backup tools) without needing to build your own version of the docker image.
I realize its surely a small niche of people that are homelab enthusiasts like me and want to externally back up the notes/vaults using backup software. Like I said I'm not an expert in writing docker images or docker security, but I have seen this commonly employed in other containers to solve this exact problem with the container not matching users on the server. So I thought I'd mention it and see what you think.
Also just like to say again the app is awesome, I wouldn't bother writing this if I didn't really want to use it