π§ Google KMS Crypto Key is not rotated every 90 days - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/google/kms/kms-key-rotation/prod.logic.yaml
- Located in: π Google KMS Crypto Key is not rotated every 90 days π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Google Cloud KMS Crypto Key | CA10__CaGoogleCloudKmsCryptoKey__c | 4 | 1 | 2 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:47:05.238195443Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | aC541 | βοΈ 101 | βοΈ CA10__nextRotationTime__c.isEmpty() | βοΈ null |
π’ | aC542 | βοΈ 199 | βοΈ extract('CA10__nextRotationTime__c').withinNextDays(90) && extract('rotationDuration') <= 'P90D' | βοΈ null |
π’ | aC543 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | aC544 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/kms/kms-key-rotation/policy.yaml | 3B0DBE28DCCE356153E289289202AF97 |
Open | /ce/ca/google/kms/kms-key-rotation/prod.logic.yaml | FDA9B107E5FDA82DA38A41CF89A775A6 |
Open | /ce/ca/google/kms/kms-key-rotation/test-data.json | 35B353D7F0D4B6EDE9EC7998BA730BA9 |
Open | /types/CA10__CaGoogleCloudKmsCryptoKey__c/object.extracts.yaml | FBA6F55EDAD759EA3CCFC1311CEB0AAB |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/google/kms/kms-key-rotation/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/google/kms/kms-key-rotation/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/google/kms/kms-key-rotation/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/google/kms/kms-key-rotation/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/google/kms/kms-key-rotation/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaGoogleCloudKmsCryptoKey__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleCloudKmsCryptoKey__c/object.extracts.yaml
conditions:
- status: "COMPLIANT"
currentStateMessage: "KMS encryption key is rotated within a period of 90 days."
check:
AND:
args:
- IS_WITHIN_NEXT_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10__nextRotationTime__c"
- LESS_THAN_EQUAL:
left:
EXTRACT: "rotationDuration"
right:
DURATION: "P90D"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "KMS encryption key is not rotated within a period of 90 days."
remediationMessage: "Change KMS encryption key rotation period."