Hey all, does anyone have more detailed informatio...
# rke2
c
Hey all, does anyone have more detailed information on the CIS Hardening guides Host level requirements? https://docs.rke2.io/security/hardening_guide. The documentation says its required but doesnt really say why they are required. The kernel parameters that are required for CIS with RKE2 are:
Copy code
# /usr/local/share/rke2/rke2-cis-sysctl.conf
vm.panic_on_oom=0
vm.overcommit_memory=1
kernel.panic=10
kernel.panic_on_oops=1
The
vm.overcommit_memory
seems questionable to me. The kernel docs (https://www.kernel.org/doc/Documentation/sysctl/vm.txt) call out:
Copy code
overcommit_memory:

This value contains a flag that enables memory overcommitment.

When this flag is 0, the kernel attempts to estimate the amount
of free memory left when userspace requests more memory.

When this flag is 1, the kernel pretends there is always enough
memory until it actually runs out.

When this flag is 2, the kernel uses a "never overcommit"
policy that attempts to prevent any overcommit of memory.
Note that user_reserve_kbytes affects this policy.

This feature can be very useful because there are a lot of
programs that malloc() huge amounts of memory "just-in-case"
and don't use much of it.

The default value is 0.
Does anyone know what this has to do with CIS controls? Also why is this the default parameter? Memory seems like one of those things that you do not want to overcommit imo. Any thoughts or info would be appreciated.
c
They are required because CIS requires them. The CIS benchmarks are developed by an industry group and published to members. Our guides reference those benchmarks. The reasoning WHY something is required is usually covered in the full publication.
c
Thanks for the fast response, Brandon! I will take a look at those docs
Hey Brandond, do you happen to remember what CIS benchmark document is typically rke2 refers to? Ive looked at the
CIS Kubernetes Benchmark v1.12 - 09-26-2025
and
CIS Ubuntu Linux 24.04 LTS Benchmark v1.0.0 - 08-26-2024
but cannot find any document that refers to that configuration. The picture below doesnt show RKE2 either so maybe im missing something here. If you have any suggestions or pointers, that would be appreciated. Thanks!
Actually Ive found that this falls under the protect-kernel-defaults. I was searching for overcommit_memory. So that gives me more to go on. Thanks