๐ง AWS IAM SSH Public Key are not rotated every 90 days or less - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-12-27T12:02:03.049889945Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | 001 | โ๏ธ 199 | โ๏ธ extract('CA10__status__c') != 'Active' | โ๏ธ null |
| ๐ข | 003 | โ๏ธ 299 | โ๏ธ extract('CA10__uploadDate__c').beyondLastDays(90) | โ๏ธ null |
| ๐ข | 004 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/policy.yaml | A9BEE90D24A0FC122247EC77F79C43A7 |
| Open | /ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/prod.logic.yaml | BBF604EE150BFCABA934C5D5B1ACDF45 |
| Open | /ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/test-data.json | 6ABDC8F1FDBF23FE83825A43A6A3A723 |
| Open | /types/CA10__CaAwsIamSshPublicKey__c/object.extracts.yaml | 484B2472B77AA746367697E1C8DF1B3B |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/prod.logic.yaml
Contentโ
---
inputType: "CA10__CaAwsIamSshPublicKey__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsIamSshPublicKey__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The SSH public key is currently Inactive."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "Active"
- status: INCOMPLIANT
currentStateMessage: "The SSH public key is active but was uploaded more than 90 days ago."
remediationMessage: "Rotate the SSH public key by uploading a new one and deleting the old one."
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10__uploadDate__c"
otherwise:
status: COMPLIANT
currentStateMessage: "The SSH public key is active and has been rotated within the last 90 days."