Skip to content
Skillv1.0.0

cis-ocp-v170-1.2.31

Ensure that encryption providers are appropriately configured (Manual)

by CyberStrikeus(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from CyberStrikeus/CyberStrike (.cyberstrike/skill/CIS_benchmarks/Server_Software/Kubernetes/cis-red-hat-openshift-container-09d6f9/cis-ocp-v170-1.2.31/SKILL.md). Install upstream with npx skills add CyberStrikeus/CyberStrike --skill cis-ocp-v170-1.2.31. Copyright stays with the author.

CIS Red Hat OpenShift Container Platform Benchmark v1.7.0 - Control 1.2.31

Profile Applicability

  • Level: 1

Description

Where etcd encryption is used, appropriate providers should be configured.

Rationale

Where etcd encryption is used, it is important to ensure that the appropriate set of encryption providers is used. Currently, the aescbc, kms and secretbox are likely to be appropriate options.

Impact

When you enable etcd encryption, the following OpenShift API server and Kubernetes API server resources are encrypted:

  • Secrets
  • ConfigMaps
  • Routes
  • OAuth access tokens
  • OAuth authorize tokens

When you enable etcd encryption, encryption keys are created. These keys are rotated on a weekly basis. You must have these keys in order to restore from an etcd backup.

Audit Procedure

OpenShift supports encryption of data at rest of etcd datastore, but it is up to the customer to configure. The aescbc cipher had been the only supported cipher up to OCP 4.13. Starting with OCP 4.13, the aescgm cipher can be used as well. No other ciphers are supported. Keys are stored on the filesystem of the master and automatically rotated.

Run the following command to review the Encrypted status condition for the OpenShift API server to verify that its resources were successfully encrypted:

# encrypt the etcd datastore
oc get openshiftapiserver -o=jsonpath='{range .items[0].status.conditions[?(@.type=="Encrypted")]}{.reason}{"\n"}{.message}{"\n"}'

The output shows EncryptionCompleted upon successful encryption.

  • EncryptionCompleted
  • All resources encrypted: routes.route.openshift.io, oauthaccesstokens.oauth.openshift.io, oauthauthorizetokens.oauth.openshift.io

If the output shows EncryptionInProgress, this means that encryption is still in progress. Wait a few minutes and try again.

Remediation

Follow the OpenShift documentation for encrypting etcd data.

Default Value

By default, no encryption provider is set.

References

  1. https://docs.openshift.com/container-platform/latest/security/encrypting-etcd.html
  2. https://docs.openshift.com/container-platform/latest/operators/index.html
  3. https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/
  4. https://acotten.com/post/kube17-security
  5. https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
  6. https://github.com/kubernetes/features/issues/92
  7. https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/#providers

CIS Controls

Controls Version Control IG 1 IG 2 IG 3
v8 3.11 Encrypt Sensitive Data at Rest * *
v7 14.8 Encrypt Sensitive Information at Rest *

MITRE ATT&CK Mappings

Techniques / Sub-techniques Tactics Mitigations
T1552 TA0006 M1022

Profile

Level 1 (Manual)

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/cyberstrikeus-cyberstrike-cis-ocp-v170-1-2-31/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

cyberstrikeus-cyberstrike-cis-ocp-v170-1-2-31.ocm.jsonjson
{
  "ocm": "1",
  "id": "cyberstrikeus-cyberstrike-cis-ocp-v170-1-2-31",
  "kind": "skill",
  "name": "cis-ocp-v170-1.2.31",
  "description": "Ensure that encryption providers are appropriately configured (Manual)",
  "publisher": "CyberStrikeus",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "cis",
      "openshift",
      "kubernetes",
      "redhat",
      "control-plane",
      "api-server",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Ensure that encryption providers are appropriately configured (Manual)"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/CyberStrikeus/CyberStrike",
      "path": ".cyberstrike/skill/CIS_benchmarks/Server_Software/Kubernetes/cis-red-hat-openshift-container-09d6f9/cis-ocp-v170-1.2.31/SKILL.md",
      "ref": "df28ccd3dc6d6c02391169121ee2dcdf4a6a132b",
      "url": "https://github.com/CyberStrikeus/CyberStrike/blob/df28ccd3dc6d6c02391169121ee2dcdf4a6a132b/.cyberstrike/skill/CIS_benchmarks/Server_Software/Kubernetes/cis-red-hat-openshift-container-09d6f9/cis-ocp-v170-1.2.31/SKILL.md",
      "key": "CyberStrikeus/CyberStrike/.cyberstrike/skill/CIS_benchmarks/Server_Software/Kubernetes/cis-red-hat-openshift-container-09d6f9/cis-ocp-v170-1.2.31/SKILL.md"
    }
  },
  "instructions": "# CIS Red Hat OpenShift Container Platform Benchmark v1.7.0 - Control 1.2.31\n\n## Profile Applicability\n\n- **Level:** 1\n\n## Description\n\nWhere `etcd` encryption is used, appropriate providers should be configured.\n\n## Rationale\n\nWhere `etcd` encryption is used, it is important to ensure that the appropriate set of encryption providers is used. Currently, the `aescbc`, `kms` and `secretbox` are likely to be appropriate options.\n\n## Impact\n\nWhen you enable `etcd` encryption, the following OpenShift API server and Kubernetes API server resources are encrypted:\n\n- Secrets\n- ConfigMaps\n- Routes\n- OA",
  "cost": {
    "context_tokens": 779
  }
}

Fetch it by URL: GET /api/v1/registry/cyberstrikeus-cyberstrike-cis-ocp-v170-1-2-31/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.