Borehole · Project · free tier
authgear/authgear-server
Free reading: not for reliance
0e6a4cb · 25,640 commits · 7,099 files
Read 2026-10-23

authgear/authgear-server: technical due diligence, read from its repository

What Borehole read in authgear/authgear-server's code and history at 0e6a4cb: 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 provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.6

pkg/util/databasesqlwrapper/conn.go is 11,443 lines, 176× this codebase's median file

adequate

The median source file here is 65 lines. 38 files exceed 1,000 lines, the largest being 11,443. 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.

01.25

1 base image floats: no version, or `latest`

adequate

1 of 29 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
once/partial.dockerfile:12 — base image without a version

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.3

107 direct dependencies in a single manifest

adequate

go.mod declares 107 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.

Evidence
go.mod — 107 declared
portal/package.json — 41 declared
authui/package.json — 12 declared
portalgraphiql/package.json — 7 declared

Security & Reliability Posture

adequate
05.1

19 credential-shaped strings 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
5 cited: JWT, where fakes are usual
05.6

6 Dockerfiles run 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.

Evidence
cmd/authgear/Dockerfile — runs as root
cmd/portal/Dockerfile — runs as root
portal/comments-api/Dockerfile — runs as root
portal/storybook/Dockerfile — runs as root
05.20

1 SQL statement built from strings

adequate

1 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.

Evidence
pkg/util/sqlmigrate/maintenance.go:22 — SQL built from a string
05.26

1 locked dependency has published vulnerabilities

adequate

1 of 708 locked dependencies match 1 published advisories in OSV. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version.

Evidence
portal/package-lock.json — ip-address 10.7.1: GHSA-rxp7-6hxx-x8q5 (moderate), fixed in 10.7.4
05.48

9 places insert HTML from a variable without sanitising it

adequate

9 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.

Evidence
authui/src/authflowv2/alert-message.ts:49 — HTML from a variable
authui/src/authflowv2/customSelect.ts:361 — HTML from a variable
authui/src/authflowv2/customSelect.ts:411 — HTML from a variable
05.49

The production build publishes source maps

adequate

The build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.

Evidence
authui/vite.config.ts:416 — source maps in a production build
portal/vite.config.ts:186 — source maps in a production build
05.9

15 vendored components with no licence

adequate

Third-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.

Evidence
pkg/images/deps/context.go — 1 tracked files, no licence file
pkg/images/deps/deps.go — 1 tracked files, no licence file
pkg/images/deps/middleware_request.go — 1 tracked files, no licence file
pkg/images/deps/provider.go — 1 tracked files, no licence file
pkg/lib/deps/context.go — 1 tracked files, no licence file
pkg/lib/deps/contextbackground.go — 1 tracked files, no licence file

Observability & Operations

strong
06.9

An error reporter is installed but never initialised

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

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on authgear/authgear-server: 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.