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

add rng-tools for more entropy in /dev/random? #659

Open
ltalirz opened this issue Mar 13, 2021 · 1 comment
Open

add rng-tools for more entropy in /dev/random? #659

ltalirz opened this issue Mar 13, 2021 · 1 comment

Comments

@ltalirz
Copy link

ltalirz commented Mar 13, 2021

libsodium requires some "randomness" at startup - if not enough entropy is available from /dev/random it hangs.

In containers there can be little sources for entropy. As described in the docs of libsodium, one workaround is to install the rng-tools (here some docs on what those do).

Would that be considered as an addition to the herokuish Dockerfiles?
If yes, happy to make a PR if you let me know where this should go.

P.S. libsodium is used e.g. in libzmq => pyzmq => jupyter, i.e. this affects anyone wanting to run jupyter notebooks via voila apps which would randomly hang in herokuish containers.

Related issues
jedisct1/libsodium#933
zeromq/libzmq#3183
zeromq/pyzmq#1224 (comment)
jupyter/help#480 (comment)

@ltalirz ltalirz changed the title add rng-tools for more entropy in dev/random? add rng-tools for more entropy in /dev/random? Mar 13, 2021
@josegonzalez
Copy link
Member

Does heroku have that? My concern is moving too far away from their base offering. Not opposed to it, just want to be careful of how we differ so that folks don't get the wrong idea.

Additionally, I wonder if this is something that would impact cloud native buildpacks, which are the future of buildpacks in general. Would be great if you can inquire in that community slack about this as well.

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

2 participants