Skip to content

Run Gitea as non-root user #4769

@VijayaraghavanPS

Description

@VijayaraghavanPS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions