Skip to content

Commit 1900a66

Browse files
authored
making sure agentless scanning kms key uses rotation (#22)
1 parent 5fb8dd5 commit 1900a66

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

modules/agentless-scanning/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ Resources:
417417
Description: "Sysdig Agentless Scanning encryption key"
418418
PendingWindowInDays: ${var.kms_key_deletion_window}
419419
KeyUsage: "ENCRYPT_DECRYPT"
420+
EnableKeyRotation: true # Enables automatic yearly rotation
420421
KeyPolicy:
421422
Id: ${local.scanning_resource_name}
422423
Statement:

modules/agentless-scanning/organizational.tf

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ Resources:
181181
Description: "Sysdig Agentless Scanning encryption key"
182182
PendingWindowInDays: ${var.kms_key_deletion_window}
183183
KeyUsage: "ENCRYPT_DECRYPT"
184+
EnableKeyRotation: true # Enables automatic yearly rotation
184185
KeyPolicy:
185186
Id: ${local.scanning_resource_name}
186187
Statement:

0 commit comments

Comments
 (0)