You can configure Kubernetes Key Management Service (KMS) v2 on OKD to centralize encryption key management and meet regulatory compliance requirements.
|
Kubernetes KMS v2 is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope. |
Kubernetes KMS v2 uses an external Key Management Service to encrypt etcd data and centralize key management.
Kubernetes KMS v2 provides:
Customer-managed encryption keys stored in an external KMS
Centralized key management and auditing
Regulatory compliance support
The KMS plugin configuration is specified inline in the APIServer resource. Encryption controllers deploy the KMS plugin and manage encryption key secrets.
The workflow is consists of the following steps:
You create the credential secret and optional CA bundle in the openshift-config namespace.
You configure the APIServer resource with the KMS provider settings and plugin image.
The encryption controllers deploy the KMS plugin and begin encrypting etcd data.
|
HashiCorp Vault Enterprise is the only supported KMS provider. Vault Community Edition is not supported. Vault Enterprise must be externally hosted and must not run inside the cluster service network. |
Review the current Kubernetes KMS v2 limitations to plan deployments and avoid unsupported configurations.
|
KMS encryption is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope. |
HashiCorp Vault Enterprise is the only supported KMS provider. Vault Community Edition is not supported.
Vault Enterprise must be externally hosted. Hosting Vault inside the cluster service network is not supported.
After rotating a Vault Transit encryption key, OKD does not automatically re-encrypt existing etcd data with the new key version.
The KMS plugin image must be in pinned digest format, such as registry.example.com/vault-plugin@sha256:<digest>. Image tags are not allowed.
In disconnected environments or clusters that use custom internal registries, you must manually mirror the KMS plugin image to an accessible registry.
The KMS plugin does not expose Prometheus metrics in this Technology Preview phase.
Unused KMS plugins are not removed from the EncryptionConfiguration after migration. You must decommission old providers manually.
The KMSEncryption feature gate requires the TechPreviewNoUpgrade feature set. Clusters with this feature set cannot be upgraded.