question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pulsar containers should not run as the root user

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
michaeljmarshallcommented, Jul 8, 2021
0reactions
frankjkellycommented, Jul 8, 2021

@michaeljmarshall thanks - that sounds good

Read more comments on GitHub >

github_iconTop Results From Across the Web

Processes In Containers Should Not Run As Root - Medium
Processes in a container should not run as root, or assume that they are root. Instead, create a user in your Dockerfile with...
Read more >
Set up a standalone Pulsar in Docker
Pulsar offers client libraries for Java, Go, Python and C++. If you're running a local standalone cluster, you can use one of these...
Read more >
Astrophysical data analysis setup, using Docker
I usually do not run analysis as root, but I create a user first: ... From now on, you will be able to...
Read more >
OpenShift OKD will not run the pulsar-manager container as a ...
[GitHub] [pulsar-manager] hollander-cegeka opened a new issue #407: ... OpenShift OKD does not support running containers as a root user.
Read more >
Reducing Security Vulnerabilities in Kubernetes - DataStax
A root user inside a container can run every command as a root user on a traditional host system, including starting services, installing ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found