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

[Unreleased Bug] [master] Cannot create cluster in CIS mode #2194

Closed
rancher-max opened this issue Dec 1, 2021 · 1 comment
Closed

[Unreleased Bug] [master] Cannot create cluster in CIS mode #2194

rancher-max opened this issue Dec 1, 2021 · 1 comment
Assignees
Labels
kind/bug Something isn't working

Comments

@rancher-max
Copy link
Member

The profile flag is being ignored due to changes made for #2103, which prevents running rke2 in CIS mode with this flag.

Logs from a node:

$ journalctl -eu rke2-server -f
-- Logs begin at Wed 2021-12-01 05:24:55 UTC. --
Dec 01 05:28:47 ip-172-31-8-156.us-east-2.compute.internal systemd[1]: Starting Rancher Kubernetes Engine v2 (server)...
Dec 01 05:28:47 ip-172-31-8-156.us-east-2.compute.internal systemd[1]: Started Rancher Kubernetes Engine v2 (server).
Dec 01 05:28:47 ip-172-31-8-156.us-east-2.compute.internal rke2[14094]: time="2021-12-01T05:28:47Z" level=warning msg="Unknown flag --profile found in config.yaml, skipping\n"
Dec 01 05:28:47 ip-172-31-8-156.us-east-2.compute.internal rke2[14094]: time="2021-12-01T05:28:47Z" level=warning msg="not running in CIS mode"
...

Example of problems this causes:
https://docs.rke2.io/security/cis_self_assessment15/#1112

$ sudo stat -c %U:%G /var/lib/rancher/rke2/server/db/etcd
root:root
@rancher-max
Copy link
Member Author

Validated using v1.22.4-rc2+rke2r1 this has been resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants