Support kmsKey.version rotation #5629
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 491 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.371
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5629"
general
weight: 0.35
ahitacat
https://redhat.atlassian.net/browse/ARO-27470
https://redhat.atlassian.net/browse/ARO-27471
What
Makes
KmsKey.Versionupdatable via PATCH in thev20260630previewAPI so that customers can rotate their etcd encryption key version without recreating the cluster.Why
Customers using customer-managed encryption for etcd need to rotate their KMS key version periodically (security policy, key expiry, compliance). Today, all KMS fields — including
version— are immutable after cluster creation. This forces a destructive cluster recreate just to update a key version, which is operationally unacceptable.This PR is the RP-side half of the feature. Cluster Service is being updated separately to accept KMS key version changes on its PATCH endpoint. Both sides must be in place for end-to-end rotation to work, but neither breaks independently — the RP will send the version, and CS will either accept it (if updated) or ignore it (if not yet updated).
This PR has the changes for the ARM API spec and the frontend changes and adds E2E tests.
Testing
Unit tests:
getBaseCSClusterBuilder(true)updated to include default PlatformManaged etcd for update expectationsManual verification: PATCH with key version change tested against dev environment confirming CS accepts the update and other fields remain unchanged.
E2E tests:
Added a simple E2E test that rotates the key version once and then disables the old key.
The test has a timebomb on the APIVersion being used. So it should be OK to merge, environments that doesn't have this API version will not use this test.
Example can be found in latest prod jobs https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-Azure-ARO-HCP-main-periodic-prod-e2e-parallel/2075037316002353152
Where the test
Customer should create a cluster using the 2026-06-30-preview API versionis skipped.Special notes for your reviewer
@renamedFromsuffix (NoUpdate) is a TypeSpec convention for this pattern — it doesn't appear in the generated API surface. The generated OpenAPI spec and SDK models are unchanged for older API versions. Verify this by checking thatinternal/api/v20240610preview/generated/andinternal/api/v20251223preview/generated/are unmodified.KMS key version rotation requires HyperShift changes that only land in OpenShift >= 4.22. The admission controller rejects key version changes when the cluster's lowest active control plane version is below 4.22. Why lowest and not requested? During a rolling upgrade, a cluster can have multiple active control plane versions (e.g. 4.22 + 4.23). Using the lowest ensures the rotation is only allowed when all active components support it.
PR Checklist
Requirements to merge this change