Support execution as unprivileged user?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, kubernetes, shell
- Domain
- devops, infrastructure
Research direction
Start by locating every shell entry point that uses exec gosu and review how each command is launched. Check how an unprivileged Kubernetes securityContext affects those paths and define the opt-out behavior around NO_GOSU. Done means the containers can run with an unprivileged uid without gosu failing, while existing privileged execution remains supported.
Written by the indexing model from the issue text.
Description
Hi there,
This is exactly what I was looking for - however, I am trying to run (all of) my gameservers in Kubernetes. Depending on the cluster configuration, you may not even be able to run a container as root. Ideally, you would be able to run the containers with a securityContext enforcing an unprivileged uid. In situations like these, gosu will fail outright.
I think this can be as easy as wrapping exec gosu usage in various places with a function call that basically does:
if [ -z $NO_GOSU ]; then
exec gosu ...
else
raw_command
fi
I am happy to submit a PR but wanted to get thoughts on adding this before doing it.
Thanks!
- Dominant language
- Shell
- Stars
- 347
- Forks
- 26
- Avg merge
- 8h 2m
- Merged PRs (30d)
- 2
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GameServerManagers/docker-gameserver
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
GameServerManagers/docker-gameserver#142 · 2 comments ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
GameServerManagers/docker-gameserver#113 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
GameServerManagers/docker-gameserver#100 · 2 comments ·
All issues in GameServerManagers/docker-gameserver
Similar issues
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
varnish/helm-varnish#173 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
command: update-lgsm distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: low type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
GameServerManagers/LinuxGSM#5242 ·
Maintainers usually reply within 1 day
-
📦 Update Request
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
cdnjs/packages#2225 · 1 comment ·
Maintainers usually reply within 3 days