Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: set UID and GID of Shaarli (nginx) process inside container #2009

Open
cerebrate opened this issue Jul 15, 2023 · 1 comment
Labels
docker containers & cloud feature help-wanted help-wanted server

Comments

@cerebrate
Copy link

This is in many ways a dupe of #1349, #1127 and #1031, as it's the same underlying issue, but I'd like to make a feature request to hopefully address the issue permanently.

Essentially, I ran into the same problem they had with Shaarli being unable to write to the data and cache directories, which I tracked down to it needing to be able to access them as its internal nginx:nginx (or, as my admin host knows them, _rpc:crontab). This was fixable by setting the appropriate permissions, but since I'm running Shaarli on a k3s cluster and mounting its volumes from a NAS that have their own requirements where security policy, backups, etc., etc., and concerned, having to set arbitrary file ownership makes for a decent workaround, but an administratively painful long-term solution.

Therefore, I'd like to request the ability to set the UID/GID of the relevant Shaarli processes (I think just nginx) in the deployment, perhaps in a similar way to the various linuxserver.io container images (i.e., set PUID and PGID environmental variables on the container), so that it's easy to configure the container to run in a way that fits existing user/group infrastructure.

Sorry I can't just PR this, but it's not a stack I'm familiar with, I'm afraid.

@nodiscc
Copy link
Member

nodiscc commented Jul 26, 2023

Somehow related to #1882 (#1874) since all installation difficulties/workarounds required when using Shaarli through podman stem from hardcoded UID/GID mapping.

@nodiscc nodiscc added this to the backlog to the future milestone Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker containers & cloud feature help-wanted help-wanted server
Projects
None yet
Development

No branches or pull requests

2 participants