π§ AWS EKS Cluster allows unrestricted public traffic - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml
- Located in: π AWS EKS Cluster allows unrestricted public traffic π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS EKS Cluster | CA10A1__CaAwsEksCluster__c | 5 | 2 | 5 |
Usesβ
Test Results π’β
Generated at: 2025-06-28T12:02:50.789932635Z Open
Result | Id | Condition Index | Condition Text | Runtime 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β
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/policy.yaml | F69B35F9FB10482888137326C6089A56 |
Open | /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml | 48FDED0C6ED47B3217F6F1134892CDA2 |
Open | /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/test-data.json | FFA2CFF997BD8C71496F55C37B191F39 |
Open | /types/CA10A1__CaAwsEksCluster__c/object.extracts.yaml | 601E751040B9EB5B832935218E31F406 |
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β
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."