CORS-4414: Use regional KMS key for GCP KMS encryption - #82811
Conversation
GCS (used for bootstrap ignition) does not support global KMS keys. Switch the KMS key location from "global" to the LEASED_RESOURCE region so the key is co-located with the cluster and compatible with GCS bucket encryption. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@rochacbruno: This pull request references CORS-4414 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@rochacbruno: GitHub didn't allow me to request PR reviews from the following users: rochacbruno. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
WalkthroughKMS resources now use the leased resource location instead of ChangesRegional KMS provisioning
Estimated code review effort: 2 (Simple) | ~5 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/cc @patrickdillon |
|
[REHEARSALNOTIFIER]
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@ci-operator/step-registry/gcp/provision/kms-key/gcp-provision-kms-key-commands.sh`:
- Line 24: Update the LOCATION assignment in the KMS provisioning script to
extract the region prefix from LEASED_RESOURCE values such as
us-central1--gcp-quota-slice-00, rather than using the full lease name. Validate
that the extracted prefix is a valid region before passing LOCATION to the
gcloud KMS operations, and fail clearly when extraction or validation fails.
In
`@ci-operator/step-registry/openshift/e2e/gcp/kms-encryption/openshift-e2e-gcp-kms-encryption-workflow.yaml`:
- Around line 21-23: Update the lifecycle note near the KMS workflow
configuration to accurately state that the key ring and crypto key intentionally
remain after tests for reuse across CI runs in the same region; remove the
incorrect claim that KMS keys cannot be deleted and can only be disabled.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: a0c01a87-983b-4ed0-aa86-22516f305ead
📒 Files selected for processing (3)
ci-operator/step-registry/gcp/provision/kms-key/gcp-provision-kms-key-commands.shci-operator/step-registry/gcp/provision/kms-key/gcp-provision-kms-key-ref.yamlci-operator/step-registry/openshift/e2e/gcp/kms-encryption/openshift-e2e-gcp-kms-encryption-workflow.yaml
|
/pj-rehearse |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: patrickdillon, rochacbruno The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@patrickdillon: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@rochacbruno: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/pj-rehearse ack |
|
@patrickdillon: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
e408052
into
openshift:main
Summary
globalto${LEASED_RESOURCE}(regional)Test plan
e2e-gcp-kms-encryptionpasses with the regional KMS keySummary by CodeRabbit
${LEASED_RESOURCE}instead ofglobal.