Borehole · Project · free tier
apache/shenyu
Free reading: not for reliance
34f2ed0 · 4,541 commits · 4,815 files
Read 2026-10-23

apache/shenyu: technical due diligence, read from its repository

What Borehole read in apache/shenyu's code and history at 34f2ed0: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed

Architecture & Codebase — including AI provenance

strong
01.6

db/init/oracle/schema.sql is 3,491 lines, 37× this codebase's median file

adequate

The median source file here is 93 lines. 9 files exceed 1,000 lines, the largest being 3,491. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.

Evidence
db/init/oracle/schema.sql:1 — 3,491 lines (37× median)
db/init/pg/create-table.sql:1 — 2,950 lines (31× median)
db/init/mysql/schema.sql:1 — 2,487 lines (26× median)
shenyu-common/src/main/java/org/apache/shenyu/common/config/ShenyuConfig.java:1 — 2,280 lines (24× median)
shenyu-admin/src/main/resources/sql-script/h2/schema.sql:1 — 1,599 lines (17× median)

Engineering Process & SDLC Maturity

strong
02.6

Almost no process scaffolding exists in the repository

adequate

Of five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.

Evidence
1 of 5 markers present across 4,815 tracked files

Product & Engineering Maturity

strong
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, v2.7.1, is not on the branch this survey read; the newest release on it is 1.0.5. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag v2.7.1

Security & Reliability Posture

adequate
05.1

1 credential-shaped string in the tree sit in tests, examples, documentation or local development settings

adequate

Strings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key.

Evidence
JWT, where fakes are usual
05.6

1 Dockerfile runs the application as root

adequate

No USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.

05.34

46 of 47 Kubernetes workloads declare no resource limits

adequate

46 workload manifests set no CPU or memory limits. One pod that leaks memory or spins can starve everything else on its node, and the scheduler cannot plan capacity for what it cannot see.

Evidence
shenyu-e2e/shenyu-e2e-case/k8s/shenyu-etcd.yml — workload with no limits
shenyu-e2e/shenyu-e2e-case/k8s/shenyu-mysql.yml — workload with no limits
shenyu-e2e/shenyu-e2e-case/k8s/shenyu-nacos.yml — workload with no limits
05.45

2 workload settings give a container the host

adequate

2 places in the deployment configuration run a container privileged or in the host's network, process or IPC namespace. A compromise of that container is a compromise of the machine, and most acquirers' security reviews block it. Node agents (network, storage, monitoring) are excluded.

Evidence
shenyu-e2e/shenyu-e2e-case/compose/sync/shenyu-nacos.yml:68 — privileged or host namespace
shenyu-e2e/shenyu-e2e-case/k8s/shenyu-nacos.yml:50 — privileged or host namespace

Observability & Operations

adequate
06.2

No structured logging library is in use

adequate

Nothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.

Evidence
searched 4,386 files for 10 structured logging libraries; 0 matched
06.9

No error reporter is wired in

adequate

Nothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.

Evidence
no error reporter initialised
06.18

20 of 29 deployed images carry no version, or `latest`

adequate

20 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.

06.14

Readiness and liveness probes are identical in 15 of 18 workloads

adequate

Both probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on apache/shenyu: every dimension, the questions for the room, and the audit log.

Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.