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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not 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
stronglib/auth/auth_with_roles.go is 9,386 lines, 89× this codebase's median file
adequateThe 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.
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
strongTests are retried until they pass
adequateThe 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.
e2e/playwright.config.ts:37 — test retry |
Product & Engineering Maturity
adequate280 direct dependencies in a single manifest
adequatego.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.
go.mod — 280 declared |
package.json — 37 declared |
api/go.mod — 28 declared |
web/packages/teleport/package.json — 23 declared |
Releases are cut from another branch than the one surveyed
adequateThe 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.
| tag v18.11.1 |
Security & Reliability Posture
adequate1 credential-shaped string 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. 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.
| private key block, where fakes are usual |
5 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.
build.assets/charts/Dockerfile — runs as root |
integrations/access/Dockerfile — runs as root |
integrations/event-handler/Dockerfile — runs as root |
integrations/kube-agent-updater/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate2 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.
.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 |
2 outbound calls can wait forever
adequate2 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.
lib/accessgraph/apiclient/client.gen.go:709 — outbound call without a timeout |
lib/srv/app/cloud.go:283 — outbound call without a timeout |
6 SQL statements built from strings
adequate6 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.
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 |
3 of 3 Kubernetes workloads declare no resource limits
adequate3 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.
assets/loadtest/helm/node-agent/templates/deployment.yaml — workload with no limits |
assets/loadtest/helm/resources/templates/tbot.yaml — workload with no limits |
assets/loadtest/helm/trusted-cluster/templates/deployment.yaml — workload with no limits |
43 locked dependencies have published vulnerabilities, 13 high or critical in what ships
adequate43 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.
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 |
5 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.
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 |
Relicensed: Apache-2.0 → AGPL-3.0 (2023-12-01)
adequateThe 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.
1 advisory against this project in the last 24 months, 1 high or critical
adequateThe 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, …).
| 2025-06-16: GHSA-8cqv-pj7f-pwpc (critical), fixed in 12.4.35: Teleport allows remote authentication bypass |
Observability & Operations
adequateNo error reporter is wired in
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 |
Sends usage data to usage.teleport.dev by default
adequateweb/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.
web/packages/teleterm/csp.ts:23 — reports to usage.teleport.dev |
lib/autoupdate/agent/setup.go:728 — the reporting setting is on by default |
1 of 3 deployments run a single replica
adequate1 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.
assets/loadtest/helm/resources/templates/tbot.yaml — replicas: 1 |
Fit with the Acquirer
not assessableNot 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.