Guide to the Secure Configuration of Red Hat OpenShift Container Platform 4
Rules, Groups, and Values defined within the XCCDF Benchmark
-
Ensure that OpenShift Logging Operator is scanning the cluster
OpenShift Logging Operator provides ability to aggregate all the logs from the OpenShift Container Platform cluster, such as node system audit logs, application container logs, and infrastructure l...Rule Medium Severity -
Record Access Events to Kubernetes Audit Log Directory
The audit system should collect access events to read the Kubernetes audit log directory. The following audit rule will assure that access to audit log directory are collected. <pre>-a always,exit ...Rule Medium Severity -
Record Access Events to OAuth Audit Log Directory
The audit system should collect access events to read the OAuth audit log directory. The following audit rule will assure that access to audit log directory are collected. <pre>-a always,exit -F di...Rule Medium Severity -
Record Access Events to OpenShift Audit Log Directory
The audit system should collect access events to read the OpenShift audit log directory. The following audit rule will assure that access to audit log directory are collected. <pre>-a always,exit -...Rule Medium Severity -
The Kubernetes Audit Logs Directory Must Have Mode 0700
To properly set the permissions of/var/log/kube-apiserver/
, run the command:$ sudo chmod 0700 /var/log/kube-apiserver/
Rule Medium Severity -
The OAuth Audit Logs Directory Must Have Mode 0700
To properly set the permissions of/var/log/oauth-apiserver/
, run the command:$ sudo chmod 0700 /var/log/oauth-apiserver/
Rule Medium Severity -
The OpenShift Audit Logs Directory Must Have Mode 0700
To properly set the permissions of/var/log/openshift-apiserver/
, run the command:$ sudo chmod 0700 /var/log/openshift-apiserver/
Rule Medium Severity -
OAuth Audit Logs Must Be Owned By Root
All audit logs must be owned by root user and group. By default, the path for the OAuth audit log is <pre>/var/log/oauth-apiserver/</pre>. To properly set the owner of <code>/var/log/oauth-apiserv...Rule Medium Severity -
OpenShift Audit Logs Must Be Owned By Root
All audit logs must be owned by root user and group. By default, the path for the OpenShift audit log is <pre>/var/log/openshift-apiserver/</pre>. To properly set the owner of <code>/var/log/opens...Rule Medium Severity -
Kubernetes Audit Logs Must Have Mode 0600
To properly set the permissions of/var/log/kube-apiserver/.*
, run the command:$ sudo chmod 0600 /var/log/kube-apiserver/.*
Rule Medium Severity -
OAuth Audit Logs Must Have Mode 0600
To properly set the permissions of/var/log/oauth-apiserver/.*
, run the command:$ sudo chmod 0600 /var/log/oauth-apiserver/.*
Rule Medium Severity -
OpenShift Audit Logs Must Have Mode 0600
To properly set the permissions of/var/log/openshift-apiserver/.*
, run the command:$ sudo chmod 0600 /var/log/openshift-apiserver/.*
Rule Medium Severity -
Ensure /var/log/oauth-apiserver Located On Separate Partition
OpenShift OAuth server audit logs are stored in the <code>/var/log/oauth-apiserver</code> directory. <p> Partitioning Red Hat CoreOS is a Day 1 operation and cannot be changed afterwards. For docum...Rule Medium Severity -
OpenShift - Master Node Settings
Contains evaluations for the master node configuration settings.Group -
Verify Group Who Owns The OpenShift Container Network Interface Files
To properly set the group owner of/etc/cni/net.d/*
, run the command:$ sudo chgrp root /etc/cni/net.d/*
Rule Medium Severity -
Verify Group Who Owns The OpenShift Controller Manager Kubeconfig File
To properly set the group owner of <code>/etc/kubernetes/static-pod-resources/kube-controller-manager-pod-*/configmaps/controller-manager-kubeconfig/kubeconfig</code>, run the command: <pre>$ sudo...Rule Medium Severity -
Verify Group Who Owns The Etcd Database Directory
To properly set the group owner of/var/lib/etcd/member/
, run the command:$ sudo chgrp root /var/lib/etcd/member/
Rule Medium Severity -
Verify Group Who Owns The Etcd Write-Ahead-Log Files
To properly set the group owner of/var/lib/etcd/member/wal/*
, run the command:$ sudo chgrp root /var/lib/etcd/member/wal/*
Rule Medium Severity -
Verify Group Who Owns The OpenShift SDN Container Network Interface Plugin IP Address Allocations
To properly set the group owner of/var/lib/cni/networks/openshift-sdn/.*
, run the command:$ sudo chgrp root /var/lib/cni/networks/openshift-sdn/.*
Rule Medium Severity -
Verify Group Who Owns The Kubernetes API Server Pod Specification File
To properly set the group owner of <code>/etc/kubernetes/static-pod-resources/kube-apiserver-pod-*/kube-apiserver-pod.yaml</code>, run the command: <pre>$ sudo chgrp root /etc/kubernetes/static-po...Rule Medium Severity
Node 2
The content of the drawer really is up to you. It could have form fields, definition lists, text lists, labels, charts, progress bars, etc. Spacing recommendation is 24px margins. You can put tabs in here, and can also make the drawer scrollable.