A modern layer 7 load balancer from baidu
This report summarizes scanner evidence for bfenetworks/bfe, a Go project with 6,272 GitHub stars. SynthScan examined 315,310 lines of code across 1954 source files, recording 1161 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 3.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? 1154 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 1161 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 1161 distinct pattern matches across 9 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 | .pre-commit-config.yaml | 1 | # Copyright 2021 The BFE Authors | COMMENT |
| LOW | .goreleaser.yml | 1 | # Copyright 2021 The BFE Authors | COMMENT |
| LOW | .licenserc.yaml | 1 | # Copyright (c) 2021 The BFE Authors. | COMMENT |
| LOW | release_local.sh | 1 | #! /bin/bash | COMMENT |
| LOW | bfe.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | .travis.yml | 1 | # Copyright 2021 The BFE Authors | COMMENT |
| LOW | revive.toml | 1 | # Copyright (c) 2022 The BFE Authors. | COMMENT |
| LOW | …bfe_tls_conf/server_cert_conf/server_cert_conf_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …/bfe_tls_conf/tls_rule_conf/tls_rule_conf_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …onfig/bfe_tls_conf/tls_rule_conf/tls_rule_conf_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …onfig/bfe_tls_conf/tls_rule_conf/tls_rule_conf_load.go | 41 | // Notes about `NextProtos`: | COMMENT |
| LOW | …onfig/bfe_tls_conf/tls_rule_conf/tls_rule_conf_load.go | 61 | // + valid isw should be [65535, 262144] for current implemention | COMMENT |
| LOW | …onf/session_ticket_key_conf/session_ticket_key_conf.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …ession_ticket_key_conf/session_ticket_key_conf_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_session_cache_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/bfe_config_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_session_ticket_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_session_ticket.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_ai_key_affinity.go | 1 | // Copyright (c) 2026 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_ai_key_affinity.go | 21 | ) | COMMENT |
| LOW | bfe_config/bfe_conf/conf_ai_key_affinity_test.go | 1 | // Copyright (c) 2026 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_https_basic_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_basic.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/bfe_config_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_security.go | 1 | // Copyright (c) 2026 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_https_basic.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_basic_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_session_cache.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …nfig/bfe_cluster_conf/gslb_conf/gslb_conf_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_cluster_conf/gslb_conf/gslb_conf_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …fe_cluster_conf/cluster_conf/cluster_conf_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …fig/bfe_cluster_conf/cluster_conf/cluster_conf_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …fig/bfe_cluster_conf/cluster_conf/cluster_conf_load.go | 241 | // ["openai", "anthropic"]. Empty defaults to ["openai"] for backward compatibility. | COMMENT |
| LOW | …fig/bfe_cluster_conf/cluster_conf/cluster_conf_load.go | 261 | // bodies unchanged (after credential redaction when enabled). | COMMENT |
| LOW | …luster_conf/cluster_conf/cluster_conf_load_epp_test.go | 1 | // Copyright (c) 2026 The BFE Authors. | COMMENT |
| LOW | …ter_conf/cluster_table_conf/cluster_table_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …_cluster_conf/cluster_table_conf/cluster_table_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …_config/bfe_route_conf/vip_rule_conf/vip_table_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …ig/bfe_route_conf/vip_rule_conf/vip_table_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …onfig/bfe_route_conf/host_rule_conf/host_table_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …/bfe_route_conf/host_rule_conf/host_table_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …fe_route_conf/route_rule_conf/route_table_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …bfe_route_conf/route_rule_conf/basic_rule_tree_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …fig/bfe_route_conf/route_rule_conf/route_table_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …nfig/bfe_route_conf/route_rule_conf/basic_rule_tree.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …nfig/bfe_route_conf/route_rule_conf/basic_rule_tree.go | 121 | //exact match firstly | COMMENT |
| LOW | bfe_wasmplugin/adapter.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/filter.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/plugin.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/engine.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/abi/registry.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/abi/proxywasm010/factory.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/abi/proxywasm010/imports.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/abi/proxywasm010/shim.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/header.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/textproto.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/textproto.go | 21 | // | COMMENT |
| LOW | bfe_net/textproto/textproto.go | 101 | return nil, err | COMMENT |
| LOW | bfe_net/textproto/writer_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/header_test.go | 1 | // Copyright (c) 2021 The BFE Authors. | COMMENT |
| 1069 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 108 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 177 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 236 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 280 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 381 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 404 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 459 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 482 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 520 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 549 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 579 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 625 | // TODO: Add test cases. | COMMENT |
| LOW | …e_modules/mod_session_sticky/product_rule_load_test.go | 31 | // TODO: Add test cases. | COMMENT |
| LOW | bfe_http2/server.go | 100 | // TODO: implement | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 21 | # --------------------------------- | COMMENT |
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 31 | # --------------------------------- | COMMENT |
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 51 | # --------------------------------- | COMMENT |
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 73 | # --------------------------------- | COMMENT |
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 86 | # --------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 89 | # you can use "Skip {role_name} as authorization header to access api server if open this optional | COMMENT |
| MEDIUM | bfe_modules/mod_ai_context/rewrite.go | 43 | {"As an AI language model, ", ""}, | CODE |
| MEDIUM | bfe_modules/mod_ai_context/rewrite.go | 47 | {"Let me know if you need more details.", ""}, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …C01-route-table-lookup/sc01_route_table_lookup_test.go | 656 | // Step 4: a no-route request whose body exceeds the drain budget | COMMENT |
| LOW | …C01-route-table-lookup/sc01_route_table_lookup_test.go | 672 | // Step 5: HTTP/1.0 must not reuse the connection. Go's Transport always | COMMENT |
| LOW | …C01-route-table-lookup/sc01_route_table_lookup_test.go | 702 | // Step 6: an explicit "Connection: close" request header must be honored | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …C01-route-table-lookup/sc01_route_table_lookup_test.go | 656 | // Step 4: a no-route request whose body exceeds the drain budget | COMMENT |
| LOW | …C01-route-table-lookup/sc01_route_table_lookup_test.go | 672 | // Step 5: HTTP/1.0 must not reuse the connection. Go's Transport always | COMMENT |
| LOW | …C01-route-table-lookup/sc01_route_table_lookup_test.go | 702 | // Step 6: an explicit "Connection: close" request header must be honored | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/kubernetes/mysql-deploy.yaml | 16 | # This file contains all MySQL-related Kubernetes resources: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bfe_modules/mod_markdown/testdata/testcase1.md | 77 | 1. Lorem ipsum dolor sit amet | CODE |
| LOW | bfe_modules/mod_markdown/testdata/testcase1.md | 77 | 1. Lorem ipsum dolor sit amet | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/zh_cn/modules/mod_unified_waf/bfe_waf_demo.md | 31 | class MyHttpRequestHandler(http.server.SimpleHTTPRequestHandler): | CODE |