๐ง Oracle IAAS Block Volume is not encrypted with a customer managed key - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/oracle/compute/block-volume-cmk-encryption/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2026-05-02T12:07:20.371137260Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | test1 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10O1__disappearanceTime__c) | โ๏ธ null |
| ๐ข | test2 | โ๏ธ 199 | โ๏ธ not(setOfText(['caOracleIaasBlockVolume']).contains(RecordType.DeveloperName)) | โ๏ธ null |
| ๐ข | test3 | โ๏ธ 299 | โ๏ธ extract('CA10O1__lifecycleState__c') != 'AVAILABLE' | โ๏ธ null |
| ๐ข | test4 | โ๏ธ 399 | โ๏ธ extract('CA10O1__kmsKeyOcid__c').isNotEmpty() | โ๏ธ null |
| ๐ข | test5 | โ๏ธ 400 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/oracle/compute/block-volume-cmk-encryption/policy.yaml | BF7468CF868E05BAB9C0036D3E86ED26 |
| Open | /ce/ca/oracle/compute/block-volume-cmk-encryption/prod.logic.yaml | CDD8B91348BD02858EC9FB266F98411E |
| Open | /ce/ca/oracle/compute/block-volume-cmk-encryption/test-data.json | 041FB0E49F9709B9042E87F84E81E1D2 |
| Open | /types/CA10O1__CaOracleIaasVolume__c/object.extracts.yaml | 29D15263C90A3304C9D8774185E00633 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/oracle/compute/block-volume-cmk-encryption/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/oracle/compute/block-volume-cmk-encryption/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/oracle/compute/block-volume-cmk-encryption/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/oracle/compute/block-volume-cmk-encryption/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/oracle/compute/block-volume-cmk-encryption/prod.logic.yaml
Contentโ
---
inputType: "CA10O1__CaOracleIaasVolume__c"
recordTypes:
- "caOracleIaasBlockVolume"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10O1__CaOracleIaasVolume__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The block volume is not available."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10O1__lifecycleState__c"
right:
TEXT: "AVAILABLE"
- status: "COMPLIANT"
currentStateMessage: "The block volume is encrypted with a customer managed key."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10O1__kmsKeyOcid__c"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The block volume is not encrypted with a customer managed key."
remediationMessage: "Configure the block volume to use a customer managed key from OCI Vault."