Read 2026-11-07
apache/gravitino: technical due diligence, read from its repository
What Borehole read in apache/gravitino's code and history at 58ef9fd: 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 | strong |
| Security & Reliability Posture | strong |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
AGENTS.md:2: names Apache Software FoundationREADME.md:29: names OpenSSF
Architecture & Codebase — including AI provenance
strongcatalogs-contrib/catalog-jdbc-clickhouse/src/main/java/org/apache/gravitino/catalog/clickhouse/operations/ClickHouseTableOperations.java is 3,529 lines, 38× this codebase's median file
adequateThe median source file here is 92 lines. 48 files exceed 1,000 lines, the largest being 3,529. 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.
catalogs-contrib/catalog-jdbc-clickhouse/src/main/java/org/apache/gravitino/catalog/clickhouse/operations/ClickHouseTableOperations.java:1 — 3,529 lines (38× median) |
web-v2/web/src/lib/store/metalakes/index.js:1 — 3,422 lines (37× median) |
core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java:1 — 2,319 lines (25× median) |
clients/cli/src/main/java/org/apache/gravitino/cli/TestableCommandLine.java:1 — 2,234 lines (24× median) |
catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.java:1 — 2,000 lines (21× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
strongReleases are cut from another branch than the one surveyed
adequateThe newest release, v1.3.1, is not on the branch this survey read. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v1.3.1 |
Security & Reliability Posture
strong6 environment files are committed
adequateweb-v2/web/.env, web-v2/web/.env.analyze, web-v2/web/.env.static and more are tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.
web-v2/web/.env — committed environment file |
web-v2/web/.env.analyze — committed environment file |
web-v2/web/.env.static — committed environment file |
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; 2 steps pipe 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/asf-allowlist-check.yml:65 — action pinned by tag |
.github/workflows/chart-test.yaml:165 — action pinned by tag |
clients/filesystem-fuse/check_rust_env.sh:26 — download piped into a shell |
345 SQL statements built from strings
adequate345 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.
core/src/main/java/org/apache/gravitino/storage/relational/mapper/FunctionMetaMapper.java:172 — SQL built from a string |
core/src/main/java/org/apache/gravitino/storage/relational/mapper/OrphanedMetadataObjectRelationSQLProvider.java:75 — SQL built from a string |
core/src/main/java/org/apache/gravitino/storage/relational/mapper/PolicyMetaMapper.java:43 — SQL built from a string |
4 places insert HTML from a variable without sanitising it
adequate4 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.
web-v2/web/src/app/catalogs/rightContent/entitiesContent/ViewDetailsPage.js:342 — HTML from a variable |
web-v2/web/src/lib/provider/AntdProvider.js:50 — HTML from a variable |
web/web/src/lib/provider/emotion.js:73 — HTML from a variable |
4 advisories against this project in the last 24 months, 2 high or critical
adequateThe newest was published on 2026-07-13. 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 4 of them are fixed in the code you ship could not be told from this history. Answer lives in: the release you run, set against each fixed version.
| 2026-07-13: CVE-2026-41041 (critical): URL path injection via unencoded user-supplied identifiers vulnerability in Apache Gravitino. This issue affects Apache Gravitino: from 1.0.0 before 1.2.1. Us |
| 2026-07-13: CVE-2026-49876 (moderate): Authenticated SSRF in Gravitino JobManager allows server-side HTTP requests to internal network and cloud metadata endpoints via unvalidated job template URIs. |
| 2026-07-08: CVE-2026-41042 (critical): Unauthenticated callers can supply a malicious H2 JDBC URL through the testConnection API, which executes arbitrary Java code on the server via H2's INIT parame |
| 2026-06-30: CVE-2025-53648 (moderate): SQL misconfiguration in the Gravitino UI, in versions 1.0.0 and below, can allow a malicious user to read or truncate files. Users are recommended to upgrade to |
Observability & Operations
adequateNo structured logging library is in use
adequateNothing 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.
| searched 9,031 files for 10 structured logging libraries; 0 matched |
No 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 |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on apache/gravitino: 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.