π§ AWS Secrets Manager Secret Automatic Rotation is not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/secrets-manager/secret-automatic-rotation/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS Secrets Manager Secret
- π AWS Secrets Manager Secret - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-10-25T12:02:02.444994852Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/secrets-manager/secret-automatic-rotation/policy.yaml | 3673698FC013CAE752B5052631076649 |
| Open | /ce/ca/aws/secrets-manager/secret-automatic-rotation/prod.logic.yaml | 5D33977AC8186FDC3CB312E64D5E56D8 |
| Open | /ce/ca/aws/secrets-manager/secret-automatic-rotation/test-data.json | 257226E972292860D961B63294E5CEFC |
| Open | /types/CA10A1__CaAwsSecretsManagerSecret__c/object.extracts.yaml | 57E703908B8097ACBC5E66064F855C93 |
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β
---
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."