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

Nginx as less privileged User #1553

Open
belfhi opened this issue Aug 14, 2024 · 0 comments
Open

Nginx as less privileged User #1553

belfhi opened this issue Aug 14, 2024 · 0 comments

Comments

@belfhi
Copy link

belfhi commented Aug 14, 2024

Nginx as less privileged User

Summary

In order to run the frontend image in a restricted environment,
for example where [pod security standards](https://kubernetes.io/docs/concepts/security/pod-security-standards/_ are set to restricted, the
USER root is not allowed.
This also applies for Openshift afaik.

Steps to Reproduce

try to run the image on a kubernetes cluster where spec.containers[*].securityContext.runAsNonRoot is enforces.

Current Behaviour

If fails

Expected Behaviour

it runs, root should not be needed in this context

Extra Details

In general, port 80 is considered a "high privilege" port in Linux.
It is sufficiemt for the reverse proxy to run with this (and port 443) port.
The upstream server does not need to run on this port.

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

No branches or pull requests

1 participant