Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reportportal : securitycontext(fsgroup/runAsUser) ? #31

Open
alnhk opened this issue Jul 2, 2019 · 3 comments
Open

reportportal : securitycontext(fsgroup/runAsUser) ? #31

alnhk opened this issue Jul 2, 2019 · 3 comments

Comments

@alnhk
Copy link

alnhk commented Jul 2, 2019

Hello.,

We want to deploy reportportal to kubernetes (1.14.1), however, we have a security requirement that the pods/statefulset shouldnt' start with root as user, should have securitycontext with annotations enabled. Can any one please share what is the detail of fsgroup, runAsUser ?

@avarabyeu
Copy link
Member

@englandprevails
Copy link

Bitnami's guide, regrettably, is actually not entirely adequate - it provides some ill-advised information for improperly addressing the situation.

Yes, it's good to run containers as a non-root user. However, the way this guide attempts to address the issue will not work in most large real-world deployments. Unfortunately, Bitnami images will not run as configured in a professionally-operated enterprise-class OpenShift environment. Notice in particular how the guide's advice is for you to not modify the container, but to reconfigure your infrastructure's environment to accommodate what the image happens to have in /etc/passwd.

Most OpenShift users are in a managed environment where they will not have access to redefine the Security Context restricted by OpenShift administrators. Hard-coding the fsGroup and runAsUser in a distributed deployment spec with the expectation that the end-user has access to set these values is a certain way to have failed deployments and "Forbidden" access restriction errors.

To better understand how containers actually run in a fully-configured OpenShift environment, consider the user to be pre-assigned some random UID in the 10-100 million range, and GID 0.

@naddison
Copy link

Can report portal docker images be configured to not use a root user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants