Skip to main content

🧠 AWS EKS Cluster allows unrestricted public traffic - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• AWS EKS ClusterCA10A1__CaAwsEksCluster__c525

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-06-28T12:02:50.789932635Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10A1__endpointPublicAccess__c') == 'Disabled'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10A1__publicAccessCidrs__c').contains('0.0.0.0/0')βœ”οΈ null

Generation​

FileMD5
Open/ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/policy.yamlF69B35F9FB10482888137326C6089A56
Open/ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml48FDED0C6ED47B3217F6F1134892CDA2
Open/ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/test-data.jsonFFA2CFF997BD8C71496F55C37B191F39
Open/types/CA10A1__CaAwsEksCluster__c/object.extracts.yaml601E751040B9EB5B832935218E31F406

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml

Content​

Open File

inputType: "CA10A1__CaAwsEksCluster__c"
importExtracts:
- file: "/types/CA10A1__CaAwsEksCluster__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "Cluster endpoint public access is disabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__endpointPublicAccess__c"
right:
TEXT: "Disabled"
- status: "INCOMPLIANT"
currentStateMessage: "Cluster endpoint public access allows all IP addresses."
check:
CONTAINS:
arg:
EXTRACT: "CA10A1__publicAccessCidrs__c"
substring:
TEXT: "0.0.0.0/0"
otherwise:
status: "COMPLIANT"
currentStateMessage: "Cluster endpoint public access does not allow all IP addresses."