Skip to main content

🧠 AWS Secrets Manager Secret Automatic Rotation is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-25T12:02:02.444994852Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10A1__deletedDate__c').isNotEmpty()βœ”οΈ null
🟒test3βœ”οΈ 399βœ”οΈ extract('CA10A1__rotationEnabled__c') == trueβœ”οΈ null
🟒test4βœ”οΈ 299βœ”οΈ extract('CA10A1__rotationEnabled__c') == falseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/secrets-manager/secret-automatic-rotation/policy.yaml3673698FC013CAE752B5052631076649
Open/ce/ca/aws/secrets-manager/secret-automatic-rotation/prod.logic.yaml5D33977AC8186FDC3CB312E64D5E56D8
Open/ce/ca/aws/secrets-manager/secret-automatic-rotation/test-data.json257226E972292860D961B63294E5CEFC
Open/types/CA10A1__CaAwsSecretsManagerSecret__c/object.extracts.yaml57E703908B8097ACBC5E66064F855C93

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/secrets-manager/secret-automatic-rotation/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/secrets-manager/secret-automatic-rotation/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/secrets-manager/secret-automatic-rotation/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/secrets-manager/secret-automatic-rotation/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/secrets-manager/secret-automatic-rotation/prod.logic.yaml

Content​

Open File

---
inputType: "CA10A1__CaAwsSecretsManagerSecret__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10A1__CaAwsSecretsManagerSecret__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This secret is active."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10A1__deletedDate__c"
- status: "INCOMPLIANT"
currentStateMessage: "Automatic rotation is not enabled for this Secret."
remediationMessage: "Enable automatic rotation for the secret to reduce the risk of long-lived credentials being compromised."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__rotationEnabled__c"
right:
BOOLEAN: false
- status: "COMPLIANT"
currentStateMessage: "Automatic rotation is enabled for this Secret."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__rotationEnabled__c"
right:
BOOLEAN: true
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."