You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pulsar containers should not run as the root user #8751
Is your enhancement request related to a problem? Please describe.
The image produced by pulsar unnecessarily runs as the root user. My company requires applications to run with the least privilege necessary, and the current pulsar docker images do not comply with that policy.
Describe the solution you'd like
Given that pulsar only needs privileges to read/write from/to certain directories, the Dockerfile should add a user with the appropriate level of permission, chown the appropriate directories, and then run as that user.
Describe alternatives you've considered
I don't see an alternative--Pulsar does not need root privileges.
Additional context
Note that I want to deploy pulsar on a kubernetes cluster that has a pod security policy that prevents applications from running as root. Given that it is a good security principal to give applications the least permission possible, I see this enhancement as a way to make pulsar more secure and more easy to adopt for other organizations.
@sijie Although originally closed due to this PR #8796 however this PR appears to have reverted it #10861 - should the issue be reopened or is there an equivalent issue that covers this request?
@frankjkelly - I don't know of any equivalent issue. I will open a new issue today with details for what needs to happen in order to get this feature added. Based on a recent pulsar community meeting, there is a desire for more integration testing before merging this change. I plan to help contribute this feature, but I don't expect to be able to work on it for a couple of weeks.
Activity
hpvd commentedon Nov 30, 2020
related to
unable to run on rootless kubernetess #7210
[Issue 8751] Update Dockerfile for Pulsar and Dashboard to Create and…
[Issue 8751] Update Dockerfile for Pulsar and Dashboard to Create and…
[Issue 8751] Update Dockerfile for Pulsar and Dashboard to Create and…
[Issue 8751] Update Dockerfile for Pulsar and Dashboard to Create and…
[Issue 8751] Update Dockerfile for Pulsar and Dashboard to Create and…
[Issue 8751] Update Dockerfile for Pulsar and Dashboard to Create and…
frankjkelly commentedon Jul 8, 2021
@sijie Although originally closed due to this PR #8796 however this PR appears to have reverted it #10861 - should the issue be reopened or is there an equivalent issue that covers this request?
michaeljmarshall commentedon Jul 8, 2021
@frankjkelly - I don't know of any equivalent issue. I will open a new issue today with details for what needs to happen in order to get this feature added. Based on a recent pulsar community meeting, there is a desire for more integration testing before merging this change. I plan to help contribute this feature, but I don't expect to be able to work on it for a couple of weeks.
frankjkelly commentedon Jul 8, 2021
@michaeljmarshall thanks - that sounds good
michaeljmarshall commentedon Jul 8, 2021
@frankjkelly - here is the new issue: #11269.
[Issue 8751] Update Dockerfile for Pulsar and Dashboard to Create and…