STOR-2918: update AWS EBS CSI credentials request policy to mirror upstream#717
STOR-2918: update AWS EBS CSI credentials request policy to mirror upstream#717dfajmon wants to merge 1 commit into
Conversation
|
@dfajmon: This pull request references STOR-2918 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 only the "5.0.0" version, but multiple target versions were 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. |
WalkthroughThe AWS CredentialsRequest manifest replaces broad EC2 and KMS IAM permissions for ChangesAWS IAM policy scoping
Estimated code review effort: 3 (Moderate) | ~25 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
manifests/03_credentials_request_aws.yaml (1)
1-5: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick winAction required — add the CredentialsRequest coordination note
This
CredentialsRequestchange needs a PR-description note covering the operator repo, STS/manual-mode IAM policies, CCO, and release notes.🤖 Prompt for 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. In `@manifests/03_credentials_request_aws.yaml` around lines 1 - 5, Add the missing CredentialsRequest coordination note to the PR description, covering that this change must be reflected in the operator repo, STS/manual-mode IAM policies, CCO, and release notes. Update the relevant CredentialsRequest-related documentation/comment guidance so reviewers can find the coordination requirements tied to the existing ROSA update process reference and the IAM role sync note.Source: Coding guidelines
🤖 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 `@manifests/03_credentials_request_aws.yaml`:
- Around line 150-154: The KMS permissions statement currently grants
kms:CreateGrant too broadly alongside decrypt and data key actions. Split
kms:CreateGrant into its own IAM statement in
manifests/03_credentials_request_aws.yaml and add a Bool condition on
kms:GrantIsForAWSResource set to true, keeping the existing key resource scope
and leaving the other KMS actions in the original statement.
---
Outside diff comments:
In `@manifests/03_credentials_request_aws.yaml`:
- Around line 1-5: Add the missing CredentialsRequest coordination note to the
PR description, covering that this change must be reflected in the operator
repo, STS/manual-mode IAM policies, CCO, and release notes. Update the relevant
CredentialsRequest-related documentation/comment guidance so reviewers can find
the coordination requirements tied to the existing ROSA update process reference
and the IAM role sync note.
🪄 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: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 135fde91-46f6-4100-b066-0c4c836ca363
📒 Files selected for processing (1)
manifests/03_credentials_request_aws.yaml
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dfajmon 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 |
…stream Update AWS EBS credentials policy to be aligned with upstream changes. Extra added KMS encryption policy based on https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/install.md
|
/retest |
1 similar comment
|
/retest |
|
@dfajmon: 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. |
Update AWS EBS credentials policy to be aligned with upstream changes. Extra added KMS encryption policy based on
https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/install.md
Coordination checklist
This CredentialsRequest change must be reflected in the following places before merging:
Summary by CodeRabbit