π§ 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 - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS EKS Cluster
- π AWS EKS Cluster - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:32:50.443623741Z 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 Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/policy.yaml | F24E676CD3EA07DFA900985F59736184 |
| Open | /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/prod.logic.yaml | 6B7B07C9A61C80CFCBDBC9740DF50FDF |
| Open | /ce/ca/aws/eks/cluster-allows-unrestricted-public-traffic/test-data.json | 3C84D34B0D3EB564C5709D99AB649540 |
| Open | /types/CA10A1__CaAwsEksCluster__c/object.extracts.yaml | 40E423BD15F099D7D2B8AE19BF4D325E |
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β
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."