SREP-3817: Allow day-2 CreateTags on existing EBS volumes and snapshots#2655
SREP-3817: Allow day-2 CreateTags on existing EBS volumes and snapshots#2655dustman9000 wants to merge 1 commit intoopenshift:masterfrom
Conversation
The EBS CSI driver EBSVolumeTagsController (introduced in OCP 4.19 via CFE-1131) calls ec2:CreateTags on existing volumes to reconcile infrastructure resource tags. The current policy restricts CreateTags to only work during CreateVolume/CreateSnapshot via the ec2:CreateAction condition, causing AccessDenied on all day-2 tag operations. Add a new statement allowing CreateTags on volumes and snapshots that already have the red-hat-managed tag, matching the pattern used by the CAPA Controller Manager policy for day-2 reconciliation. Jira: https://issues.redhat.com/browse/SREP-3817
|
@dustman9000: This pull request references SREP-3817 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 bug to target the "4.22.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. |
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dustman9000 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 |
Summary
CreateTagsExistingVolumes) to the HCP EBS CSI driver policy allowingec2:CreateTagson existing volumes and snapshots that have thered-hat-managed: truetagSidto the existing creation-time statement (CreateTagsOnCreate) for clarityProblem
The EBS CSI driver's
EBSVolumeTagsController(introduced in OCP 4.19 via CFE-1131 / PR #297) callsec2:CreateTagson existing EBS volumes to reconcile infrastructure resource tags. The current policy restrictsCreateTagswith anec2:CreateActioncondition that only allows tagging duringCreateVolume/CreateSnapshot, causingAccessDeniedon all day-2 tag operations.This affects all ROSA HCP clusters on OCP 4.19+. Classic STS clusters are not impacted (they have unrestricted
ec2:CreateTags).Support case: 04362496
Fix
Add a second
CreateTagsstatement that allows tagging existing resources scoped toaws:ResourceTag/red-hat-managed: true. This is the same approach used by the CAPA Controller Manager policy (CreateTagsCAPAControllerReconcileVolume).Test plan
Jira: https://issues.redhat.com/browse/SREP-3817