SV-257535r960939_rule
V-257535
SRG-APP-000121-CTR-000255
CNTR-OS-000330
CAT II
10
Remove view permissions from any unauthorized user or group by performing one or more of the following commands.
Remove role from user by executing the following:
oc adm policy remove-role-from-user <ROLE> <USER> -n openshift-logging
Remove role from group by executing the following:
oc adm policy remove-role-from-group <ROLE> <GROUP> -n openshift-logging
Remove cluster role from user by executing the following:
oc adm policy remove-cluster-role-from-user <CLUSTER_ROLE> <USER> -n openshift-logging
Remove cluster role from group by executing the following:
oc adm policy remove-cluster-role-from-group <CLUSTER_ROLE> <GROUP> -n openshift-logging
Note: ROLE/CLUSTER_ROLE is the role granting user view permission to resources in openshift-logging namespace.
List the users and groups who have permission to view the cluster logging configuration by executing the following two commands:
oc policy who-can view ClusterLogging -n openshift-logging
oc policy who-can view ClusterLoggingForwarder -n openshift-logging
Review the list of users and groups who have view access to the cluster logging resources. If any user or group listed must not have access to view the cluster logging resources, this is a finding.
V-257535
False
CNTR-OS-000330
List the users and groups who have permission to view the cluster logging configuration by executing the following two commands:
oc policy who-can view ClusterLogging -n openshift-logging
oc policy who-can view ClusterLoggingForwarder -n openshift-logging
Review the list of users and groups who have view access to the cluster logging resources. If any user or group listed must not have access to view the cluster logging resources, this is a finding.
M
5547