microsoft / microsoft/AzureTRE

Run Gitea as non-root user

Open
#4,769 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
235
Forks
192
Avg merge
1d 23h
Merged PRs (30d)
13

Description

The current Gitea template runs the container as root, which triggers a security finding. I would like to check if the template can be updated to run as a non-root user, similar to the recent changes made for Guacamole.

Suggestions:

  • Switch the container to a non-root user after system-level setup (certificate installation, file permissions, etc.).
  • Ensure configure_gitea.sh and the Gitea entrypoint operate correctly under the non-root user.
  • Adjust any required permissions or s6-related paths as needed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Gitea template, configure_gitea.sh, the Gitea entrypoint, and the s6-related paths. Compare them with the recent Guacamole non-root changes and verify which setup steps must remain privileged. Done means the container runs as a non-root user while certificate installation, permissions, configuration, entrypoint behavior, and s6 paths continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops, infrastructure, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.