bitwarden/server

Container should not run as root

Open

#2.903 aberto em 3 de mai. de 2023

Ver no GitHub
 (6 comments) (7 reactions) (0 assignees)C# (1.575 forks)batch import
bugbw-lite-deployhelp wanted

Métricas do repositório

Stars
 (18.588 stars)
Métricas de merge de PR
 (Mesclagem média 11d 10h) (147 fundiu PRs em 30d)

Description

Steps To Reproduce

  1. Install per the instructions as written at https://bitwarden.com/help/install-and-deploy-unified-beta/ that has a restrictive policy like SELinux

Expected Result

The container should run as a non-root user

Actual Result

The container cannot run in a restrictive environment where root users are not permitted or are highly restricted like in SELinux environments or Kubernetes platforms that enforce a restrictive policy like VMware Tanzu or OpenShift.

Screenshots or Videos

No response

Additional Context

I have attempted to set the running user via policy, but the image is trying to change permissions on startup and is not allowed to.

Githash Version

NA - container does not run

Environment Details

  • Operating System: Photon Linux
  • Platform: Kubernetes (Tanzu)
  • Kubernetes API: 1.21

Database Image

sqlite

Issue-Link

https://github.com/bitwarden/server/issues/2480

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Guia do colaborador