π§ Azure Key Vault Automatic Key Rotation is not enabled - wip.logic.yaml π’
- Contextual name: π§ wip.logic.yaml π’
- ID:
/ce/ca/azure/key-vault/automatic-key-rotation/wip.logic.yaml
- Located in: π Azure Key Vault Automatic Key Rotation is not enabled π π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure Key Vault | CA10__CaAzureKeyVault__c | 3 | 1 | 8 |
Usesβ
Test Results π’β
Generated at: 2025-05-10T12:02:41.186151193Z Open
Result | Id | Condition Index | Condition Text | Runtime 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 |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/key-vault/automatic-key-rotation/policy.yaml | B91A77BF908B910F3B8EBBA15BFA8767 |
Open | /ce/ca/azure/key-vault/automatic-key-rotation/wip.logic.yaml | 21595BE0C470B1D683D4E017A39CA709 |
Open | /types/CA10__CaAzureKeyVaultKey__c/object.extracts.yaml | 06CA2E249D85942230AC96CBEE906A4E |
Open | /ce/ca/azure/key-vault/automatic-key-rotation/test-data.json | 83A884BD5BF83CC78F0DD8074757D141 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/key-vault/automatic-key-rotation/wip.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/key-vault/automatic-key-rotation/wip.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/wip.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/key-vault/automatic-key-rotation/wip.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/key-vault/automatic-key-rotation/wip.logic.yaml
Contentβ
---
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"
substring:
TEXT: "Rotate"
- status: "COMPLIANT"
currentStateMessage: "The Key rotation policy is configured."
check:
CONTAINS:
arg:
EXTRACT: "CA10__lifetimeActions__c"
substring:
TEXT: "Rotate"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."