Borehole · Project · free tier
keephq/keep
Free reading: not for reliance
e5cd869 · 2,977 commits · 2,741 files
Read 2026-10-23

keephq/keep: technical due diligence, read from its repository

What Borehole read in keephq/keep's code and history at e5cd869: 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

  • LICENSE: Relicensed: GPL-3.0 → MIT (2023-02-15)
  • ee/LICENSE: Part of the code is under a separate licence: ee/

Architecture & Codebase — including AI provenance

strong
01.6

keep/api/core/db.py is 6,006 lines, 95× this codebase's median file

adequate

The median source file here is 63 lines. 15 files exceed 1,000 lines, the largest being 6,006. 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
keep/api/core/db.py:1 — 6,006 lines (95× median)
keep/providers/grafana_provider/grafana_provider.py:1 — 1,773 lines (28× median)
keep/providers/datadog_provider/datadog_provider.py:1 — 1,641 lines (26× median)
keep/cli/cli.py:1 — 1,601 lines (25× median)
keep/api/routes/alerts.py:1 — 1,518 lines (24× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.3

91 direct dependencies in a single manifest

adequate

keep-ui/package.json declares 91 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
keep-ui/package.json — 91 declared
pyproject.toml — 89 declared
keep/providers/fluxcd_provider/requirements.txt — 2 declared

Security & Reliability Posture

adequate
05.27

The build runs third-party code it does not pin

adequate

15 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. 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/auto-release.yml:45 — action pinned by tag
.github/workflows/auto-resolve-keep.yml:52 — action pinned by tag
05.13

171 outbound calls can wait forever

adequate

171 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
ee/identitymanager/identity_managers/azuread/azuread_authverifier.py:92 — outbound call without a timeout
keep/api/core/demo_mode.py:213 — outbound call without a timeout
keep/api/core/demo_mode.py:227 — outbound call without a timeout
05.17

12 of 94 migrations cannot be rolled back

adequate

12 schema migrations (13%) have no working way back: an empty `downgrade`, a `down` that does nothing, or a data migration with no reverse. A bad deploy that includes one is recovered from a backup, not reverted. Ask when a restore was last rehearsed.

05.21

3 shell commands built from strings

adequate

3 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.

Evidence
keep/providers/bash_provider/bash_provider.py:36 — command run through a shell
keep/providers/bash_provider/bash_provider.py:53 — command run through a shell
keep/providers/bash_provider/bash_provider.py:104 — command run through a shell
05.22

1 deserialiser that can run code

adequate

1 places read data with a deserialiser that executes what it reads (`yaml.load` without a safe loader). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.

Evidence
keep/functions/cyaml.py:57 — code-executing deserialiser
05.26

64 locked dependencies have published vulnerabilities, 53 high or critical in what ships

adequate

64 of 1,611 locked dependencies match 131 published advisories in OSV, 69 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.

Evidence
poetry.lock — anyio 4.7.0: GHSA-82r6-8w77-94w6 (critical), fixed in 4.14.2
poetry.lock — certifi 2024.12.14: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.19
poetry.lock — snowflake-connector-python 3.13.1: GHSA-5cc2-282f-jjq2 (critical), fixed in 3.18.1
05.60

Relicensed: GPL-3.0 → MIT (2023-02-15)

adequate

The root licence changed 1 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
LICENSE — GPL-3.0 from 2023-02-10
LICENSE — MIT from 2023-02-15
05.61

Part of the code is under a separate licence: ee/

adequate

A directory named for a paid edition carries its own licence. That code is usually not open source even where the rest is; what the buyer may do with each part differs.

Evidence
ee/LICENSE — licence: unrecognised
05.65

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

adequate

The newest was published on 2026-07-21. 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 0.54.3. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 450 records name keep with nothing tying them to this repository (CVE-2006-6763, CVE-2006-6764, CVE-2008-1635, …).

Evidence
2026-07-21: CVE-2026-65057 (critical): Keep (commit 91c75e0) contains a server-side request forgery vulnerability that allows unauthenticated attackers to make the backend issue arbitrary HTTP reques

Observability & Operations

adequate
06.2

No structured logging library is in use

adequate

Nothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.

Evidence
searched 1,835 files for 10 structured logging libraries; 0 matched
06.18

23 of 43 deployed images carry no version, or `latest`

adequate

23 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.

Evidence
docker-compose.yml:6 — image without a version
proxy/docker-compose-proxy.yml:67 — image without a version
docker-compose-with-arq.yml:37 — image without a version

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on keephq/keep: 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.