Skip to main content

๐Ÿง  AWS Account Root User signing certificates are active - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2026-01-31T12:02:01.073266426Z Open

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸขa01โœ”๏ธ 99โœ”๏ธ isDisappeared(CA10__disappearanceTime__c)โœ”๏ธ null
๐ŸŸขa02โœ”๏ธ 199โœ”๏ธ extract('CA10__userName__c') != 'root'โœ”๏ธ null
๐ŸŸขa03Iโœ”๏ธ 299โœ”๏ธ extract('CA10__credReportCert1Active__c') == true || extract('CA10__credReportCert2Active__c') == trueโœ”๏ธ null
๐ŸŸขa03โœ”๏ธ 300โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/aws/iam/delete-root-user-signing-certificates/policy.yaml807FA53A5E58D1D3B225E1354800E466
Open/ce/ca/aws/iam/delete-root-user-signing-certificates/prod.logic.yaml064E56C48BF64B948BE9975DAA4055B1
Open/ce/ca/aws/iam/delete-root-user-signing-certificates/test-data.json6243DEAC4B4AFEA58C135F6D812848EA
Open/types/CA10__CaAwsUser__c/credReport.extracts.yamlF6D383D933A0B64268B39ADE7012508C
Open/types/CA10__CaAwsUser__c/object.extracts.yaml131CCD980BE5290B2C296CE093A686DC

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/aws/iam/delete-root-user-signing-certificates/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/iam/delete-root-user-signing-certificates/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/iam/delete-root-user-signing-certificates/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/iam/delete-root-user-signing-certificates/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/iam/delete-root-user-signing-certificates/prod.logic.yaml

Contentโ€‹

Open File

---
inputType: "CA10__CaAwsUser__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsUser__c/credReport.extracts.yaml
- file: /types/CA10__CaAwsUser__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "Requirements of this policy are only applicable to the root user."
check:
NOT_EQUAL:
left:
EXTRACT: CA10__userName__c
right:
TEXT: "root"
- status: "INCOMPLIANT"
currentStateMessage: "The root user has one or more active signing certificates."
remediationMessage: "Delete all active signing certificates for the root user."
check:
OR:
args:
- IS_EQUAL:
left:
EXTRACT: CA10__credReportCert1Active__c
right:
BOOLEAN: true
- IS_EQUAL:
left:
EXTRACT: CA10__credReportCert2Active__c
right:
BOOLEAN: true
otherwise:
status: "COMPLIANT"
currentStateMessage: "The root user does not have any active signing certificates."