π§ Azure Key Vault Automatic Key Rotation is not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-06-06T12:03:35.970044089Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 299 | βοΈ extract('CA10__lifetimeActions__c').isEmpty() | βοΈ null |
| π’ | test3 | βοΈ 399 | βοΈ not(extract('CA10__lifetimeActions__c').contains('Rotate')) | βοΈ null |
| π’ | test4 | βοΈ 599 | βοΈ extract('CA10__lifetimeActions__c').contains('Rotate') | βοΈ null |
| π’ | test5 | βοΈ 599 | βοΈ extract('CA10__lifetimeActions__c').contains('Rotate') | βοΈ null |
| π’ | test6 | βοΈ 199 | βοΈ extract('CA10__enabledStatus__c') != 'Enabled' | βοΈ null |
| π’ | test7 | βοΈ 499 | βοΈ extract('CA10__created__c').beyondLastDays(730) | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/key-vault/automatic-key-rotation/policy.yaml | 499F8E081E8168E925C10AC3C7224C3D |
| Open | /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml | 475C9FC729D44D6B7ECBD4ABDF4466D3 |
| Open | /ce/ca/azure/key-vault/automatic-key-rotation/test-data.json | 2D329277EA0F49B92D84C81248BD085C |
| Open | /types/CA10__CaAzureKeyVaultKey__c/object.extracts.yaml | 3E108EC98943E81178B2BBCAD0272267 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/key-vault/automatic-key-rotation/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureKeyVaultKey__c"
testData:
- file: "test-data.json"
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: "Configure automated key rotation."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__lifetimeActions__c"
- status: "INCOMPLIANT"
currentStateMessage: "The key rotation policy is not configured."
remediationMessage: "Configure automated key rotation."
check:
NOT:
arg:
CONTAINS:
arg:
EXTRACT: "CA10__lifetimeActions__c"
search:
TEXT: "Rotate"
- status: "INCOMPLIANT"
currentStateMessage: "This key has not been rotated in over two years."
remediationMessage: "Rotate the key and ensure automatic key rotation is scheduled at least every two years."
check:
IS_BEYOND_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 fields."