Skip to content

Using a service control policy can affect the rotation of the key?

0

Hi everyone! we can use SCP for denying deletion of the key as this doc explained: https://asecure.cloud/a/scp_kms_delete_keys my question is: does it affect on rotation of the key? I mean maybe I want to rotate the key but not delete that. so if I use that policy, would AWS prevent the rotation? thank you

asked 2 years ago488 views

1 Answer
0
Accepted Answer

Hello.

"kms:ScheduleKeyDeletion" and "kms:Delete*" are not actions related to KMS key rotation, so automatic rotation will be performed even if you set it to be rejected in SCP.
https://docs.aws.amazon.com/service-authorization/latest/reference/list_awskeymanagementservice.html

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

  • thanks, is there any way to add the deny deletion for the key itself?

  • If you set it to deny the following actions, the user will not be able to schedule key deletion, so I think you will not be able to delete the key in the first place.

  • yeah. I was thinking that if I don't use SCP and want to add a policy for denying deletion in the customer-managed key itself instead. does it double and make sense? it is good for situation you want to deny deleting only for one key

  • SCP acts like a guardrail for the entire account, so if you want to apply the policy only to individual KMS keys, I think you can just set the KMS key policy.

  • Yes, an explicit deny statement in the KMS key policy will override all allows from other policies and KMS key grants. However, as a safeguard for legitimate users locking themselves out of their keys, they can raise a support case with AWS to have support recover access, effectively lifting the restriction in the key policy. An SCP is applied from the org, outside the account, and it cannot be lifted from inside the account. The SCP should also block the organizations:LeaveOrganization action to prevent deactivating SCPs indirectly by leaving the org.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.