Skip to main content

🧠 AWS Secrets Manager Secret has not been accessed in over 90 days - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-01-24T12:02:27.261421667Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 299βœ”οΈ extract('CA10A1__lastAccessedDate__c').isEmpty() && extract('CA10A1__lastChangedDate__c').beyondLastDays(90)βœ”οΈ null
🟒test3βœ”οΈ 399βœ”οΈ extract('CA10A1__lastAccessedDate__c').beyondLastDays(90) && extract('CA10A1__lastRotatedDate__c').isEmpty()βœ”οΈ null
🟒test4βœ”οΈ 500βœ”οΈ otherwiseβœ”οΈ null
🟒test5βœ”οΈ 199βœ”οΈ extract('CA10A1__deletedDate__c').isNotEmpty()βœ”οΈ null
🟒test6βœ”οΈ 499βœ”οΈ extract('CA10A1__lastAccessedDate__c').beyondLastDays(90) && extract('CA10A1__lastRotatedDate__c').beyondLastDays(90)βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/secrets-manager/secret-unused/policy.yaml7F15788C38540F61B9FC4D3370FE01C3
Open/ce/ca/aws/secrets-manager/secret-unused/prod.logic.yaml11C59755F554B56463EA2110F275081E
Open/ce/ca/aws/secrets-manager/secret-unused/test-data.json7BCFE02717A6D720643760A6C97AEB6A
Open/types/CA10A1__CaAwsSecretsManagerSecret__c/object.extracts.yamlEE2C582B7F073CDD9BCEC537B36DB97A

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/secrets-manager/secret-unused/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/secrets-manager/secret-unused/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/secrets-manager/secret-unused/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/secrets-manager/secret-unused/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/secrets-manager/secret-unused/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 not active."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10A1__deletedDate__c"
- status: "INCOMPLIANT"
currentStateMessage: "The Secret has never been accessed and last change occurred more than 90 days ago."
remediationMessage: "Determine if this secret is still required by any application. If not, consider deleting it."
check:
AND:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10A1__lastAccessedDate__c"
- IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10A1__lastChangedDate__c"
- status: "INCOMPLIANT"
currentStateMessage: "The secret was last accessed more than 90 days ago and never rotated."
remediationMessage: "Determine if this secret is still required by any application. If not, consider deleting it."
check:
AND:
args:
- IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10A1__lastAccessedDate__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10A1__lastRotatedDate__c"
- status: "INCOMPLIANT"
currentStateMessage: "The secret was last accessed and rotated more than 90 days ago."
remediationMessage: "Determine if this secret is still required by any application. If not, consider deleting it."
check:
AND:
args:
- IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10A1__lastAccessedDate__c"
- IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10A1__lastRotatedDate__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The secret has been accessed, changed, or rotated within the last 90 days."