Skip to content

Ensure that the kubeadmin secret has been removed

An XCCDF Rule

Description

The kubeadmin user is meant to be a temporary user used for bootstrapping purposes. It is preferable to assign system administrators whose users are backed by an Identity Provider.
Make sure to remove the user as described in the documentation

warning alert: Warning

This rule's check operates on the cluster configuration dump. Therefore, you need to use a tool that can query the OCP API, retrieve the /api/v1/namespaces/kube-system/secrets/kubeadmin API endpoint to the local /api/v1/namespaces/kube-system/secrets/kubeadmin file.

Rationale

The kubeadmin user has an auto-generated password and a self-signed certificate, and has effectively

cluster-admin
permissions; therefore, it's considered a security liability.

ID
xccdf_org.ssgproject.content_rule_kubeadmin_removed
Severity
Medium
References
Updated