Borehole · Project · free tier
gravitational/teleport
Free reading: not for reliance
1283425 · 27,925 commits · 15,153 files
Read 2026-10-22

gravitational/teleport: technical due diligence, read from its repository

What Borehole read in gravitational/teleport's code and history at 1283425: 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 Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • LICENSE: Relicensed: Apache-2.0 → AGPL-3.0 (2023-12-01)

Architecture & Codebase — including AI provenance

strong
01.6

lib/auth/auth_with_roles.go is 9,386 lines, 89× this codebase's median file

adequate

The median source file here is 105 lines. 121 files exceed 1,050 lines, the largest being 9,386. 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
lib/auth/auth_with_roles.go:1 — 9,386 lines (89× median)
lib/auth/auth.go:1 — 9,259 lines (88× median)
integrations/terraform/tfschema/scopes/joining/v1/token_terraform.go:1 — 8,283 lines (78× median)
lib/service/service.go:1 — 8,011 lines (76× median)
lib/auth/grpcserver.go:1 — 7,000 lines (66× median)

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (e2e/playwright.config.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

Evidence
e2e/playwright.config.ts:37 — test retry

Product & Engineering Maturity

adequate
04.3

280 direct dependencies in a single manifest

adequate

go.mod declares 280 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 — 280 declared
package.json — 37 declared
api/go.mod — 28 declared
web/packages/teleport/package.json — 23 declared
04.62

Releases are cut from another branch than the one surveyed

adequate

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

Evidence
tag v18.11.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. 2 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
private key block, where fakes are usual
05.6

5 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.

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/assign.yaml:39 — action pinned by tag
.github/workflows/post-release.yaml:50 — action pinned by tag
build.assets/Dockerfile:206 — download piped into a shell
05.13

2 outbound calls can wait forever

adequate

2 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.

Evidence
lib/accessgraph/apiclient/client.gen.go:709 — outbound call without a timeout
lib/srv/app/cloud.go:283 — outbound call without a timeout
05.20

6 SQL statements built from strings

adequate

6 places in product code build SQL by formatting or joining strings rather than passing parameters. 2 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.

Evidence
lib/events/auditqueue/sqlite.go:756 — SQL built from a string
lib/events/auditqueue/sqlite.go:763 — SQL built from a string
lib/backend/pgbk/common/utils.go:321 — SQL built from a string
05.34

3 of 3 Kubernetes workloads declare no resource limits

adequate

3 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.

05.26

43 locked dependencies have published vulnerabilities, 13 high or critical in what ships

adequate

43 of 2,715 locked dependencies match 117 published advisories in OSV, 48 of them rated high or critical. 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
pnpm-lock.yaml — @storybook/addon-vitest 10.5.7: GHSA-f2ph-cmg5-wxc8 (critical), fixed in 10.6.2; a development dependency
pnpm-lock.yaml — storybook 10.5.7: GHSA-f2ph-cmg5-wxc8 (critical), fixed in 10.6.2; a development dependency
pnpm-lock.yaml — tinypool 2.1.0: GHSA-5gmw-xhrv-c9v3 (critical), fixed in 2.1.1; a development dependency
05.9

5 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
docs/pages/connect-your-client/third-party/ansible.mdx — 1 tracked files, no licence file
docs/pages/connect-your-client/third-party/gui-clients.mdx — 1 tracked files, no licence file
docs/pages/connect-your-client/third-party/jetbrains-sftp.mdx — 1 tracked files, no licence file
docs/pages/connect-your-client/third-party/putty-winscp.mdx — 1 tracked files, no licence file
docs/pages/connect-your-client/third-party/vscode.mdx — 1 tracked files, no licence file
05.60

Relicensed: Apache-2.0 → AGPL-3.0 (2023-12-01)

adequate

The root licence changed 1 time(s). The latest terms restrict what users, hosts or a buyer may do in ways the earlier ones did not. Code taken under the old terms stays under them, so both matter in diligence.

Evidence
LICENSE — Apache-2.0 from 2015-10-31
LICENSE — AGPL-3.0 from 2023-12-01
05.65

1 advisory against this project in the last 24 months, 1 high or critical

adequate

The newest was published on 2025-06-16. 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.6.0. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 4 records name teleport with nothing tying them to this repository (CVE-2018-19301, CVE-2018-19555, CVE-2022-38599, …).

Evidence
2025-06-16: GHSA-8cqv-pj7f-pwpc (critical), fixed in 12.4.35: Teleport allows remote authentication bypass

Observability & Operations

adequate
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.35

Sends usage data to usage.teleport.dev by default

adequate

web/packages/teleterm/csp.ts sends to usage.teleport.dev, and lib/autoupdate/agent/setup.go leaves reporting on as shipped. Every installation reports to the vendor unless its operator turns this off. For a buyer running it inside their own product, that is an outbound data flow to a third party: ask what is sent, how often, and whether the buyer's customers were told.

Evidence
web/packages/teleterm/csp.ts:23 — reports to usage.teleport.dev
lib/autoupdate/agent/setup.go:728 — the reporting setting is on by default
06.33

1 of 3 deployments run a single replica

adequate

1 deployments set `replicas: 1`, and nothing (an autoscaler, a disruption budget) adds more. Every deploy and every node drain is downtime, and the availability the buyer inherits has a ceiling.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on gravitational/teleport: 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.