Skip to content

Guide to the Secure Configuration of Red Hat OpenShift Container Platform 4

Rules, Groups, and Values defined within the XCCDF Benchmark

  • Ensure Eviction threshold Settings Are Set - evictionSoft: nodefs.inodesFree

    <p>Two types of garbage collection are performed on an OpenShift Container Platform node:</p> <ul> <li...
    Rule Medium Severity
  • Ensure Eviction threshold Settings Are Set - evictionSoft: nodefs.inodesFree

    <p>Two types of garbage collection are performed on an OpenShift Container Platform node:</p> <ul> <li...
    Rule Medium Severity
  • kubelet - Ensure that the --read-only-port is secured

    Disable the read-only port.
    Rule Medium Severity
  • kubelet - Ensure that the --read-only-port is secured

    Disable the read-only port.
    Rule Medium Severity
  • kubelet - Ensure that the --read-only-port is secured

    Disable the read-only port.
    Rule Medium Severity
  • kubelet - Ensure that the --read-only-port is secured

    Disable the read-only port.
    Rule Medium Severity
  • Ensure that Audit Log Errors Emit Alerts

    <p> OpenShift audit works at the API server level, logging all requests coming to the server. However, if API server instance is unable to write er...
    Rule High Severity
  • Ensure that Audit Log Forwarding Uses TLS

    <p> OpenShift audit works at the API server level, logging all requests coming to the server. Audit is on by default and the best pr...
    Rule Medium Severity
  • Ensure that the cluster's audit profile is properly set

    <p> OpenShift can audit the details of requests made to the API server through the standard Kubernetes audit capabilities. </p> ...
    Rule Medium Severity
  • 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...
    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...
    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 ...
    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 ...
    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 <code>/var/log/openshift-apiserver/</code>, run the command: <pre>$ sudo chmod 0700 /var/log/openshift-apiserve...
    Rule Medium Severity
  • Kubernetes Audit Logs Must Be Owned By Root

    All audit logs must be owned by root user and group. By default, the path for the Kubernetes audit log is <pre>/var/log/kube-apiserver/</pre>. To ...
    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 prop...
    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>. ...
    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 <code>/var/log/oauth-apiserver/.*</code>, run the command: <pre>$ sudo chmod 0600 /var/log/oauth-apiserver/.*</...
    Rule Medium Severity
  • OpenShift Audit Logs Must Have Mode 0600

    To properly set the permissions of <code>/var/log/openshift-apiserver/.*</code>, run the command: <pre>$ sudo chmod 0600 /var/log/openshift-apiser...
    Rule Medium Severity
  • Ensure /var/log/kube-apiserver Located On Separate Partition

    Kubernetes API server audit logs are stored in the <code>/var/log/kube-apiserver</code> directory. <p> Partitioning Red Hat CoreOS is a Day 1 opera...
    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 ope...
    Rule Medium Severity
  • Ensure /var/log/openshift-apiserver Located On Separate Partition

    Openshift API server audit logs are stored in the <code>/var/log/openshift-apiserver</code> directory. <p> Partitioning Red Hat CoreOS is a Day 1 o...
    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-kubeconf...
    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 Etcd PKI Certificate Files

    To properly set the group owner of <code>/etc/kubernetes/static-pod-resources/*/*/*/*.crt</code>, run the command: <pre>$ sudo chgrp root /etc/kub...
    Rule Medium Severity
  • Verify Group Who Owns The OpenShift SDN Container Network Interface Plugin IP Address Allocations

    To properly set the group owner of <code>/var/lib/cni/networks/openshift-sdn/.*</code>, run the command: <pre>$ sudo chgrp root /var/lib/cni/netwo...
    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...
    Rule Medium Severity
  • Verify Group Who Owns The Kubernetes Controller Manager Pod Specification File

    To properly set the group owner of <code>/etc/kubernetes/static-pod-resources/kube-controller-manager-pod-*/kube-controller-manager-pod.yaml</code...
    Rule Medium Severity
  • Verify Group Who Owns The Kubernetes Scheduler Pod Specification File

    To properly set the group owner of <code>/etc/kubernetes/static-pod-resources/kube-scheduler-pod-*/kube-scheduler-pod.yaml</code>, run the command...
    Rule Medium Severity
  • Verify Group Who Owns The OpenShift Admin Kubeconfig File

    To properly set the group owner of /etc/kubernetes/kubeconfig, run the command:
    $ sudo chgrp root /etc/kubernetes/kubeconfig
    Rule Medium Severity
  • Verify Group Who Owns The OpenShift Admin Kubeconfig Files

    To properly set the group owner of <code>/etc/kubernetes/static-pod-resources/kube-apiserver-certs/secrets/node-kubeconfigs/*.kubeconfig</code>, r...
    Rule Medium Severity
  • Verify Group Who Owns The OpenShift Multus Container Network Interface Plugin Files

    To properly set the group owner of <code>/var/run/multus/cni/net.d/*</code>, run the command: <pre>$ sudo chgrp root /var/run/multus/cni/net.d/*</...
    Rule Medium Severity
  • Verify Group Who Owns The OpenShift PKI Certificate Files

    To properly set the group owner of <code>/etc/kubernetes/static-pod-resources/*/*/*/tls.crt</code>, run the command: <pre>$ sudo chgrp root /etc/k...
    Rule Medium Severity
  • Verify Group Who Owns The OpenShift PKI Private Key Files

    To properly set the group owner of <code>/etc/kubernetes/static-pod-resources/*/*/*/*.key</code>, run the command: <pre>$ sudo chgrp root /etc/kub...
    Rule Medium Severity
  • Verify Group Who Owns The OpenShift SDN CNI Server Config

    To properly set the group owner of <code>/var/run/openshift-sdn/cniserver/config.json</code>, run the command: <pre>$ sudo chgrp root /var/run/ope...
    Rule Medium Severity
  • Verify Group Who Owns The OpenShift Open vSwitch Files

    To properly set the group owner of /etc/openvswitch/.*, run the command:
    $ sudo chgrp root /etc/openvswitch/.*
    Rule Medium Severity
  • Verify Group Who Owns The OVNKubernetes Socket

    To properly set the group owner of <code>/run/ovn-kubernetes/cni/ovn-cni-server.sock</code>, run the command: <pre>$ sudo chgrp root /run/ovn-kube...
    Rule Medium Severity
  • Verify Group Who Owns The OVNKubernetes DB files

    To properly set the group owner of /var/lib/ovn/etc/*.db, run the command:
    $ sudo chgrp root /var/lib/ovn/etc/*.db
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Configuration Database

    Check if the group owner of <code>/etc/openvswitch/conf.db</code> is <code>hugetlbfs</code> on architectures other than s390x or <code>openvswitch<...
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Configuration Database Lock

    Check if the group owner of <code>/etc/openvswitch/conf.db.~lock~</code> is <code>hugetlbfs</code> on architectures other than s390x or <code>openv...
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Configuration Database Lock

    To properly set the group owner of <code>/etc/openvswitch/.conf.db.~lock~</code>, run the command: <pre>$ sudo chgrp hugetlbfs /etc/openvswitch/.c...
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Configuration Database Lock

    To properly set the group owner of <code>/etc/openvswitch/.conf.db.~lock~</code>, run the command: <pre>$ sudo chgrp hugetlbfs /etc/openvswitch/.c...
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Configuration Database

    To properly set the group owner of /etc/openvswitch/conf.db, run the command:
    $ sudo chgrp hugetlbfs /etc/openvswitch/conf.db
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Configuration Database

    To properly set the group owner of <code>/etc/openvswitch/conf.db</code>, run the command: <pre>$ sudo chgrp openvswitch /etc/openvswitch/conf.db<...
    Rule Medium Severity

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.

Capacity
Modules