Formatting and link fix

This commit is contained in:
Catherine Luse
2020-03-30 13:33:04 -07:00
parent 7c1f278507
commit 5be8bebf1b
2 changed files with 21 additions and 16 deletions
@@ -84,17 +84,19 @@ To enable searching for groups when assigning permissions in Rancher, you will n
# Setting up OpenLDAP in Rancher # Setting up OpenLDAP in Rancher
If you also configure OpenLDAP as the back end to Shibboleth, it will return a SAML assertion to Rancher with user attributes that include groups. Then authenticated users will be able to access resources in Rancher that their groups have permissions for.
### OpenLDAP Prerequisites ### OpenLDAP Prerequisites
Rancher must be configured with a LDAP bind account (aka service account) to search and retrieve LDAP entries pertaining to users and groups that should have access. It is recommended to not use an administrator account or personal account for this purpose and instead create a dedicated account in OpenLDAP with read-only access to users and groups under the configured search base (see below). Rancher must be configured with a LDAP bind account (aka service account) to search and retrieve LDAP entries pertaining to users and groups that should have access. It is recommended to not use an administrator account or personal account for this purpose and instead create a dedicated account in OpenLDAP with read-only access to users and groups under the configured search base (see below).
> **Using TLS?** > **Using TLS?**
> >
> If the certificate used by the OpenLDAP server is self-signed or not from a recognised certificate authority, make sure have at hand the CA certificate (concatenated with any intermediate certificates) in PEM format. You will have to paste in this certificate during the configuration so that Rancher is able to validate the certificate chain. > If the certificate used by the OpenLDAP server is self-signed or not from a recognized certificate authority, make sure have at hand the CA certificate (concatenated with any intermediate certificates) in PEM format. You will have to paste in this certificate during the configuration so that Rancher is able to validate the certificate chain.
### Configure OpenLDAP in Rancher ### Configure OpenLDAP in Rancher
Configure the settings for the OpenLDAP server, groups and users. For help filling out each field, refer to the [configuration reference.](../openldap-config) Configure the settings for the OpenLDAP server, groups and users. For help filling out each field, refer to the [configuration reference.]({{<baseurl>}}/rancher/v2.x/en/admin-settings/authentication/openldap/openldap-config)
> Before you proceed with the configuration, please familiarise yourself with the concepts of [External Authentication Configuration and Principal Users]({{<baseurl>}}/rancher/v2.x/en/admin-settings/authentication/#external-authentication-configuration-and-principal-users). > Before you proceed with the configuration, please familiarise yourself with the concepts of [External Authentication Configuration and Principal Users]({{<baseurl>}}/rancher/v2.x/en/admin-settings/authentication/#external-authentication-configuration-and-principal-users).
@@ -15,7 +15,10 @@ The Benchmark provides recommendations of two types: Scored and Not Scored. We r
- [About the CIS Benchmark](#about-the-cis-benchmark) - [About the CIS Benchmark](#about-the-cis-benchmark)
- [About the generated report](#about-the-generated-report) - [About the generated report](#about-the-generated-report)
- [Permissive and hardened test profiles](#permissive-and-hardened-test-profiles) - [Test profiles](#test-profiles)
- [Skipped and not applicable tests](#skipped-and-not-applicable-tests)
- [CIS Benchmark v1.4 skipped tests](#cis-benchmark-v1-4-skipped-tests)
- [CIS Benchmark v1.4 not applicable tests](#cis-benchmark-v1-4-not-applicable-tests)
- [Prerequisites](#prerequisites) - [Prerequisites](#prerequisites)
- [Running a scan](#running-a-scan) - [Running a scan](#running-a-scan)
- [Scheduling recurring scans](#scheduling-recurring-scans) - [Scheduling recurring scans](#scheduling-recurring-scans)
@@ -24,7 +27,7 @@ The Benchmark provides recommendations of two types: Scored and Not Scored. We r
- [Deleting a report](#deleting-a-report) - [Deleting a report](#deleting-a-report)
- [Downloading a report](#downloading-a-report) - [Downloading a report](#downloading-a-report)
### About the CIS Benchmark # About the CIS Benchmark
The Center for Internet Security is a 501(c)(3) nonprofit organization, formed in October 2000, with a mission is to "identify, develop, validate, promote, and sustain best practice solutions for cyber defense and build and lead communities to enable an environment of trust in cyberspace". The organization is headquartered in East Greenbush, New York, with members including large corporations, government agencies, and academic institutions. The Center for Internet Security is a 501(c)(3) nonprofit organization, formed in October 2000, with a mission is to "identify, develop, validate, promote, and sustain best practice solutions for cyber defense and build and lead communities to enable an environment of trust in cyberspace". The organization is headquartered in East Greenbush, New York, with members including large corporations, government agencies, and academic institutions.
@@ -34,7 +37,7 @@ The official Benchmark documents are available through the CIS website. The sign
To check clusters for CIS Kubernetes Benchmark compliance, the security scan leverages [kube-bench,](https://github.com/aquasecurity/kube-bench) an open-source tool from Aqua Security. To check clusters for CIS Kubernetes Benchmark compliance, the security scan leverages [kube-bench,](https://github.com/aquasecurity/kube-bench) an open-source tool from Aqua Security.
### About the Generated Report # About the Generated Report
Each scan generates a report can be viewed in the Rancher UI and can be downloaded in CSV format. Each scan generates a report can be viewed in the Rancher UI and can be downloaded in CSV format.
@@ -61,7 +64,7 @@ The report contains the following information:
Refer to [the table in the cluster hardening guide]({{<baseurl>}}/rancher/v2.x/en/security/#rancher-hardening-guide) for information on which versions of Kubernetes, the Benchmark, Rancher, and our cluster hardening guide correspond to each other. Also refer to the hardening guide for configuration files of CIS-compliant clusters and information on remediating failed tests. Refer to [the table in the cluster hardening guide]({{<baseurl>}}/rancher/v2.x/en/security/#rancher-hardening-guide) for information on which versions of Kubernetes, the Benchmark, Rancher, and our cluster hardening guide correspond to each other. Also refer to the hardening guide for configuration files of CIS-compliant clusters and information on remediating failed tests.
### Profiles # Test Profiles
For every CIS benchmark version, Rancher ships with two types of profiles. These profiles are named based on the type of cluster (e.g. `RKE`), the CIS benchmark version (e.g. CIS 1.4) and the profile type (e.g. `Permissive` or `Hardened`). For example, a full profile name would be `RKE-CIS-1.4-Permissive` For every CIS benchmark version, Rancher ships with two types of profiles. These profiles are named based on the type of cluster (e.g. `RKE`), the CIS benchmark version (e.g. CIS 1.4) and the profile type (e.g. `Permissive` or `Hardened`). For example, a full profile name would be `RKE-CIS-1.4-Permissive`
@@ -74,9 +77,9 @@ There are 2 types of profiles:
In order to pass the "Hardened" profile, you will need to follow the steps on the [hardening guide]({{<baseurl>}}/rancher/v2.x/en/security/#rancher-hardening-guide) and use the `cluster.yml` defined in the hardening guide to provision a hardened cluster. In order to pass the "Hardened" profile, you will need to follow the steps on the [hardening guide]({{<baseurl>}}/rancher/v2.x/en/security/#rancher-hardening-guide) and use the `cluster.yml` defined in the hardening guide to provision a hardened cluster.
#### Skipped and Not Applicable Tests # Skipped and Not Applicable Tests
#### CIS 1.4 Skipped Tests ### CIS Benchmark v1.4 Skipped Tests
Number | Description | Reason for Skipping Number | Description | Reason for Skipping
---|---|--- ---|---|---
@@ -96,7 +99,7 @@ Number | Description | Reason for Skipping
2.1.6 | "Ensure that the --protect-kernel-defaults argument is set to true (Scored)" | System level configurations are required prior to provisioning the cluster in order for this argument to be set to true. 2.1.6 | "Ensure that the --protect-kernel-defaults argument is set to true (Scored)" | System level configurations are required prior to provisioning the cluster in order for this argument to be set to true.
2.1.10 | "Ensure that the --tls-cert-file and --tls-private-key-file arguments are set as appropriate (Scored)" | When generating serving certificates, functionality could break in conjunction with hostname overrides which are required for certain cloud providers. 2.1.10 | "Ensure that the --tls-cert-file and --tls-private-key-file arguments are set as appropriate (Scored)" | When generating serving certificates, functionality could break in conjunction with hostname overrides which are required for certain cloud providers.
#### CIS 1.4 Not Applicable Tests ### CIS Benchmark v1.4 Not Applicable Tests
Number | Description | Reason for being not applicable Number | Description | Reason for being not applicable
---|---|--- ---|---|---
@@ -121,7 +124,7 @@ Number | Description | Reason for being not applicable
2.2.10 | "Ensure that the kubelet configuration file has permissions set to 644 or more restrictive (Scored)" | RKE doesn’t require or maintain a configuration file for the kubelet. 2.2.10 | "Ensure that the kubelet configuration file has permissions set to 644 or more restrictive (Scored)" | RKE doesn’t require or maintain a configuration file for the kubelet.
### Prerequisites # Prerequisites
To run security scans on a cluster and access the generated reports, you must be an [Administrator]({{<baseurl>}}/rancher/v2.x/en/admin-settings/rbac/global-permissions/) or [Cluster Owner.]({{<baseurl>}}/rancher/v2.x/en/admin-settings/rbac/cluster-project-roles/) To run security scans on a cluster and access the generated reports, you must be an [Administrator]({{<baseurl>}}/rancher/v2.x/en/admin-settings/rbac/global-permissions/) or [Cluster Owner.]({{<baseurl>}}/rancher/v2.x/en/admin-settings/rbac/cluster-project-roles/)
@@ -131,7 +134,7 @@ The security scan cannot run in a cluster that has Windows nodes.
You will only be able to see the CIS scan reports for clusters that you have access to. You will only be able to see the CIS scan reports for clusters that you have access to.
### Running a Scan # Running a Scan
1. From the cluster view in Rancher, click **Tools > CIS Scans.** 1. From the cluster view in Rancher, click **Tools > CIS Scans.**
1. Click **Run Scan.** 1. Click **Run Scan.**
@@ -139,7 +142,7 @@ You will only be able to see the CIS scan reports for clusters that you have acc
**Result:** A report is generated and displayed in the **CIS Scans** page. To see details of the report, click the report's name. **Result:** A report is generated and displayed in the **CIS Scans** page. To see details of the report, click the report's name.
### Scheduling Recurring Scans # Scheduling Recurring Scans
Recurring scans can be scheduled to run on any RKE Kubernetes cluster. Recurring scans can be scheduled to run on any RKE Kubernetes cluster.
@@ -171,7 +174,7 @@ scheduled_cluster_scan:
``` ```
### Skipping Tests # Skipping Tests
You can define a set of tests that will be skipped by the CIS scan when the next report is generated. You can define a set of tests that will be skipped by the CIS scan when the next report is generated.
@@ -199,7 +202,7 @@ To skip tests by editing a ConfigMap resource,
**Result:** These tests will be skipped on subsequent scans that use the defined CIS Benchmark version. **Result:** These tests will be skipped on subsequent scans that use the defined CIS Benchmark version.
### Setting Alerts # Setting Alerts
Rancher provides a set of alerts for cluster scans. which are not configured to have notifiers by default: Rancher provides a set of alerts for cluster scans. which are not configured to have notifiers by default:
@@ -222,14 +225,14 @@ To activate an alert for a CIS scan result,
**Result:** The notifications will be triggered when the a scan is run on a cluster and the active alerts have satisfied conditions. **Result:** The notifications will be triggered when the a scan is run on a cluster and the active alerts have satisfied conditions.
### Deleting a Report # Deleting a Report
1. From the cluster view in Rancher, click **Tools > CIS Scans.** 1. From the cluster view in Rancher, click **Tools > CIS Scans.**
1. Go to the report that should be deleted. 1. Go to the report that should be deleted.
1. Click the **Ellipsis (...) > Delete.** 1. Click the **Ellipsis (...) > Delete.**
1. Click **Delete.** 1. Click **Delete.**
### Downloading a Report # Downloading a Report
1. From the cluster view in Rancher, click **Tools > CIS Scans.** 1. From the cluster view in Rancher, click **Tools > CIS Scans.**
1. Go to the report that you want to download. Click **Ellipsis (...) > Download.** 1. Go to the report that you want to download. Click **Ellipsis (...) > Download.**