-
Notifications
You must be signed in to change notification settings - Fork 593
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
Components should not require root to run #517
Comments
For the application parts, the path for the JWT key is configurable so I can get those to run as nonroot by using /tmp instead of /root |
Thank you for filing this issue, Roland! This is definitely an unintended results of using root in some of our images. Could you provide us with some more details of which images are blocked because of this root-user issue and how this could be mitigated? |
I've managed to get all working without root, except for the two database ones. For the two postgres images, I've tried setting the user to |
We're still thinking of looking into this. |
@mathieu-benoit all that's missing for this issue to be closed is the two databases, correct? |
It would be great if someone could look at this. When doing this:
We got this errors in the logs of the associated
This issue is in the Good first issue anyone? :) This will remove 2
|
@bourgeoisor I assign it to you for the follow up. Please, update the current status of running ledge-db container as non-root user. |
Update to cool down out-of-SLO list:
|
I have committed the last commit having command |
In clusters with PodSecurityPolicies active and restrictions on which images can run as root, it's hard to deploy this demo application. The DB components fail to start when trying to start as non root (using the postgres user (id 70) in the securityContext).
The app components requiring the JWT secret also fail to start as the key is mounted and expected in the /root directory.
The text was updated successfully, but these errors were encountered: