-
Notifications
You must be signed in to change notification settings - Fork 33
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
Haveged entropy gathering daemon (new package) or rngd.service by default #207
Comments
Hi, I also see that |
Thank you for the suggestion, I had assumed that there was not HW RNG support on my host (DigitalOcean) because of open issues requesting it (https://ideas.digitalocean.com/ideas/DO-I-2147) but I'll have to do more research to make sure this is available on all of our hosts, but this is a very good interim solution. Thank you for the suggestion. |
Did you check what Good, curious to hear back. As first result of this request here I would at try to enable rngd by default but we keep can keep the request open to consider haveged for corner cases. |
To repeat the part that was not done yet: possible enable Adding havegd as new package can be discussed but I would not do it unless really needed |
We decided to drop even rngd because since kernel 5.4 the issue of early-boot blocking is resolved and now with the upcoming kernels even /dev/random will just behave like /dev/urandom. |
Haveged
Haveged allows generating randomness based on variations in code execution time on a processor.
Impact of adding this package to the Flatcar OS image
This package meets the requirements of Flatcar Container Linux’ new package guidelines: https://github.com/flatcar-linux/Flatcar/blob/master/adding-new-packages.md
The package improves on the following core values:
The package will increase the OS image by: 80 KBytes.
The package will potentially increase Flatcar’s attack surface:
Benefits of adding this package to the Flatcar OS image
Booting Flatcar on some virtual hosting providers without a reliable source of hardware entropy (mouse, keyboard, disk interrupts) can take a very long - and variable - time.
Booting Flatcar on DigitalOcean sometimes takes >3 minutes before the Docker daemon is started because the system blocks until enough entropy is gathered (
random: crng init done
- related StackExchange here: https://unix.stackexchange.com/questions/442698/when-i-log-in-it-hangs-until-crng-init-done).Running haveged in a Docker container (like https://github.com/harbur/docker-haveged) is not an option, since Docker daemon itself is blocked from starting by the lack of available entropy.
Allowing Flatcar users on virtual hosting providers with constrained entropy to enable HAVEGED via an ignition config would help reduce the problem of Flatcar hosts occasionally hanging on boot for multiple minutes while entropy is gathered.
The text was updated successfully, but these errors were encountered: