k0s - The Zero Friction Kubernetes
This report presents the forensic synthetic code analysis of k0sproject/k0s, a Go project with 6,334 GitHub stars. SynthScan v2.0 examined 128,945 lines of code across 983 source files, recording 129 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.3 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 129 distinct pattern matches across 10 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 |
|---|---|---|---|---|
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 123 | require.Equal(t, "my.repo/k0sproject/calico-cni:"+constant.CalicoCNIImageVersion, testingConfig.Spec.Images.Calico.CN | CODE |
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 124 | require.Equal(t, "my.repo/k0sproject/calico-kube-controllers:"+constant.CalicoKubeControllersImageVersion, testingCon | CODE |
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 125 | require.Equal(t, "my.repo/k0sproject/calico-node:"+constant.CalicoNodeImageVersion, testingConfig.Spec.Images.Calico. | CODE |
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 126 | require.Equal(t, "my.repo/k0sproject/cni-node:"+constant.KubeRouterCNIInstallerImageVersion, testingConfig.Spec.Image | CODE |
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 129 | require.Equal(t, "my.repo/k0sproject/kube-router:"+constant.KubeRouterCNIImageVersion, testingConfig.Spec.Images.Kube | CODE |
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 141 | require.Equal(t, "my.repo/k0sproject/calico-cni:"+constant.CalicoCNIImageVersion, testingConfig.Spec.Images.Calico.CN | CODE |
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 142 | require.Equal(t, "my.repo/k0sproject/calico-kube-controllers:"+constant.CalicoKubeControllersImageVersion, testingCon | CODE |
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 143 | require.Equal(t, "my.repo/k0sproject/calico-node:"+constant.CalicoNodeImageVersion, testingConfig.Spec.Images.Calico. | CODE |
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 144 | require.Equal(t, "my.repo/k0sproject/cni-node:"+constant.KubeRouterCNIInstallerImageVersion, testingConfig.Spec.Image | CODE |
| CRITICAL⚡ | pkg/apis/k0s/v1beta1/images_test.go | 147 | require.Equal(t, "my.repo/k0sproject/kube-router:"+constant.KubeRouterCNIImageVersion, testingConfig.Spec.Images.Kube | CODE |
| CRITICAL | pkg/component/controller/metrics.go | 141 | if m.clusterConfig == nil || clusterConfig.Spec.Images.PushGateway.URI() != m.clusterConfig.Spec.Images.PushGateway.URI | CODE |
| CRITICAL⚡ | pkg/component/controller/calico.go | 312 | CalicoCNIImage: clusterConfig.Spec.Images.Calico.CNI.URI(), | CODE |
| CRITICAL⚡ | pkg/component/controller/calico.go | 313 | CalicoCNIWindowsImage: clusterConfig.Spec.Images.Calico.Windows.CNI.URI(), | CODE |
| CRITICAL⚡ | pkg/component/controller/calico.go | 314 | CalicoNodeImage: clusterConfig.Spec.Images.Calico.Node.URI(), | CODE |
| CRITICAL⚡ | pkg/component/controller/calico.go | 315 | CalicoNodeWindowsImage: clusterConfig.Spec.Images.Calico.Windows.Node.URI(), | CODE |
| CRITICAL⚡ | pkg/component/controller/calico.go | 316 | CalicoKubeControllersImage: clusterConfig.Spec.Images.Calico.KubeControllers.URI(), | CODE |
| CRITICAL | pkg/component/controller/metricserver.go | 350 | Image: m.clusterConfig.Spec.Images.MetricsServer.URI(), | CODE |
| CRITICAL | pkg/component/controller/kuberouter.go | 148 | CNIImage: clusterConfig.Spec.Images.KubeRouter.CNI.URI(), | CODE |
| CRITICAL | pkg/component/controller/kuberouter.go | 149 | CNIInstallerImage: clusterConfig.Spec.Images.KubeRouter.CNIInstaller.URI(), | CODE |
| CRITICAL | pkg/component/controller/kubeproxy.go | 275 | WindowsImage: clusterConfig.Spec.Images.Windows.KubeProxy.URI(), | CODE |
| CRITICAL⚡ | pkg/airgap/images.go | 49 | env.Spec.Images.Windows.Pause.URI(), | CODE |
| CRITICAL⚡ | pkg/airgap/images.go | 50 | env.Spec.Images.Windows.KubeProxy.URI(), | CODE |
| CRITICAL⚡ | pkg/airgap/images.go | 58 | env.Spec.Images.KubeRouter.CNIInstaller.URI(), | CODE |
| CRITICAL⚡ | pkg/airgap/images.go | 59 | env.Spec.Images.KubeRouter.CNI.URI(), | CODE |
| CRITICAL⚡ | pkg/airgap/images.go | 68 | env.Spec.Images.Calico.CNI.URI(), | CODE |
| CRITICAL⚡ | pkg/airgap/images.go | 69 | env.Spec.Images.Calico.KubeControllers.URI(), | CODE |
| CRITICAL⚡ | pkg/airgap/images.go | 70 | env.Spec.Images.Calico.Node.URI(), | CODE |
| CRITICAL⚡ | pkg/airgap/images.go | 74 | env.Spec.Images.Calico.Windows.CNI.URI(), | CODE |
| CRITICAL⚡ | pkg/airgap/images.go | 75 | env.Spec.Images.Calico.Windows.Node.URI(), | CODE |
| CRITICAL | pkg/airgap/images.go | 87 | env.Spec.Network.NodeLocalLoadBalancing.EnvoyProxy.OrDefault().Image.URI(), | CODE |
| CRITICAL | pkg/airgap/images.go | 95 | env.Spec.Network.NodeLocalLoadBalancing.Traefik.OrDefault().Image.URI(), | CODE |
| CRITICAL | pkg/autopilot/controller/updates/periodicupdater.go | 148 | if !u.updateConfig.Spec.UpgradeStrategy.Periodic.IsWithinPeriod(time.Now()) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/http/filename_test.go | 81 | // In comparison to attwithfilenameandextparam, the extension parameter actually uses backslash-escapes. | COMMENT |
| LOW | internal/http/filename_test.go | 101 | "attwithasciifilenamenqs": {`attachment; filename=foo.html ;`, "attwithasciifilenamenqs"}, | COMMENT |
| LOW | internal/http/filename_test.go | 121 | COMMENT | |
| LOW | internal/http/filename_test.go | 141 | // treatment of "name" as synonym for "filename"; see Ned Freed's | COMMENT |
| LOW | internal/http/filename_test.go | 161 | "attwithasciifilenamews1": {`attachment; filename ="foo.html"`, "foo.html"}, | COMMENT |
| LOW | internal/http/filename_test.go | 181 | COMMENT | |
| LOW | internal/http/filename_test.go | 221 | "attbrokenquotedfn2": {`attachment; filename="bar`, "attbrokenquotedfn2"}, | COMMENT |
| LOW | internal/http/filename_test.go | 241 | COMMENT | |
| LOW | internal/http/filename_test.go | 281 | COMMENT | |
| LOW | internal/http/filename_test.go | 341 | } | COMMENT |
| LOW | internal/os/unix/dir.go | 61 | COMMENT | |
| LOW | internal/os/unix/dir.go | 81 | // file system path manipulation, which contradicts the nature of a Dir. For | COMMENT |
| LOW | internal/os/linux/pidfd.go | 141 | func pidfdSendSignal(pidfd int, sig syscall.Signal) error { | COMMENT |
| LOW | internal/os/linux/procfs/procfs.go | 41 | return string(p) | COMMENT |
| LOW | internal/os/windows/console.go | 61 | } | COMMENT |
| LOW | internal/sync/value/latest.go | 1 | // SPDX-FileCopyrightText: 2024 k0s authors | COMMENT |
| LOW | internal/sync/value/latest.go | 21 | // import ( | COMMENT |
| LOW | internal/sync/value/latest.go | 41 | // fmt.Println("Peeked value:", value) // Output: Peeked value: 42 | COMMENT |
| LOW | internal/testutil/portforward.go | 41 | // | COMMENT |
| LOW | internal/pkg/file/atomic.go | 81 | COMMENT | |
| LOW | internal/pkg/file/atomic.go | 261 | // it is safe to do this after the permission change. So if this succeeds, | COMMENT |
| LOW | internal/pkg/file/atomic.go | 341 | }) | COMMENT |
| LOW | internal/pkg/sysinfo/host_linux.go | 41 | // explanation. The probes here are documented as good as possible in | COMMENT |
| LOW | internal/pkg/sysinfo/probes/probes.go | 1 | // SPDX-FileCopyrightText: 2022 k0s authors | COMMENT |
| LOW | hack/tools/boilerplate.go.txt | 1 | // SPDX-FileCopyrightText: k0s authors | COMMENT |
| LOW | docs/contributors/github_workflow.md | 161 | # Rebase 710f0f8..a5f4a0d onto 710f0f8 | COMMENT |
| LOW | inttest/common/bootloosesuite.go | 281 | s.T().Logf("SSH connection to %s successful", nodeName) | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 21 | COMMENT | |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 41 | // CPLBType describes which type of load balancer should be deployed for the | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 61 | // | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 81 | // +kubebuilder:validation:MaxItems=255 | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 101 | // nodes must use the same VirtualRouterID. Other clusters in the same | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 121 | // If specified, UnicastSourceIP must be specified as well. | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 221 | // microsecond precision. Further precision will be truncated without | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/nllb.go | 21 | // Default: false | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/nllb.go | 121 | // image specifies the OCI image that's being used for the Envoy Pod. | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/nllb.go | 141 | // Default: 7132 | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/nllb.go | 161 | // interface. This must be a valid port number, 0 < x < 65536. | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/network.go | 41 | // Pod network CIDR to use in the cluster | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/doc.go | 1 | // SPDX-FileCopyrightText: 2023 k0s authors | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/patches.go | 21 | // Patch defines the patch type and content. | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/extensions.go | 101 | TargetNS string `json:"namespace"` | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/extensions.go | 161 | COMMENT | |
| LOW | pkg/apis/k0s/v1beta1/api.go | 41 | RawArgs []string `json:"rawArgs,omitempty"` | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/kuberouter.go | 21 | COMMENT | |
| LOW | pkg/apis/etcd/v1beta1/types.go | 1 | // SPDX-FileCopyrightText: 2024 k0s authors | COMMENT |
| LOW | pkg/apis/etcd/v1beta1/doc.go | 1 | // SPDX-FileCopyrightText: 2024 k0s authors | COMMENT |
| LOW | pkg/apis/autopilot/doc.go | 1 | // SPDX-FileCopyrightText: 2023 k0s authors | COMMENT |
| LOW | pkg/apis/autopilot/v1beta2/types.go | 1 | // SPDX-FileCopyrightText: 2022 k0s authors | COMMENT |
| LOW | pkg/apis/autopilot/v1beta2/types.go | 61 | // +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state" | COMMENT |
| LOW | pkg/apis/autopilot/v1beta2/updateconfig.go | 41 | // +kubebuilder:default:="https://updates.k0sproject.io" | COMMENT |
| LOW | pkg/apis/autopilot/v1beta2/doc.go | 1 | // SPDX-FileCopyrightText: 2023 k0s authors | COMMENT |
| LOW | pkg/apis/helm/v1beta1/chart_types.go | 21 | // ConfigSource describes the source of repository configuration values. | COMMENT |
| LOW | pkg/apis/helm/v1beta1/chart_types.go | 101 | // +kubebuilder:object:root=true | COMMENT |
| LOW | pkg/apis/helm/v1beta1/doc.go | 1 | // SPDX-FileCopyrightText: 2023 k0s authors | COMMENT |
| LOW | pkg/install/sysv_linux.go | 1 | // SPDX-FileCopyrightText: 2022 k0s authors | COMMENT |
| LOW | pkg/debounce/debounce.go | 1 | // SPDX-FileCopyrightText: 2020 k0s authors | COMMENT |
| LOW | pkg/component/controller/konnectivityagent.go | 121 | return fmt.Errorf("failed to determine proxy server host and port (%q, %d): %w", externalAddress, cfg.ProxyServerPort | COMMENT |
| LOW | pkg/component/controller/extensions_controller.go | 601 | if cachedRepo == nil { | COMMENT |
| LOW | pkg/component/controller/kubeproxy.go | 221 | nllb := clusterConfig.Spec.Network.NodeLocalLoadBalancing | COMMENT |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | cmd/kubeconfig/create_test.go | 62 | // Verify that the current context is set as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | internal/pkg/file/atomic.go | 102 | // the Atomic robust against intermediary working directory changes. | COMMENT |
| MEDIUM | .github/workflows/win-wsl.yaml | 60 | # This function is used in conjunction with Get-StoredLastBootTime, which | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | hack/ostests/.terraform.lock.hcl | 1 | # This file is maintained automatically by "tofu init". | COMMENT |
| MEDIUM | .github/workflows/win-wsl.yaml | 60 | # This function is used in conjunction with Get-StoredLastBootTime, which | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/oci/download.go | 24 | // Usage example: | COMMENT |
| LOW | hack/tools/gen-matrix.sh | 4 | # Usage: | COMMENT |
| LOW | hack/tools/run-autopilot-matrix-tests.sh | 3 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-entrypoint.sh | 64 | # Check if the requested bit is set. | COMMENT |
| LOW | .github/workflows/unittests-k0s.yml | 26 | # Set SOURCE_DATE_EPOCH to optimize cache usage | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/apis/k0s/v1beta1/network.go | 128 | // Single stack IPv6 is an alpha feature, so we need to check if the feature gate is enabled, but only report it if bo | COMMENT |
| LOW | pkg/node/nodename_windows.go | 19 | // we need to check if we have EC2 dns name available | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | inttest/cplb-userspace/cplbuserspace_test.go | 246 | InsecureSkipVerify: true, // Skip verification for demonstration purposes | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/mkdocs_modules/k0s_mkdocs_hacks/macros.py | 35 | def parse_src_string_literals(): | CODE |