Skip to main content

🧠 Azure Key Vault Automatic Key Rotation is not enabled - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“— Azure Key VaultCA10__CaAzureKeyVault__c419

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-07-25T15:27:20.691258499Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ CA10__Azure_Key_Vault_Keys__r.has(INCOMPLIANT)βœ”οΈ null
🟒test3βœ”οΈ 199βœ”οΈ CA10__Azure_Key_Vault_Keys__r.has(INCOMPLIANT)βœ”οΈ null
🟒test4βœ”οΈ 299βœ”οΈ CA10__Azure_Key_Vault_Keys__r.has(COMPLIANT)βœ”οΈ null
🟒test5βœ”οΈ 299βœ”οΈ CA10__Azure_Key_Vault_Keys__r.has(COMPLIANT)βœ”οΈ null
🟒test6βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null
🟒test7βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null
🟒test8βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null
🟒test9βœ”οΈ 199βœ”οΈ CA10__Azure_Key_Vault_Keys__r.has(INCOMPLIANT)βœ”οΈ null

Generation​

FileMD5
Open/ce/ca/azure/key-vault/automatic-key-rotation/policy.yaml20EDDCDC951E3A487DC07B44634AB6E6
Open/ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml514EAB015DAA2550573C5BD82E51AF5B
Open/types/CA10__CaAzureKeyVaultKey__c/object.extracts.yaml3E108EC98943E81178B2BBCAD0272267
Open/ce/ca/azure/key-vault/automatic-key-rotation/test-data.jsonE64F1513F75300AAFDA81C6D27FDB75B

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAzureKeyVault__c"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Key rotation policy is not configured."
remediationMessage: "Consider configuring an automated cryptographic key rotation."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10__Azure_Key_Vault_Keys__r"
- status: "COMPLIANT"
currentStateMessage: "The Key rotation policy is configured."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10__Azure_Key_Vault_Keys__r"
- status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."
check:
RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10__Azure_Key_Vault_Keys__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Key Vault doesn't have active Keys or Cloudaware\
\ has insufficient access to list Keys."
relatedLists:
- relationshipName: "CA10__Azure_Key_Vault_Keys__r"
importExtracts:
- file: "/types/CA10__CaAzureKeyVaultKey__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The Key is not enabled."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__enabledStatus__c"
right:
TEXT: "Enabled"
- status: "INCOMPLIANT"
currentStateMessage: "The Key rotation policy is not configured."
remediationMessage: "Consider configuring an automated cryptographic key rotation."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__lifetimeActions__c"
- status: "INCOMPLIANT"
currentStateMessage: "The Key rotation policy is not configured."
remediationMessage: "Consider configuring an automated cryptographic key rotation."
check:
NOT:
arg:
CONTAINS:
arg:
EXTRACT: "CA10__lifetimeActions__c"
search:
TEXT: "Rotate"
- status: "INCOMPLIANT"
currentStateMessage: "Key rotation is enabled, but this key hasn't been rotated in over two years."
remediationMessage: "Update the rotation interval to under two years to align with best practices."
check:
NOT:
arg:
IS_WITHIN_LAST_DAYS:
offsetDays: 730
arg:
EXTRACT: "CA10__created__c"
- status: "COMPLIANT"
currentStateMessage: "The Key rotation policy is configured."
check:
CONTAINS:
arg:
EXTRACT: "CA10__lifetimeActions__c"
search:
TEXT: "Rotate"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."