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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
adequatepkg/util/databasesqlwrapper/conn.go is 11,443 lines, 176× this codebase's median file
adequateThe 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.
pkg/util/databasesqlwrapper/conn.go:1 — 11,443 lines (176× median) |
portal/src/graphql/portal/LoginMethodConfigurationScreen.tsx:1 — 4,006 lines (61× median) |
pkg/lib/oauth/handler/handler_token.go:1 — 2,500 lines (38× median) |
portal/src/graphql/portal/HookConfigurationScreen.tsx:1 — 2,427 lines (37× median) |
portal/src/graphql/adminapi/UserDetailsAccountStatus.tsx:1 — 1,906 lines (29× median) |
1 base image floats: no version, or `latest`
adequate1 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.
once/partial.dockerfile:12 — base image without a version |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate107 direct dependencies in a single manifest
adequatego.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.
go.mod — 107 declared |
portal/package.json — 41 declared |
authui/package.json — 12 declared |
portalgraphiql/package.json — 7 declared |
Security & Reliability Posture
adequate19 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings
adequateStrings 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.
| 5 cited: JWT, where fakes are usual |
6 Dockerfiles run the application as root
adequateNo 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.
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 |
1 SQL statement built from strings
adequate1 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.
pkg/util/sqlmigrate/maintenance.go:22 — SQL built from a string |
1 locked dependency has published vulnerabilities
adequate1 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.
portal/package-lock.json — ip-address 10.7.1: GHSA-rxp7-6hxx-x8q5 (moderate), fixed in 10.7.4 |
9 places insert HTML from a variable without sanitising it
adequate9 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.
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 |
The production build publishes source maps
adequateThe 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.
authui/vite.config.ts:416 — source maps in a production build |
portal/vite.config.ts:186 — source maps in a production build |
15 vendored components with no licence
adequateThird-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.
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
strongAn error reporter is installed but never initialised
adequateNothing 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.
| no error reporter initialised |
Fit with the Acquirer
not assessableNot 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.