Skip to main content

🧠 AWS OpenSearch Domain audit logging is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-12-27T12:02:05.048660081Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/aws/opensearch/domain-audit-logging/policy.yamlC3B2872859795245EF11557B55D4F2D5
Open/ce/ca/aws/opensearch/domain-audit-logging/prod.logic.yaml3121945AED5B9185069939E2969258B6
Open/ce/ca/aws/opensearch/domain-audit-logging/test-data.json718B5161ACCE1B8B686E4B150EF5B2A0
Open/types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml0D5B1BE6E92CCF38D456A62B74D84E17

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​

Open File

---
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."