Deploy a Production Ready Kubernetes Cluster
This report presents the forensic synthetic code analysis of kubernetes-sigs/kubespray, a Jinja project with 18,605 GitHub stars. SynthScan v2.0 examined 50,981 lines of code across 823 source files, recording 175 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 3.7 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 175 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/scripts/vagrant-install.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tests/scripts/vagrant-install.sh | 21 | # echo \ | COMMENT |
| LOW | tests/scripts/vagrant-install.sh | 41 | PYTHONDONTWRITEBYTECODE=1 | COMMENT |
| LOW | tests/files/custom_cni/cilium.yaml | 41 | # nodes by setting how they are stored. The options are "crd", "kvstore" or | COMMENT |
| LOW | tests/files/custom_cni/cilium.yaml | 81 | # address. | COMMENT |
| LOW | tests/files/custom_cni/cilium.yaml | 101 | COMMENT | |
| LOW | tests/files/custom_cni/cilium.yaml | 121 | bpf-lb-algorithm-annotation: "false" | COMMENT |
| LOW | tests/files/custom_cni/cilium.yaml | 141 | # | COMMENT |
| LOW | …es/kubernetes-apps/csi_driver/cinder/defaults/main.yml | 21 | cinder_domain_id: "{{ lookup('env', 'OS_USER_DOMAIN_ID') }}" | COMMENT |
| LOW | roles/kubernetes-apps/ansible/defaults/main.yml | 41 | # local | COMMENT |
| LOW | roles/kubernetes-apps/ansible/defaults/main.yml | 81 | # dns_autoscaler_extra_tolerations: [{effect: NoSchedule, operator: "Exists"}] | COMMENT |
| LOW | roles/network_plugin/calico_defaults/defaults/main.yml | 101 | # Calico NFTable Mode Support (tech preview 3.29) | COMMENT |
| LOW | roles/network_plugin/flannel/defaults/main.yml | 1 | --- | COMMENT |
| LOW | roles/network_plugin/cilium/defaults/main.yml | 41 | cilium_enable_portmap: false | COMMENT |
| LOW | roles/network_plugin/cilium/defaults/main.yml | 61 | # You wil also have to specify the variable `cilium_native_routing_cidr` to | COMMENT |
| LOW | roles/network_plugin/cilium/defaults/main.yml | 81 | # Enable transparent network encryption. | COMMENT |
| LOW | roles/network_plugin/cilium/defaults/main.yml | 161 | COMMENT | |
| LOW | roles/network_plugin/cilium/defaults/main.yml | 221 | COMMENT | |
| LOW | roles/network_plugin/cilium/defaults/main.yml | 241 | # Available for Cilium v1.12 and up. | COMMENT |
| LOW | roles/network_plugin/cilium/defaults/main.yml | 261 | # Available for Cilium v1.10 and up | COMMENT |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 221 | # Deploy cilium even if kube_network_plugin is not cilium. | COMMENT |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 261 | # | COMMENT |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 281 | ipv6_stack: "{{ enable_dual_stack_networks | default(false) }}" | COMMENT |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 321 | kube_api_aggregator_routing: false | COMMENT |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 401 | # Rotate container stderr/stdout logs at 50m and keep last 5 | COMMENT |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 481 | gateway_api_enabled: false | COMMENT |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 521 | COMMENT | |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 541 | enabled: "{{ kube_api_anonymous_auth }}" | COMMENT |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 561 | ## 'RBAC' modes are tested. Order is important. | COMMENT |
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 581 | # webhook: | COMMENT |
| LOW | roles/etcd_defaults/defaults/main.yml | 41 | COMMENT | |
| LOW | roles/etcd_defaults/defaults/main.yml | 81 | # Maximum number of snapshot files to retain (0 is unlimited) | COMMENT |
| LOW | roles/etcd_defaults/defaults/main.yml | 101 | # - TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA | COMMENT |
| LOW | roles/kubernetes/node/defaults/main.yml | 101 | COMMENT | |
| LOW | roles/kubernetes/node/defaults/main.yml | 141 | kube_read_only_port: 0 | COMMENT |
| LOW | roles/kubernetes/node/defaults/main.yml | 161 | # - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 | COMMENT |
| LOW | roles/kubernetes/kubeadm_common/defaults/main.yml | 1 | --- | COMMENT |
| LOW | …/kubernetes/control-plane/defaults/main/kube-proxy.yml | 61 | kube_proxy_min_sync_period: 0s | COMMENT |
| LOW | roles/kubernetes/control-plane/defaults/main/main.yml | 61 | audit_log_maxage: 30 | COMMENT |
| LOW | roles/kubernetes/control-plane/defaults/main/main.yml | 101 | kube_apiserver_pod_eviction_unreachable_timeout_seconds: "300" | COMMENT |
| LOW | roles/kubernetes/control-plane/defaults/main/main.yml | 161 | kube_webhook_authorization: false | COMMENT |
| LOW | roles/kubernetes/control-plane/defaults/main/main.yml | 201 | kube_encrypt_token: "{{ lookup('password', credentials_dir + '/kube_encrypt_token.creds length=32 chars=ascii_letters,di | COMMENT |
| LOW | roles/kubernetes/control-plane/defaults/main/main.yml | 221 | # - TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA | COMMENT |
| LOW | roles/container-engine/containerd/defaults/main.yml | 81 | containerd_cfg_dir: /etc/containerd | COMMENT |
| LOW | roles/container-engine/cri-o/defaults/main.yml | 21 | # mirrors: | COMMENT |
| LOW | docs/calico_peer_example/new-york.yml | 1 | # --- | COMMENT |
| LOW | docs/calico_peer_example/paris.yml | 1 | # --- | COMMENT |
| LOW | contrib/terraform/terraform.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | inventory/sample/inventory.ini | 1 | # This inventory describe a HA typology with stacked etcd (== same nodes as control plane) | COMMENT |
| LOW | inventory/sample/group_vars/all/azure.yml | 1 | ## When azure is used, you need to also set the following variables. | COMMENT |
| LOW | inventory/sample/group_vars/all/azure.yml | 21 | ## Azure Disk CSI credentials and parameters | COMMENT |
| LOW | inventory/sample/group_vars/all/cri-o.yml | 1 | # Registries defined within cri-o. | COMMENT |
| LOW | inventory/sample/group_vars/all/hcloud.yml | 1 | ## Values for the external Hcloud Cloud Controller | COMMENT |
| LOW | inventory/sample/group_vars/all/hcloud.yml | 21 | # load_balancers_enabled: | COMMENT |
| LOW | inventory/sample/group_vars/all/containerd.yml | 1 | --- | COMMENT |
| LOW | inventory/sample/group_vars/all/containerd.yml | 21 | # options: | COMMENT |
| LOW | inventory/sample/group_vars/all/containerd.yml | 41 | COMMENT | |
| LOW | inventory/sample/group_vars/all/all.yml | 1 | --- | COMMENT |
| LOW | inventory/sample/group_vars/all/all.yml | 21 | # valid options are "nginx" or "haproxy" | COMMENT |
| LOW | inventory/sample/group_vars/all/all.yml | 41 | # - 8.8.4.4 | COMMENT |
| 90 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | contrib/terraform/aws/modules/nlb/main.tf | 1 | # Create a new AWS NLB for K8S API | COMMENT |
| MEDIUM | contrib/terraform/aws/modules/nlb/main.tf | 14 | # Create a new AWS NLB Instance Target Group | COMMENT |
| MEDIUM | contrib/terraform/aws/modules/nlb/main.tf | 31 | # Create a new AWS NLB Listener listen to target group | COMMENT |
| MEDIUM | …b/terraform/upcloud/modules/kubernetes-cluster/main.tf | 2 | # Create a list of all disks to create | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | roles/kubespray_defaults/defaults/main/main.yml | 9 | # Check if access_ip responds to ping. Set false if your firewall blocks ICMP. | COMMENT |
| LOW | contrib/aws_inventory/kubespray-aws-inventory.py | 21 | ##Check if VPC_VISIBILITY is set, if not default to private | COMMENT |
| LOW | inventory/sample/group_vars/all/all.yml | 94 | ## Set true to download and cache container | COMMENT |
| LOW | inventory/sample/group_vars/all/all.yml | 112 | ## Check if access_ip responds to ping. Set false if your firewall blocks ICMP. | COMMENT |
| LOW | inventory/sample/group_vars/all/etcd.yml | 15 | # Set this to docker if you are using container_manager: docker | COMMENT |
| LOW | scripts/gen_docs_sidebar.sh | 16 | # Check if it is a directory | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/modules/kube.py | 310 | CODE | |
| LOW | tests/scripts/md-table/main.py | 55 | CODE | |
| LOW | library/kube.py | 310 | CODE | |
| LOW | contrib/terraform/terraform.py | 41 | CODE | |
| LOW | contrib/terraform/terraform.py | 62 | CODE | |
| LOW | scripts/openstack-cleanup/main.py | 27 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/modules/kube.py | 363 | CODE | |
| LOW | library/kube.py | 363 | CODE | |
| LOW | contrib/aws_inventory/kubespray-aws-inventory.py | 3 | CODE | |
| LOW | scripts/openstack-cleanup/main.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/files/custom_cni/cilium.yaml | 52 | # for seamless migrations from the kvstore mode to the crd mode. Consult the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/modules/kube.py | 160 | except Exception as exc: | STRING |
| LOW | library/kube.py | 160 | except Exception as exc: | STRING |
| LOW | scripts/openstack-cleanup/main.py | 50 | except Exception as ex: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nent_hash_update/src/component_hash_update/download.py | 30 | logger = logging.getLogger(__name__) | CODE |