MEDIUM OCP (Platform) M10: API Server Encryption P2

Verified Compare Branch Scanned: 2026-01-14
Verified on cnfdt16 OCP 4.22. API encryption type=aescbc, all resources encrypted.

Overview

This remediation enables encryption at rest for etcd data in the OpenShift API server, protecting sensitive data stored in the cluster’s key-value store.

Settings

Setting Value Description
encryption.type aescbc Enable AES-CBC encryption at rest

Implementation

This requires modifying the APIServer custom resource:

apiVersion: config.openshift.io/v1
kind: APIServer
metadata:
  name: cluster
spec:
  encryption:
    type: aescbc

Apply with:

oc patch apiserver cluster --type merge -p '{"spec":{"encryption":{"type":"aescbc"}}}'

Compliance Checks Remediated

Check Profile Docs
ocp4-cis-api-server-encryption-provider-cipher CIS 📖
ocp4-e8-api-server-encryption-provider-cipher E8 📖

Source Remediation Files

  • medium/ocp4-cis-api-server-encryption-provider-cipher.yaml
  • medium/ocp4-e8-api-server-encryption-provider-cipher.yaml

Verification

Check encryption status:

oc get apiserver cluster -o jsonpath='{.spec.encryption.type}'
# Expected: aescbc

# Verify encryption is active
oc get openshiftapiserver -o=jsonpath='{range .items[0].status.conditions[?(@.type=="Encrypted")]}{.type}{" "}{.status}{" "}{.reason}{"\n"}{end}'

Security Impact

Encryption at rest ensures:

  • Secrets stored in etcd are encrypted
  • Stolen etcd backups are protected
  • Compliance with data protection requirements
  • Defense in depth for sensitive configuration
Legend
Remediation Status
✅ PASS (vanilla) Passes on unhardened RHCOS; no remediation needed
🟢 Verified Remediation tested on live cluster, confirmed PASS
🔵 In Progress Remediation actively being developed or tested
🟡 Pending Not yet started; needs remediation work
🟠 Partial Some checks pass or remediation not fully validated
⚪ On Hold Work paused (blocked or deprioritized)
Upstream Verdict
🔼 Candidate Suitable for upstreaming to ComplianceAsCode
🟣 PR Open Upstream PR filed
🎯 RAN Only Only applies to RAN deployments
⚙️ Platform Requires OCP platform-level configuration
✅ Pass Already passing upstream
📍 Site Site/deployment-specific configuration
— N/A Not applicable for upstreaming
Platform
RHCOS Node-level checks (MachineConfig)
OCP Platform-level checks (API/CR)
Mixed Both RHCOS and OCP checks
Severity
HIGH
MEDIUM
LOW
MANUAL

Keyboard Shortcuts

Navigation
j / Next row
k / Previous row
Enter Open selected / Expand details
Esc Clear selection / Close modal
Actions
/ Focus search
d Toggle dark mode
? Show this help
g h Go to home
Filters
1 Show all
2 Pending only
3 In Progress only
4 Complete only