Skip to content

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

Rules, Groups, and Values defined within the XCCDF Benchmark

  • kubelet - Do Not Disable Streaming Timeouts

    Timeouts for streaming connections should not be disabled as they help to prevent denial-of-service attacks. To configure streaming connection timeouts, edit the kubelet configuration file <code>/e...
    Rule Medium Severity
  • kubelet - Ensure that the --read-only-port is secured

    Disable the read-only port.
    Rule Medium 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 practice is to ship audit logs off the cluster for r...
    Rule Medium Severity
  • Verify User Who Owns The OpenShift SDN Container Network Interface Plugin IP Address Allocations

    To properly set the owner of /var/lib/cni/networks/openshift-sdn/.*, run the command:
    $ sudo chown root /var/lib/cni/networks/openshift-sdn/.* 
    Rule Medium Severity
  • Verify User Who Owns The OpenShift Admin Kubeconfig Files

    To properly set the owner of <code>/etc/kubernetes/static-pod-resources/kube-apiserver-certs/secrets/node-kubeconfigs/*.kubeconfig</code>, run the command: <pre>$ sudo chown root /etc/kubernetes/s...
    Rule Medium Severity
  • Verify User Who Owns The OpenShift PKI Private Key Files

    To properly set the owner of /etc/kubernetes/static-pod-resources/*/*/*/*.key, run the command:
    $ sudo chown root /etc/kubernetes/static-pod-resources/*/*/*/*.key 
    Rule Medium Severity
  • Verify User Who Owns The OpenShift SDN CNI Server Config

    To properly set the owner of /var/run/openshift-sdn/cniserver/config.json, run the command:
    $ sudo chown root /var/run/openshift-sdn/cniserver/config.json 
    Rule Medium Severity
  • Verify User Who Owns The Kubernetes Scheduler Kubeconfig File

    To properly set the owner of <code>/etc/kubernetes/static-pod-resources/kube-scheduler-pod-*/configmaps/scheduler-kubeconfig/kubeconfig</code>, run the command: <pre>$ sudo chown root /etc/kuberne...
    Rule Medium Severity
  • Verify Permissions on the Etcd Member Pod Specification File

    To properly set the permissions of /etc/kubernetes/manifests/etcd-pod.yaml, run the command:
    $ sudo chmod 0600 /etc/kubernetes/manifests/etcd-pod.yaml
    Rule Medium Severity
  • Verify Permissions on the Kube Scheduler Pod Specification File

    To properly set the permissions of <code>/etc/kubernetes/static-pod-resources/kube-scheduler-pod.yaml</code>, run the command: <pre>$ sudo chmod 0600 /etc/kubernetes/static-pod-resources/kube-sche...
    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, 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
  • 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>, run the command: <pre>$ sudo chgrp root /etc/ku...
    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: <pre>$ sudo chgrp root /etc/kubernetes/static-po...
    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 Multus Container Network Interface Plugin Files

    To properly set the group owner of /var/run/multus/cni/net.d/*, run the command:
    $ 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/kubernetes/static-pod-resources/*/*/*/tls.crt</pre>...
    Rule Medium Severity
  • Verify Group Who Owns The OpenShift PKI Private Key Files

    To properly set the group owner of /etc/kubernetes/static-pod-resources/*/*/*/*.key, run the command:
    $ sudo chgrp root /etc/kubernetes/static-pod-resources/*/*/*/*.key
    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 /run/ovn-kubernetes/cni/ovn-cni-server.sock, run the command:
    $ sudo chgrp root /run/ovn-kubernetes/cni/ovn-cni-server.sock
    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 /etc/openvswitch/conf.db is hugetlbfs on architectures other than s390x or openvswitch on s390x.
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Configuration Database Lock

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

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

    To properly set the group owner of /etc/openvswitch/.conf.db.~lock~, run the command:
    $ sudo chgrp hugetlbfs /etc/openvswitch/.conf.db.~lock~
    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 /etc/openvswitch/conf.db, run the command:
    $ sudo chgrp openvswitch /etc/openvswitch/conf.db
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Process ID File

    Ensure that the file
    /var/run/openvswitch/ovs-vswitchd.pid
    , is owned by the group
    openvswitch
    or
    hugetlbfs
    , depending on your settings and Open vSwitch version.
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Persistent System ID

    Check if the group owner of /etc/openvswitch/system-id.conf is hugetlbfs on architectures other than s390x or openvswitch on x390x.
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Persistent System ID

    To properly set the group owner of /etc/openvswitch/system-id.conf, run the command:
    $ sudo chgrp hugetlbfs /etc/openvswitch/system-id.conf
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Daemon PID File

    Ensure that the file
    /run/openvswitch/ovs-vswitchd.pid
    , is owned by the group
    openvswitch
    or
    hugetlbfs
    , depending on your settings and Open vSwitch version.
    Rule Medium Severity
  • Verify Group Who Owns The Open vSwitch Database Server PID

    Ensure that the file
    /run/openvswitch/ovsdb-server.pid
    , is owned by the group
    openvswitch
    or
    hugetlbfs
    , depending on your settings and Open vSwitch version.
    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