π§ AWS OpenSearch Domain audit logging is not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/opensearch/domain-audit-logging/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-12-27T12:02:05.048660081Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 199 | βοΈ extract('CA10__logPublishingOptionsJson__c').isEmpty() | βοΈ null |
| π’ | test3 | βοΈ 299 | βοΈ not(extract('caJsonFrom__logPublishingOptionsJson__c').jsonQueryText('AUDIT_LOGS.enabled')) | βοΈ null |
| π’ | test4 | βοΈ 399 | βοΈ extract('caJsonFrom__logPublishingOptionsJson__c').jsonQueryText('AUDIT_LOGS.enabled') | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/opensearch/domain-audit-logging/policy.yaml | C3B2872859795245EF11557B55D4F2D5 |
| Open | /ce/ca/aws/opensearch/domain-audit-logging/prod.logic.yaml | 3121945AED5B9185069939E2969258B6 |
| Open | /ce/ca/aws/opensearch/domain-audit-logging/test-data.json | 718B5161ACCE1B8B686E4B150EF5B2A0 |
| Open | /types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml | 0D5B1BE6E92CCF38D456A62B74D84E17 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/opensearch/domain-audit-logging/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/opensearch/domain-audit-logging/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/opensearch/domain-audit-logging/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/opensearch/domain-audit-logging/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/opensearch/domain-audit-logging/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsElasticsearchDomain__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "Log publishing options are not configured."
remediationMessage: "Enable error logging (AUDIT_LOGS) for the OpenSearch domain."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__logPublishingOptionsJson__c"
- status: "INCOMPLIANT"
currentStateMessage: "Audit logging (AUDIT_LOGS) is explicitly disabled in the configuration."
remediationMessage: "Enable error logging (AUDIT_LOGS) for the OpenSearch domain."
check:
NOT:
arg:
JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__logPublishingOptionsJson__c"
expression: "AUDIT_LOGS.enabled"
undeterminedIf:
evaluationError: "The AUDIT_LOGS key is missing from the configuration."
resultTypeMismatch: "The logging status value is not a boolean."
- status: "COMPLIANT"
currentStateMessage: "Audit logging (AUDIT_LOGS) is enabled."
check:
JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__logPublishingOptionsJson__c"
expression: "AUDIT_LOGS.enabled"
undeterminedIf:
evaluationError: "The AUDIT_LOGS key is missing from the configuration."
resultTypeMismatch: "The logging status value is not a boolean."
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."