Chapter 12. Reviewing cluster configuration Learn how to use the Configuration Management view and understand the correlation between various entities in your cluster to manage your cluster configuration efficiently. Every OpenShift Container Platform cluster includes many different entities distributed throughout the cluster, which makes it more challenging to understand and act on the available information. Red Hat Advanced Cluster Security for Kubernetes (RHACS) provides efficient configuration management that combines all these distributed entities on a single page. It brings together information about all your clusters, namespaces, nodes, deployments, images, secrets, users, groups, service accounts, and roles in a single Configuration Management view, helping you visualize different entities and the connections between them. 12.1. Using the Configuration Management view To open the Configuration Management view, select Configuration Management from the navigation menu. Similar to the Dashboard , it displays some useful widgets. These widgets are interactive and show the following information: Security policy violations by severity The state of CIS (Center for Information Security) for Kubernetes benchmark controls Users with administrator rights in the most clusters Secrets used most widely in your clusters The header in the Configuration Management view shows you the number of policies and CIS controls in your cluster. Note Only policies in the Deploy lifecycle phase are included in the policy count and policy list view. The header includes drop-down menus that allow you to switch between entities. For example, you can: Click Policies to view all policies and their severity, or select CIS Controls to view detailed information about all controls. Click Application and Infrastructure and select clusters, namespaces, nodes, deployments, images, and secrets to view detailed information. Click RBAC Visibility and Configuration and select users and groups, service accounts, and roles to view detailed information. 12.2. Identifying misconfigurations in Kubernetes roles You can use the Configuration Management view to identify potential misconfigurations, such as users, groups, or service accounts granted the cluster-admin role, or roles that are not granted to anyone. 12.2.1. Finding Kubernetes roles and their assignment Use the Configuration Management view to get information about the Kubernetes roles that are assigned to specific users and groups. Procedure Go to the RHACS portal and click Configuration Management . Select Role-Based Access Control Users and Groups from the header in the Configuration Management view. The Users and Groups view displays a list of Kubernetes users and groups, their assigned roles, and whether the cluster-admin role is enabled for each of them. Select a user or group to view more details about the associated cluster and namespace permissions. 12.2.2. Finding service accounts and their permissions Use the Configuration Management view to find out where service accounts are in use and their permissions. Procedure In the RHACS portal, go to Configuration Management . Select RBAC Visibility and Configuration Service Accounts from the header in the Configuration Management view. The Service Accounts view displays a list of Kubernetes service accounts across your clusters, their assigned roles, whether the cluster-admin role is enabled, and which deployments use them. Select a row or an underlined link to view more details, including which cluster and namespace permissions are granted to the selected service account. 12.2.3. Finding unused Kubernetes roles Use the Configuration Management view to get more information about your Kubernetes roles and find unused roles. Procedure In the RHACS portal, go to Configuration Management . Select RBAC Visibility and Configuration Roles from the header in the Configuration Management view. The Roles view displays a list of Kubernetes roles across your clusters, the permissions they grant, and where they are used. Select a row or an underlined link to view more details about the role. To find roles not granted to any users, groups, or service accounts, select the Users & Groups column header. Then select the Service Account column header while holding the Shift key. The list shows the roles that are not granted to any users, groups, or service accounts. 12.3. Viewing Kubernetes secrets View Kubernetes secrets in use in your environment and identify deployments using those secrets. Procedure In the RHACS portal, go to Configuration Management . On the Secrets Most Used Across Deployments widget, select View All . The Secrets view displays a list of Kubernetes secrets. Select a row to view more details. Use the available information to identify if the secrets are in use in deployments where they are not needed. 12.4. Finding policy violations The Policy Violations by Severity widget in the Configuration Management view displays policy violations in a sunburst chart. Each level of the chart is represented by one ring or circle. The innermost circle represents the total number of violations. The ring represents the Low , Medium , High , and Critical policy categories. The outermost ring represents individual policies in a particular category. The Configuration Management view only shows the information about policies that have the Lifecycle Stage set to Deploy . It does not include policies that address runtime behavior or those configured for assessment in the Build stage. Procedure In the RHACS portal, go to Configuration Management . On the Policy Violations by Severity widget, move your mouse over the sunburst chart to view details about policy violations. Select n rated as high , where n is a number, to view detailed information about high-priority policy violations. The Policies view displays a list of policy violations filtered on the selected category. Select a row to view more details, including policy description, remediation, deployments with violations, and more. The details are visible in a panel. The Policy Findings section in the information panel lists deployments where these violations occurred. Select a deployment under the Policy Findings section to view related details including Kubernetes labels, annotations, and service account. You can use the detailed information to plan a remediation for violations. 12.5. Finding failing CIS controls Similar to the Policy Violations sunburst chart in the Configuration Management view, the CIS Kubernetes v1.5 widget provides information about failing Center for Information Security (CIS) controls. Each level of the chart is represented by one ring or circle. The innermost circle represents the percentage of failing controls. The ring represents the control categories. The outermost ring represents individual controls in a particular category. Procedure To view details about failing controls, hover over the sunburst chart. To view detailed information about failing controls, select n Controls Failing , where n is a number. The Controls view displays a list of failing controls filtered based on the compliance state. Select a row to view more details, including control descriptions and nodes where the controls are failing. The Control Findings section in the information panel lists nodes where the controls are failing. Select a row to view more details, including Kubernetes labels, annotations, and other metadata. You can use the detailed information to focus on a subset of nodes, industry standards, or failing controls. You can also assess, check, and report on the compliance status of your containerized infrastructure.

Commands: