k0s - The Zero Friction Kubernetes
This report summarizes scanner evidence for k0sproject/k0s, a Go project with 6,523 GitHub stars. SynthScan examined 134,201 lines of code across 1006 source files, recording 133 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 4.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 99 finding(s).
Are imports declared and package/API names verified? 32 finding(s).
Are wrappers, guards, and repeated structures necessary? 3 finding(s).
Which changes need focused human review? 133 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 133 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| 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 | 323 | CalicoCNIImage: clusterConfig.Spec.Images.Calico.CNI.URI(), | CODE |
| CRITICAL⚡ | pkg/component/controller/calico.go | 324 | CalicoCNIWindowsImage: clusterConfig.Spec.Images.Calico.Windows.CNI.URI(), | CODE |
| CRITICAL⚡ | pkg/component/controller/calico.go | 325 | CalicoNodeImage: clusterConfig.Spec.Images.Calico.Node.URI(), | CODE |
| CRITICAL⚡ | pkg/component/controller/calico.go | 326 | CalicoNodeWindowsImage: clusterConfig.Spec.Images.Calico.Windows.Node.URI(), | CODE |
| CRITICAL⚡ | pkg/component/controller/calico.go | 327 | 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 | 157 | CNIImage: clusterConfig.Spec.Images.KubeRouter.CNI.URI(), | CODE |
| CRITICAL | pkg/component/controller/kuberouter.go | 158 | CNIInstallerImage: clusterConfig.Spec.Images.KubeRouter.CNIInstaller.URI(), | CODE |
| CRITICAL | pkg/component/controller/kubeproxy.go | 276 | 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/kube_client.go | 121 | COMMENT | |
| LOW | internal/testutil/portforward.go | 41 | // | COMMENT |
| LOW | internal/pkg/net/resolvconf/systemdresolved.go | 21 | // The resolv.conf variant that lists systemd-resolved's uplink DNS servers | 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 | 241 | # x, exec <command> = run command (the rest of the line) using shell | COMMENT |
| LOW | inttest/kubeletcertrotate/kubeletcertrotate_test.go | 121 | // So wait for the initial certificate to expire before probing again. A | COMMENT |
| LOW | inttest/common/bootloosesuite.go | 281 | s.T().Logf("SSH connection to %s successful", nodeName) | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 61 | VirtualServers VirtualServers `json:"virtualServers,omitempty"` | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 81 | ConfigTemplateVS string `json:"configTemplateVS,omitempty"` | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 101 | COMMENT | |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 121 | // +kubebuilder:validation:MaxLength=8 | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 221 | // +listType=map | COMMENT |
| LOW | pkg/apis/k0s/v1beta1/cplb.go | 241 | LBAlgo KeepalivedLBAlgo `json:"lbAlgo,omitempty"` | 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 |
| 25 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 | internal/pkg/sysinfo/probes/network_test.go | 86 | // ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ | COMMENT |
| MEDIUM | internal/pkg/sysinfo/probes/network_test.go | 89 | // ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | 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 |