IPFS implementation in Go: a daemon that stores and serves content-addressed data, with a CLI, HTTP Gateway, and RPC API
This report summarizes scanner evidence for ipfs/kubo, a Go project with 17,164 GitHub stars. SynthScan examined 161,381 lines of code across 804 source files, recording 192 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 2.4 (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? 140 finding(s).
Are imports declared and package/API names verified? 9 finding(s).
Are wrappers, guards, and repeated structures necessary? 43 finding(s).
Which changes need focused human review? 192 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 192 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 | tracing/doc.go | 1 | // Package tracing contains the tracing logic for go-ipfs, including configuring the tracer and | COMMENT |
| LOW | tracing/doc.go | 21 | // - OTEL_EXPORTER_OTLP_PROTOCOL | COMMENT |
| LOW | tracing/doc.go | 41 | // a full Jaeger stack and configure Kubo to publish traces to it: | COMMENT |
| LOW | tracing/doc.go | 61 | // | COMMENT |
| LOW | core/builder.go | 21 | type FXNodeInfo struct { | COMMENT |
| LOW | core/builder.go | 141 | // TODO: How soon will bootstrap move to libp2p? | COMMENT |
| LOW | core/corehttp/gateway.go | 301 | COMMENT | |
| LOW | core/corehttp/corehttp.go | 81 | // Serve accepts incoming HTTP connections on the listener and passes them | COMMENT |
| LOW | core/coreiface/unixfs.go | 81 | Get(context.Context, path.Path) (files.Node, error) | COMMENT |
| LOW | core/coreiface/unixfs.go | 101 | Ls(context.Context, path.Path, chan<- DirEntry, ...options.UnixfsLsOption) error | COMMENT |
| LOW | core/coreiface/name.go | 21 | // IPNS is a PKI namespace, where names are the hashes of public keys, and the | COMMENT |
| LOW | core/commands/provide.go | 201 | COMMENT | |
| LOW | core/commands/provide.go | 781 | COMMENT | |
| LOW | core/commands/ls.go | 281 | } | COMMENT |
| LOW | core/commands/refs.go | 221 | var count int | COMMENT |
| LOW | core/commands/keystore.go | 301 | // therefore written in place. | COMMENT |
| LOW | core/commands/dag/import.go | 121 | COMMENT | |
| LOW | core/commands/dag/export.go | 161 | // CARv1 stream. | COMMENT |
| LOW | core/commands/cmdenv/cidbase.go | 61 | } | COMMENT |
| LOW | core/commands/cmdenv/env.go | 101 | // - If Provide.DHT.SweepEnabled=true or OptimisticProvide=true, we make an | COMMENT |
| LOW | core/commands/cmdenv/env.go | 121 | // - wait: whether to block until provide completes (sync mode) | COMMENT |
| LOW | core/commands/cmdenv/env.go | 201 | // Context handling: | COMMENT |
| LOW | core/node/provider.go | 101 | const consecutiveAlertsThreshold = 3 | COMMENT |
| LOW | core/node/provider.go | 121 | // can happen if the provider is closed or if the node is currently Offline | COMMENT |
| LOW | core/node/provider.go | 141 | // The keys are not deleted from the keystore, so they will continue to be | COMMENT |
| LOW | core/node/provider.go | 661 | // In no-schedule mode the on-disk keystore is never used. If a | COMMENT |
| LOW | core/node/provider.go | 721 | } | COMMENT |
| LOW | core/node/provider.go | 1321 | COMMENT | |
| LOW | core/node/storage.go | 121 | COMMENT | |
| LOW | core/node/p2pforge_resolver.go | 21 | // falls back to network DNS. This ensures future <peerID>.libp2p.direct records | COMMENT |
| LOW | core/node/libp2p/routingopt.go | 321 | // httpRouterAddrFunc returns a function that resolves provider addresses for | COMMENT |
| LOW | core/node/libp2p/addrs.go | 61 | // listenAddrs must be already-resolved interface addresses (output of | COMMENT |
| LOW | core/node/libp2p/addrs.go | 141 | return "", false | COMMENT |
| LOW | core/node/libp2p/addrs.go | 201 | // MonitorDeadListeners runs findDeadListeners at startup and on every | COMMENT |
| LOW | test/ipfs-test-lib.sh | 81 | } | COMMENT |
| LOW | test/sharness/t0051-object.sh | 41 | # only manipulates ProtoNode links without updating UnixFS metadata. | COMMENT |
| LOW | test/sharness/t0095-refs.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/sharness/t0095-refs.sh | 21 | # L2- D 1.txt B 2.txt | COMMENT |
| LOW | test/sharness/t0095-refs.sh | 41 | # added QmU6xujRsYzcrkocuR3fhfnkZBB8eyUFFq4WKRGw2aS15h A | COMMENT |
| LOW | test/sharness/t0116-gateway-cache.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/sharness/t0114-gateway-subdomains/README.md | 101 | # RSA_IPNS_IDv0=QmVujd5Vb7moysJj8itnGufN7MEtPRCNHkKpNuA4onsRa3 | COMMENT |
| LOW | test/cli/add_test.go | 601 | // createDirectoryForHAMTLinksEstimation creates a directory with the specified number | COMMENT |
| LOW | test/cli/provider_test.go | 1421 | // dagwalker: bloom creation log | COMMENT |
| LOW | test/cli/provider_test.go | 1821 | // cancellation as shutdown-caused and logs at Debug as | COMMENT |
| LOW | test/cli/cid_profiles_test.go | 61 | COMMENT | |
| LOW | test/cli/dag_layout_test.go | 21 | // | COMMENT |
| LOW | test/cli/key_test.go | 21 | // same interoperable format. Regenerate with: | COMMENT |
| LOW | test/cli/pubsub_test.go | 41 | } | COMMENT |
| LOW | test/cli/dag_test.go | 501 | // leaves 2 blocks. Asserting the exact count proves --offline was | COMMENT |
| LOW | test/cli/update_test.go | 161 | t.Parallel() | COMMENT |
| LOW | test/cli/update_test.go | 321 | "binary at %s should contain the extracted archive content", tmpBinPath) | COMMENT |
| LOW | test/cli/update_test.go | 481 | // "ipfs update check" and "ipfs update versions" without touching the | COMMENT |
| LOW | test/cli/block_size_test.go | 21 | twoMiBPlus = twoMiB + 1 // 2097153 | COMMENT |
| LOW | test/cli/block_size_test.go | 201 | t.Run("ipfs add non-raw-leaves", func(t *testing.T) { | COMMENT |
| LOW | test/cli/provide_stats_test.go | 41 | // Tests will naturally fail if upstream removes/renames fields we depend on. | COMMENT |
| LOW | test/cli/fuse/realworld_test.go | 1 | //go:build (linux || darwin || freebsd) && !nofuse | COMMENT |
| LOW | test/cli/harness/log.go | 21 | func (e events) Len() int { return len(e) } | COMMENT |
| LOW | test/cli/harness/dht_stub_peers.go | 21 | // queries GET_PROVIDERS from any peer, it finds the record because | COMMENT |
| LOW | test/cli/autoconf/extensibility_test.go | 21 | // 1. New systems can be added via AutoConf's SystemRegistry | COMMENT |
| LOW | test/cli/autoconf/expand_comprehensive_test.go | 1 | // Package autoconf provides comprehensive tests for --expand-auto functionality. | COMMENT |
| 54 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 10 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 12 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 83 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 85 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 128 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 131 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 206 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 209 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 292 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 294 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 324 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 327 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 342 | # ============================================================================= | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 466 | # ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 497 | # ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 521 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 573 | # ============================================================================= | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 599 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 601 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 616 | # ============================================================================= | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 646 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 649 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 740 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 742 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 773 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 775 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 807 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 809 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 890 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 892 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 908 | # ============================================================================= | COMMENT |
| MEDIUM | test/sharness/t0109-gateway-web-_redirects.sh | 10 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0109-gateway-web-_redirects.sh | 12 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 10 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 12 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 30 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 32 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 68 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 70 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 109 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 111 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 160 | ## ============================================================================ | COMMENT |
| MEDIUM | test/sharness/t0115-gateway-dir-listing.sh | 162 | ## ============================================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | core/node/groups.go | 117 | enableTCPTransport := cfg.Swarm.Transports.Network.TCP.WithDefault(true) | CODE |
| CRITICAL⚡ | core/node/groups.go | 118 | enableWebsocketTransport := cfg.Swarm.Transports.Network.Websocket.WithDefault(true) | CODE |
| CRITICAL⚡ | core/node/groups.go | 119 | enableRelayTransport := cfg.Swarm.Transports.Network.Relay.WithDefault(true) // nolint | CODE |
| CRITICAL | core/node/bitswap.go | 134 | maxProviders = int(in.Cfg.Internal.Bitswap.ProviderSearchMaxResults.WithDefault(DefaultMaxProviders)) | CODE |
| CRITICAL⚡ | plugin/plugins/telemetry/telemetry.go | 565 | p.event.ProvideDHTSweepEnabled = p.config.Provide.DHT.SweepEnabled.WithDefault(config.DefaultProvideDHTSweepEnabled) | CODE |
| CRITICAL⚡ | plugin/plugins/telemetry/telemetry.go | 566 | p.event.ProvideDHTIntervalCustom = !p.config.Provide.DHT.Interval.IsDefault() | CODE |
| CRITICAL⚡ | plugin/plugins/telemetry/telemetry.go | 567 | p.event.ProvideDHTMaxWorkersCustom = !p.config.Provide.DHT.MaxWorkers.IsDefault() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/cli/autoconf/autoconf_test.go | 423 | // Step 1: Create bootstrap node (target for connections) | COMMENT |
| LOW | test/cli/autoconf/autoconf_test.go | 443 | // Step 2: Create autoconf server that returns bootstrap node's address | COMMENT |
| LOW | test/cli/autoconf/autoconf_test.go | 466 | // Step 3: Create autoconf-enabled node that should connect to bootstrap node | COMMENT |
| LOW⚡ | test/cli/autoconf/autoconf_test.go | 479 | // Step 4: Give time for autoconf resolution and connection attempts | COMMENT |
| LOW⚡ | test/cli/autoconf/autoconf_test.go | 482 | // Step 5: Verify both nodes are responsive | COMMENT |
| LOW⚡ | test/cli/autoconf/autoconf_test.go | 489 | // Step 6: Verify that autoconf node connected to bootstrap node | COMMENT |
| LOW | test/cli/autoconf/autoconf_test.go | 511 | // Step 7: Verify bootstrap configuration still shows "auto" (not resolved values) | COMMENT |
| LOW | docs/add-code-flow.md | 55 | ### Step 1: Chunking | COMMENT |
| LOW | docs/add-code-flow.md | 75 | ### Step 2: Building the DAG | COMMENT |
| LOW | docs/add-code-flow.md | 111 | ### Step 3: Storing Blocks | COMMENT |
| LOW | docs/add-code-flow.md | 118 | ### Step 4: Pinning | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/cli/autoconf/autoconf_test.go | 423 | // Step 1: Create bootstrap node (target for connections) | COMMENT |
| LOW | test/cli/autoconf/autoconf_test.go | 443 | // Step 2: Create autoconf server that returns bootstrap node's address | COMMENT |
| LOW | test/cli/autoconf/autoconf_test.go | 466 | // Step 3: Create autoconf-enabled node that should connect to bootstrap node | COMMENT |
| LOW⚡ | test/cli/autoconf/autoconf_test.go | 479 | // Step 4: Give time for autoconf resolution and connection attempts | COMMENT |
| LOW⚡ | test/cli/autoconf/autoconf_test.go | 482 | // Step 5: Verify both nodes are responsive | COMMENT |
| LOW⚡ | test/cli/autoconf/autoconf_test.go | 489 | // Step 6: Verify that autoconf node connected to bootstrap node | COMMENT |
| LOW | test/cli/autoconf/autoconf_test.go | 511 | // Step 7: Verify bootstrap configuration still shows "auto" (not resolved values) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tracing/doc.go | 60 | // # In this example the Jaeger UI is available at http://localhost:16686. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | cmd/ipfs/kubo/daemon.go | 465 | // Private setups can't leverage peers returned by default IPNIs (Routing.Type=auto) | COMMENT |
| MEDIUM | .github/workflows/gotest.yml | 189 | # under the harness temp dir (ipfs/ipns/mfs subdirectories). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/sharness/t0114-gateway-subdomains.sh | 28 | # Create a raw URL version with IP to ensure hostname from Host header is used | COMMENT |
| MEDIUM | test/sharness/t0250-files-api.sh | 70 | # Create the files in reverse (unsorted) order (`seq 100 -1 1`) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bin/push-docker-tags.sh | 15 | # Usage: | COMMENT |
| LOW | bin/get-docker-tags.sh | 5 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/cli/provider_test.go | 1777 | fmt.Sprintf("/provider/keystore/%d/fake-key-%d", i%2, i), | CODE |
| LOW | test/cli/provider_test.go | 1800 | key := fmt.Sprintf("/provider/keystore/%d/fake-key-%d", i%2, i) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/commands/log.go | 87 | ipfs log level all info # Set ALL to 'info' (including default) | CODE |