Recent sample configuration change unintentionally blocks all KMS Key Alias deletions #686
Open
5 of 6 tasks
Labels
bug
Something isn't working
Describe the bug
A recent change to add
DeleteAlias
to a sample guardrails SCP had the unintended effect of blocking all DeleteAlias calls for any kms alias, not just ones prefixed with"alias/accelerator*"
.The issue is that the DeleteAlias action does not include kms:ResourceAliases in its request context, so this condition:
is functionally ignored, and the statement is evaluated as:
To Reproduce
Try to delete any Kms Alias with a role that does not match one of the prefixes in the above condition.
Reverting the recent change adding
DeleteAlias
allows the deletion to work as expected.Expected behavior
The SCP only prevents kms aliases prefixed with
alias/accelerator*
from being deleted by roles not matching those arn prefixes.Please complete the following information about the solution:
Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: