Borehole · Project · free tier
supabase/realtime
Free reading: not for reliance
90ccb30 · 3,207 commits · 745 files
Read 2026-11-08

supabase/realtime: technical due diligence, read from its repository

What Borehole read in supabase/realtime's code and history at 90ccb30: 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

  • CONTRIBUTING.md:38: states a policy on AI-generated contributions

Architecture & Codebase — including AI provenance

strong
01.6

forum/lib/forum/muster/scope.ex is 2,251 lines, 32× this codebase's median file

adequate

The median source file here is 70 lines. 4 files exceed 1,000 lines, the largest being 2,251. 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
forum/lib/forum/muster/scope.ex:1 — 2,251 lines (32× median)
priv/repo/tenant_db_dump_17.sql:1 — 1,517 lines (21× median)
priv/repo/tenant_db_dump_15.sql:1 — 1,516 lines (21× median)
lib/realtime_web/channels/realtime_channel.ex:1 — 1,272 lines (18× median)
01.7

5% of code blocks appear verbatim in more than one file

adequate

1,161 distinct 8-line blocks appear in two or more files. Copy-paste is the cheapest thing a generator does and among the more expensive things to inherit: a fix has to be applied everywhere the block landed, and nothing in the repository records where that is. Tests, fixtures and documentation examples are excluded — those repeat by design — so this is duplication in code that ships. Blocks are matched after normalising whitespace and only across different files.

Evidence
identical 8-line block in 4 files: lib/realtime/monitoring/prom_ex/plugins/distributed.ex, lib/realtime/monitoring/prom_ex/plugins/gen_rpc.ex, lib/realtime/monitoring/prom_ex/plugins/muster.ex
identical 8-line block in 4 files: lib/realtime/monitoring/prom_ex/plugins/distributed.ex, lib/realtime/monitoring/prom_ex/plugins/gen_rpc.ex, lib/realtime/monitoring/prom_ex/plugins/muster.ex
identical 8-line block in 3 files: lib/realtime/tenants/batch_broadcast.ex, lib/realtime/tenants/replication_connection.ex, lib/realtime/tenants/single_broadcast.ex
identical 8-line block in 3 files: lib/realtime_web/controllers/broadcast_controller.ex, lib/realtime_web/controllers/broadcast_single_controller.ex, lib/realtime_web/controllers/tenant_controller.ex
identical 8-line block in 3 files: priv/repo/tenant_db_dump_15.sql, priv/repo/tenant_db_dump_17.sql, priv/repo/tenant_schema/realtime/functions/apply_rls.sql

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.1

11 credential-shaped strings committed to the tree

adequate

Matches for JWT appear in tracked files outside test and fixture paths. They stay in the history even after they leave the tree, so what matters is whether each was rotated. The code cannot tell whether any of them is live, and that decides whether this matters: none sits in production configuration, and none is in a format its provider keeps for live keys. Is any of these live? Show that each was rotated after it was committed, and when. 14 other matchs set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.

Evidence
5 cited: JWT pattern matched
05.5

5 credential-shaped strings exist in the history

adequate

Matches for JWT were committed at some point across 2,793 commits examined. Some are still in the working tree. What matters is whether each was rotated after it was committed. The code cannot tell whether any of them is live, and that decides whether this matters: none sits in production configuration, and none is in a format its provider keeps for live keys. Is any of these live? Show that each was rotated after it was committed, and when. 7 other matchs set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.

Evidence
5 cited: JWT pattern added here
05.27

The build runs third-party code it does not pin

adequate

2 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 1 step pipes a download straight into a shell. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.

Evidence
.github/workflows/lint.yml:110 — action pinned by tag
.github/workflows/update-supabase-js.yml:55 — action pinned by tag
Dockerfile:16 — download piped into a shell
05.26

10 locked dependencies have published vulnerabilities

adequate

10 of 116 locked dependencies match 22 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. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.

Evidence
mix.lock — cowlib 2.19.0: EEF-CVE-2026-43966 (moderate)
mix.lock — cowboy 2.18.0: EEF-CVE-2026-115701 (unrated)
mix.lock — decimal 3.1.1: EEF-CVE-2026-97853 (unrated), fixed in 3.1.2
05.65

5 advisories against this project in the last 24 months, 2 high or critical

adequate

The newest was published on 2026-10-20. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 1 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 2.138.1. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 54 records name realtime with nothing tying them to this repository (CVE-2014-7506, CVE-2015-7439, CVE-2019-19789, …).

Evidence
2026-10-20: GHSA-2rcv-vpjw-5g6c (high), fixed in >= 2.146.0: Unsanitized delimiter injection enables cross-tenant access to private channels
2026-09-24: GHSA-9vjf-j9f7-j42c (high): Client-supplied bytes are spliced unvalidated into other subscribers' JSON frames, letting any broadcaster forge Realtime protocol events (including postgres_ch
2026-08-17: GHSA-pfwq-rf2r-mjgc (low), fixed in 2.128.3: Unauthenticated log injection / terminal escape injection via OpenTelemetry baggage header
2026-06-25: GHSA-rcr8-2525-4r7p (moderate), fixed in >= 2.111.2: Incorrect Authorization in supabase/realtime
2026-06-16: GHSA-hg9h-6mhq-6c2v (low), fixed in >= 2.103.1: Expired JWTs with string exp are accepted by REST broadcast authorization

Observability & Operations

adequate
06.8

One request cannot be followed through the logs

adequate

Nothing in the service carries a request or correlation id, and there is no tracing. When a customer reports a failure, the log lines that belong to their request cannot be picked out from everyone else's.

Evidence
no request id, correlation id or tracing found
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

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on supabase/realtime: 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.