Skip to main content

๐Ÿง  AWS IAM SSH Public Key are not rotated every 90 days or less - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2025-12-27T12:02:03.049889945Z Open

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข001โœ”๏ธ 199โœ”๏ธ extract('CA10__status__c') != 'Active'โœ”๏ธ null
๐ŸŸข003โœ”๏ธ 299โœ”๏ธ extract('CA10__uploadDate__c').beyondLastDays(90)โœ”๏ธ null
๐ŸŸข004โœ”๏ธ 300โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/policy.yamlA9BEE90D24A0FC122247EC77F79C43A7
Open/ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/prod.logic.yamlBBF604EE150BFCABA934C5D5B1ACDF45
Open/ce/ca/aws/iam/ssh-public-keys-are-not-rotated-every-90-days/test-data.json6ABDC8F1FDBF23FE83825A43A6A3A723
Open/types/CA10__CaAwsIamSshPublicKey__c/object.extracts.yaml484B2472B77AA746367697E1C8DF1B3B

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โ€‹

Open File

---
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."