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
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:
rke2/pkg/cli/cmds/root.go
Line 251 in cc949dd
and output is:
So maybe there is another place that this check is done?
br hw