Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.
This report summarizes scanner evidence for linkerd/linkerd2, a Go project with 11,523 GitHub stars. SynthScan examined 284,916 lines of code across 1170 source files, recording 222 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 0.8 (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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 214 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 222 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 222 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 |
|---|---|---|---|---|
| LOW | test/integration/deep/opaqueports/assertions.go | 61 | COMMENT | |
| LOW | test/integration/deep/appprotocol/assertions.go | 61 | COMMENT | |
| LOW | test/integration/viz/stat/stat_test.go | 21 | TestHelper = testutil.NewTestHelper() | COMMENT |
| LOW | test/integration/external/stat/stat_test.go | 21 | TestHelper = testutil.NewTestHelper() | COMMENT |
| LOW | policy-controller/k8s/api/src/duration.rs | 181 | } | COMMENT |
| LOW | policy-controller/k8s/api/src/duration.rs | 321 | // Rust Durations can handle larger durations than Go's | COMMENT |
| LOW | policy-controller/k8s/api/src/lib.rs | 41 | /// The `TLSRoute` API versions the policy controller knows how to watch, | COMMENT |
| LOW | policy-controller/k8s/api/src/lib.rs | 81 | /// by Gateway API v1.5 and later. Clusters running v1.2--v1.4, as well as | COMMENT |
| LOW | policy-controller/k8s/api/src/external_workload.rs | 21 | /// Ports describes a set of ports exposed by the workload | COMMENT |
| LOW | policy-controller/k8s/api/src/external_workload.rs | 41 | /// PortSpec represents a network port in a single workload. | COMMENT |
| LOW | …-controller/k8s/api/src/policy/server_authorization.rs | 41 | COMMENT | |
| LOW | policy-controller/k8s/api/src/policy/httproute.rs | 41 | COMMENT | |
| LOW | policy-controller/k8s/api/src/policy/httproute.rs | 61 | /// value: "/foo" | COMMENT |
| LOW | policy-controller/k8s/api/src/policy/httproute.rs | 81 | /// | COMMENT |
| LOW | policy-controller/k8s/api/src/policy/httproute.rs | 101 | /// the above criteria. | COMMENT |
| LOW | policy-controller/k8s/api/src/policy/httproute.rs | 121 | /// Specifying a core filter multiple times has unspecified or custom | COMMENT |
| LOW | policy-controller/k8s/api/src/policy/httproute.rs | 141 | /// requests that would have otherwise been routed to an invalid backend. If | COMMENT |
| LOW | policy-controller/k8s/api/src/policy/httproute.rs | 161 | /// HTTPRouteFilter defines processing steps that must be completed during the | COMMENT |
| LOW | policy-controller/k8s/api/src/policy/httproute.rs | 181 | /// | COMMENT |
| LOW | policy-controller/k8s/api/src/policy/httproute.rs | 201 | #[derive( | COMMENT |
| LOW | policy-controller/k8s/index/src/ports.rs | 1 | use anyhow::{bail, Context, Result}; | COMMENT |
| LOW | policy-controller/k8s/index/src/lib.rs | 1 | //! The policy controller serves discovery requests from inbound proxies, indicating how the proxy | COMMENT |
| LOW | policy-controller/k8s/index/src/inbound/index.rs | 101 | /// may have its own `admin` port. | COMMENT |
| LOW | policy-controller/k8s/index/src/inbound/index.rs | 1481 | impl ExternalWorkload { | COMMENT |
| LOW | policy-controller/runtime/src/args.rs | 21 | COMMENT | |
| LOW | charts/linkerd-control-plane/values.yaml | 1 | # Default values for linkerd. | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 41 | # proxy (IPv6 routing only available as of proxy-init v2.3.0 and linkerd-cni | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 61 | # requires the linkerd-cni plugin to already be installed | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 121 | timeoutSeconds: 1 | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 141 | disableOutboundProtocolDetectTimeout: false | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 181 | # annotation. A cluster-level maximum may be configured here (and a | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 221 | # -- (int) Optional customisation of the group id under which the proxy runs (the group ID will be omitted if lower th | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 241 | # - PostgreSQL (5432) server-first | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 321 | # -- The interval at which PINGs are issued to local application HTTP/2 clients. | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 341 | kubeAPIServerPorts: "443,6443" | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 501 | #identityResources: | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 541 | operator: DoesNotExist | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 581 | #`proxy.resources` for sub-fields) | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 601 | - disabled | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 621 | # for more information. | COMMENT |
| LOW | charts/linkerd-control-plane/values.yaml | 661 | # See the cert-manager [CA Injector Docs](https://cert-manager.io/docs/concepts/ca-injector) for more information. | COMMENT |
| LOW | charts/linkerd-crds/values.yaml | 1 | # -- Controls if Linkerd should install the Gateway API CRDs. This value acts | COMMENT |
| LOW | charts/linkerd2-cni/values.yaml | 21 | # -- User id under which the proxy shall be ran | COMMENT |
| LOW | charts/linkerd2-cni/values.yaml | 61 | COMMENT | |
| LOW | charts/linkerd2-cni/values.yaml | 81 | #imagePullSecrets: | COMMENT |
| LOW | cli/cmd/install.go | 481 | // contains the subset of the values which have been changed from their defaults. | COMMENT |
| LOW | controller/cmd/heartbeat/main.go | 21 | COMMENT | |
| LOW | controller/gen/apis/externalworkload/v1beta1/types.go | 61 | // MeshTls describes TLS settings associated with an external workload | COMMENT |
| LOW | controller/gen/apis/externalworkload/v1beta1/types.go | 101 | COMMENT | |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 61 | // Hostnames defines a set of hostname that should match against the HTTP | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 81 | // not match. | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 101 | // +kubebuilder:validation:MaxItems=16 | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 121 | // | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 141 | // | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 161 | // * The Route appearing first in alphabetical order by | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 181 | // | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 201 | // +kubebuilder:validation:MaxItems=16 | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 221 | // | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 241 | } | COMMENT |
| LOW | controller/gen/apis/policy/v1beta3/types.go | 261 | // | COMMENT |
| 142 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ds/templates/gateway.networking.k8s.io_httproutes.yaml | 0 | ') && (!has(p2.__namespace__) || p2.__namespace__ == | STRING |
| HIGH | …rds/templates/gateway.networking.k8s.io_tcproutes.yaml | 0 | ') && (!has(p2.__namespace__) || p2.__namespace__ == | STRING |
| HIGH | …ds/templates/gateway.networking.k8s.io_grpcroutes.yaml | 0 | ') && (!has(p2.__namespace__) || p2.__namespace__ == | STRING |
| HIGH | …rds/templates/gateway.networking.k8s.io_tlsroutes.yaml | 0 | ') && (!has(p2.__namespace__) || p2.__namespace__ == | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/integration/install/install_test.go | 331 | "--set", "identity.issuer.crtExpiry=" + root.Cred.Crt.Certificate.NotAfter.Format(time.RFC3339), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/integration/deep/norelay/norelay_test.go | 24 | // in an open relay, by trying to leverage the l5d-dst-override header in an | COMMENT |
| MEDIUM | pkg/k8s/k8s.go | 185 | // Essentially the reverse of CanonicalResourceNameFromFriendlyName | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | controller/k8s/api.go | 77 | // metrics on each one; don't forget to call UnregisterGauges() on the returned | COMMENT |
| LOW | controller/k8s/api.go | 100 | // registering metrics on each one; don't forget to call UnregisterGauges() on | COMMENT |
| LOW | controller/k8s/api.go | 162 | // registering metrics on each one; don't forget to call UnregisterGauges() on | COMMENT |
| LOW | controller/k8s/api.go | 177 | // registering metrics on each one; don't forget to call UnregisterGauges() on | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bin/update-codegen.sh | 32 | # Create a symlink so that the root of the repo is inside github.com/linkerd/linkerd2. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | charts/linkerd-control-plane/values-ha.yaml | 2 | # Usage: | COMMENT |
| LOW | viz/charts/linkerd-viz/values-ha.yaml | 2 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | charts/linkerd2-cni/values.yaml | 85 | # which will further orchestrate the deployments. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/identity/service_test.go | 36 | fakeData := "fake-data" | CODE |
| LOW | pkg/tls/ca_test.go | 14 | ca, err := CreateRootCA("fake-name", key, Validity{ValidFrom: &validFrom, Lifetime: issuerCertLifetime}) | CODE |
| LOW | pkg/tls/ca_test.go | 57 | crt, err := ca.GenerateEndEntityCred("fake-name") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ination/external-workload/endpoints_controller_test.go | 910 | // TODO: Add tests for labels change | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | viz/charts/linkerd-viz/values.yaml | 86 | # Set this to the name of your jaeger instance, e.g. `jaeger.<namespace>.svc.<clusterDomain>:16686`. | COMMENT |