Skip to content

RKE2 with CIS-1.6 failing on Flatcar OS #2511

@hwaastad

Description

@hwaastad

Environmental Info:
RKE2 Version:
RKE2 v1.21.9+rke2r1

Node(s) CPU architecture, OS, and Version:
Linux docker-ingress 5.10.96-flatcar #1 SMP Thu Feb 3 20:00:07 -00 2022 x86_64 Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz GenuineIntel GNU/Linux

Describe the bug:
Trying to enable CIS-1.6 profile on flatcar fails in finding etcd group/user

Steps To Reproduce:
Enable CIS-1.6 profile on a cluster of FlatCar OS. etcd will not start due to missing group

Expected behavior:
etcd exists on OS and etcd should start

Did a simple test on OS, similar to:

if _, err := user.LookupGroup("etcd"); err != nil {

package main

import "fmt"
import "os/user"

func main(){
        fmt.Println("Hello world")
        if _, err := user.Lookup("etcd"); err != nil {
                fmt.Println("Missing etcd user")
        } else {
                fmt.Println("Found etcd user")
        }
        if _, err := user.LookupGroup("etcd"); err != nil {
                fmt.Println("missing etcd group")
        } else {
                fmt.Println("Found etcd Group")
        }
        fmt.Println(user.Lookup("etcd"))
        fmt.Println(user.LookupGroup("etcd"))
}

and output is:

Hello world
Found etcd user
Found etcd Group
&{232 232 etcd  /dev/null} <nil>
&{232 etcd} <nil>

So maybe there is another place that this check is done?

br hw

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions