chproxy icon indicating copy to clipboard operation
chproxy copied to clipboard

[Feature] Need to run image with non-root user

Open mk-raven opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. For security reason and run image in prod envs needs to run ALWAYS with non-root user

Describe the solution you'd like Please add in Dockerfile user with permission only to run chproxy binary. For example: RUN groupadd -r chrpoxy && useradd -r -g chrpoxy -m chrpoxy && chown -R chrpoxy:chrpoxy /usr/bin/chproxy USER chrpoxy Additional context It would be nice in feature release

mk-raven avatar Jan 24 '25 12:01 mk-raven

Hi, the feature makes sense. Feel free to create a PR with a change on the docker image. As long as the image still work for a root user or the optional non-root chproxy user, we shouldn't refuse the PR.

mga-chka avatar Feb 04 '25 13:02 mga-chka