-
Notifications
You must be signed in to change notification settings - Fork 1.9k
apm-server: Run as non-root user #785
Comments
Hi @caiconkhicon, thanks for submitting this issue. Can you provide more details about your environment by answering to all the questions asked in the bug report template? |
Hi @jmlrt , thank you for your reply. I am happy to provide necessary information. However, IMO, my request here is a feature request. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still valid, however we won't be able to handle it in the short run. |
@jmlrt : I think I can. Give a one week, I will try to find a time when I can do it. |
@jmlrt : There is another problem to let apm-server run as root: the binary is owned by
Thus, when running it as non-root, this error appears:
I think the fix should be in the |
@caiconkhicon, |
@jmlrt : I created an issue in https://github.com/elastic/apm-server and discussed with ppl there. It seems that this is not a bug/issue there but a security limitation. Thus, the apm-server pod must run with |
This commit update APM server pod to run with UID 1000 instead of 0 (root). Note that GID 0 is still required due to apm-server binary default files permissions. Fix elastic#785
Describe the feature:
I want to run apm-server as a non-root user, same as described here: helm/charts#18366
Currently, if I set
podSecurityContext
, the Pod fails with the error:The text was updated successfully, but these errors were encountered: