Skip to main content

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

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:50.443623741Z 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 Bundle​

FileMD5
Open/ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/policy.yamlF24E676CD3EA07DFA900985F59736184
Open/ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml6B7B07C9A61C80CFCBDBC9740DF50FDF
Open/ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/test-data.json3C84D34B0D3EB564C5709D99AB649540
Open/types/CA10A1__CaAwsEksCluster__c/object.extracts.yaml40E423BD15F099D7D2B8AE19BF4D325E

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml
# Execute tests
repo-manager 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: "COMPLIANT"
currentStateMessage: "The cluster endpoint public access is disabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__endpointPublicAccess__c"
right:
TEXT: "Disabled"
- status: "INCOMPLIANT"
currentStateMessage: "The cluster endpoint public access allows access from all IP addresses."
remediationMessage: "Limit public endpoint access to approved CIDR ranges."
check:
CONTAINS:
arg:
EXTRACT: "CA10A1__publicAccessCidrs__c"
search:
TEXT: "0.0.0.0/0"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The cluster endpoint public access does not allow access from all IP addresses."