Skip to main content

🧠 Oracle Key Vault Customer Managed Key is not rotated annually - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-09-22T15:07:58.276746418Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 199βœ”οΈ extract('CA10O1__lifecycleState__c') != 'ENABLED'βœ”οΈ null
🟒test2βœ”οΈ 499βœ”οΈ extract('CA10O1__timeCreated__c').beyondLastDays(365)βœ”οΈ null
🟒test3βœ”οΈ 599βœ”οΈ extract('CA10O1__timeCreated__c').withinLastDays(365)βœ”οΈ null
🟒test4βœ”οΈ 101βœ”οΈ CA10O1__lifecycleState__c.isEmpty()βœ”οΈ null
🟒test5βœ”οΈ 401βœ”οΈ CA10O1__timeCreated__c.isEmpty()βœ”οΈ null
🟒test6βœ”οΈ 299βœ”οΈ extract('CA10O1__autoRotationStatus__c') == 'Enabled'βœ”οΈ null
🟒test7βœ”οΈ 399βœ”οΈ extract('CA10O1__autoRotationStatus__c').isEmpty() && extract('CA10O1__timeCreated__c').beyondLastDays(365)βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/oracle/key-vault/cmk-not-rotated-annually/policy.yaml64D772524BC93D8F0175A66F99E85E0C
Open/ce/ca/oracle/key-vault/cmk-not-rotated-annually/prod.logic.yaml424FAD81E26795EFC7C020B9C6F29000
Open/ce/ca/oracle/key-vault/cmk-not-rotated-annually/test-data.json81AE9677C853994134D2453B791C83A5
Open/types/CA10O1__CaOracleKeyVaultKey__c/object.extracts.yaml76A17E80E68AAB1D3923971BBD0B747C

Available Commands​

repo-manager policies generate FULL /ce/ca/oracle/key-vault/cmk-not-rotated-annually/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/oracle/key-vault/cmk-not-rotated-annually/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/oracle/key-vault/cmk-not-rotated-annually/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/oracle/key-vault/cmk-not-rotated-annually/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/oracle/key-vault/cmk-not-rotated-annually/prod.logic.yaml

Content​

Open File

---
inputType: "CA10O1__CaOracleKeyVaultKey__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10O1__CaOracleKeyVaultKey__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This Oracle Key Vault key is not enabled."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10O1__lifecycleState__c"
right:
TEXT: "ENABLED"
- status: "COMPLIANT"
currentStateMessage: "Automatic rotation is enabled for this Oracle Key Vault key."
check:
IS_EQUAL:
left:
EXTRACT: "CA10O1__autoRotationStatus__c"
right:
TEXT: "Enabled"
- status: "UNDETERMINED"
currentStateMessage: "Unable to determine the automatic rotation status for this stale Oracle Key Vault key."
check:
AND:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10O1__autoRotationStatus__c"
- IS_BEYOND_LAST_DAYS:
arg:
EXTRACT: "CA10O1__timeCreated__c"
offsetDays: 365
- status: "INCOMPLIANT"
currentStateMessage: "This Oracle Key Vault key is older than 365 days and automatic rotation is not enabled."
remediationMessage: "Rotate this Oracle Key Vault key or enable automatic key rotation."
check:
IS_BEYOND_LAST_DAYS:
arg:
EXTRACT: "CA10O1__timeCreated__c"
offsetDays: 365
- status: "COMPLIANT"
currentStateMessage: "This Oracle Key Vault key is enabled and was created within the last 365 days."
check:
IS_WITHIN_LAST_DAYS:
arg:
EXTRACT: "CA10O1__timeCreated__c"
offsetDays: 365
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unable to determine whether this Oracle Key Vault key is rotated annually."