π§ AWS Secrets Manager Secret has not been accessed in over 90 days - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/secrets-manager/secret-unused/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: 2026-01-24T12:02:27.261421667Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/secrets-manager/secret-unused/policy.yaml | 7F15788C38540F61B9FC4D3370FE01C3 |
| Open | /ce/ca/aws/secrets-manager/secret-unused/prod.logic.yaml | 11C59755F554B56463EA2110F275081E |
| Open | /ce/ca/aws/secrets-manager/secret-unused/test-data.json | 7BCFE02717A6D720643760A6C97AEB6A |
| Open | /types/CA10A1__CaAwsSecretsManagerSecret__c/object.extracts.yaml | EE2C582B7F073CDD9BCEC537B36DB97A |
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β
---
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."