Skip to content

Fix SQL injection through identifiers when inserting into a SQLite table - #117421

Merged
nikitamikhaylov merged 8 commits into
ClickHouse:masterfrom
groeneai:sqlite-insert-identifier-escaping
Sep 23, 2026
Merged

nikitamikhaylov merged 8 commits into
ClickHouse:masterfrom
groeneai:sqlite-insert-identifier-escaping

Conversation

@groeneai

@groeneai groeneai commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixed SQL injection through identifiers when inserting into a table with the SQLite engine. The remote table name and the column names were escaped with backslashes, which SQLite does not honour inside a quoted identifier, so a name containing a double quote could close its own identifier and have the rest of it executed as SQL. It is now also possible to insert into a SQLite table whose name, or column name, legitimately contains a double quote or a backslash.

Description

SQLiteSink::consume builds one string and hands it to sqlite3_exec, which executes every ;-separated statement in it. Two user-chosen identifiers were interpolated with backslash escaping: the remote table name at src/Storages/StorageSQLite.cpp:187 (doubleQuoteString) and the column names at :194 (quoteString, a string literal where an identifier belongs). SQLite has no backslash escape: inside "..." a backslash is data and "" is the only escape, so the first raw double quote in a name closes the identifier and the rest is parsed as SQL. Both sites are reachable from ordinary SQL, and validateSQLiteDatabasePath only checks the path given to sqlite3_open, so an injected ATTACH DATABASE escapes the user_files restriction.

Both now use a new doubleQuoteStringSQLite, the identifier counterpart of the writeQuotedStringSQLite that closed the read path in #104217. #74144 fixed this class in the schema path and also chose escaping over validation, so a legitimate name containing a quote keeps working. :194 is a behaviour fix too: such a column name was previously emitted as invalid SQL.

A NUL in an identifier is deliberately not rejected: c_str() truncates the statement and every preceding double quote is already doubled, so the identifier is unterminated and SQLite always rejects it loudly, never silently truncating it.

Not bundled, each worth considering separately: rewriting the sink on sqlite3_prepare_v2 with bound parameters, which removes multi-statement execution but still needs this helper because identifiers cannot be bound; and sqlite3_limit(SQLITE_LIMIT_ATTACHED, 0) in openSQLiteDB, effective in my measurement but it also constrains the documented query(...) form.

Residuals left alone: the read path quotes identifiers with the same backslash escaping, so such a table still cannot be read, and the VALUES payload backslash-escapes control characters, so a tab does not round-trip.

New test 05055_sqlite_insert_identifier_escaping fails on master and passes with this change. Found by an internal security report.


Workflow [PR]
Sync PR [sync-upstream/pr/117421]

Version info

  • Merged into: 26.10.1.536-master (included in 26.10 and later)
  • Backported to: 26.9.2.29, 26.8.11.43, 26.7.14.44, 26.3.33.147

groeneai and others added 2 commits August 31, 2026 19:07
SQLiteSink::consume builds a single statement string and passes it to
sqlite3_exec, which executes every ;-separated statement in it. Two
user-chosen identifiers were interpolated with backslash escaping:

  src/Storages/StorageSQLite.cpp:187  doubleQuoteString(remote_table_name)
  src/Storages/StorageSQLite.cpp:194  quoteString(it->name)

Both resolve to writeAnyEscapedString with escape_quote_with_quote = false,
which escapes the quote character with a backslash. SQLite has no backslash
escape at all: inside a quoted identifier a backslash is ordinary data and
doubling the quote is the only escape, so the first raw double quote in a name
terminates the identifier and the remainder is tokenized as SQL. A trailing --
comments out the sink's own " (columns) VALUES ...; tail, so the whole string
parses cleanly.

Both sites are reachable from ordinary SQL: the remote table name is the second
engine argument and the column names are the ClickHouse table's own. When the
columns are listed explicitly the engine skips reading the remote structure, so
the injected name never has to name a real SQLite table. An injected ATTACH
DATABASE opens a second file on the same connection and is never seen by
validateSQLiteDatabasePath, which validates only the path handed to
sqlite3_open, so the user_files restriction is bypassed for reads and writes
alike.

This adds writeDoubleQuotedStringSQLite / doubleQuoteStringSQLite, the
identifier counterpart of the writeQuotedStringSQLite added for the read path
in ClickHouse#104217, and uses it at both sites. ClickHouse#74144 fixed the same class in the schema
path and deliberately chose correct escaping over validation, because a
legitimate table or column name containing a quote has to keep working.

:194 is a behaviour fix as well as hardening: quoteString emitted a
single-quoted string literal where an identifier belongs, so a column name
containing a double quote produced invalid SQL. The same two lines also make a
table whose name contains a backslash writable, which it previously was not.

A NUL inside an identifier is deliberately not rejected. sqlbuf.str().c_str()
truncates the statement at the NUL and every double quote before it has already
been doubled, so the identifier is necessarily unterminated and SQLite rejects
the statement with "unrecognized token". It always fails loudly, and the
statement's meaning can never be silently truncated.

Two residuals are left alone. The read path quotes identifiers through
IdentifierQuotingStyle::DoubleQuotes with the same backslash escaping, so a
table whose name contains a double quote or a backslash still cannot be read;
that enum is shared with other engines and dictionary sources, and it crosses no
privilege boundary because SQLiteSource prepares a single statement. The VALUES
payload escapes control characters with backslashes, so a tab does not
round-trip.

Test: 05055_sqlite_insert_identifier_escaping. It fails on master and passes
with this change; 5 of its 6 arms differ between the two binaries.

Co-Authored-By: Claude Opus 5 <[email protected]>
Both were single comments spanning several lines. Each is now one line
under 140 characters that keeps the non-obvious fact and drops what the
surrounding code already states.

Comment-only change: stripping comment lines from this file at the parent
commit and at this one leaves byte-identical text, and the test still
passes.

Co-Authored-By: Claude Opus 5 <[email protected]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-oranjeai PR origin: delegated from the OranjeAI sibling fleet labels Aug 31, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 0 findings across a full pass and a
delta recheck) plus my own cold code review, taken before reading the implementation notes.

# Sev Finding Verdict Evidence / action
1 ⚠️ Two comments in the new test spanned several lines each, over the 140-character limit asked for here (05055_sqlite_insert_identifier_escaping.sh:25,47) AGREE, fixed @ 4467d16 Both condensed to one line, longest now 123 characters. Comment-only: stripping comment lines from the file before and after leaves byte-identical text, and the source half of the diff is untouched.
2 💡 The new doubleQuoteStringSQLite declaration carries no doc comment next to the literal helper quoteStringSQLite (src/Common/quoteString.h:31) DISAGREE The header already splits the two families by name (quoteString* literals, doubleQuote*/backQuote* identifiers) and the rule is stated at the definition site, src/IO/WriteHelpers.h:645. Prose here would work against the 140-character limit.
3 💡 The test's canary database lives at ${USER_FILES_PATH}/.. rather than under ${CLICKHOUSE_TMP} DISAGREE The shape is already in tree (03624_proper_path_starts_with.sh:7), the file is removed by the EXIT trap, and with the fix the server never opens it: only the sqlite3 CLI does, and arm A1 shows the server refusing that path. Moving it would weaken a working both-directions oracle.
4 💡 src/Client/BuzzHouse/Generator/ExternalIntegrations.cpp:851 also calls sqlite3_exec DISAGREE It runs SQL the BuzzHouse generator builds for itself, with identifiers backquoted through escapeSQLString, so it carries no user privilege boundary and is not part of this class.

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are terminal
per finding.

Checked independently of the implementation notes, in case any of it is useful in review:

  • Scope of the class. Every sqlite3_exec site in src/ was enumerated; only
    StorageSQLite.cpp:205 interpolates an identifier. DatabaseSQLite.cpp:89 is a static query, and
    DatabaseSQLite.cpp:118 and fetchSQLiteTableStructure.cpp:53 correctly use the literal helper
    in WHERE name = ... and pragma table_info(...). All three entry paths that reach the sink (the
    table engine, the sqlite table function, and the SQLite database engine) construct
    StorageSQLite, so a hostile name arriving from sqlite_master lands on the same two lines.
  • Why the two residuals really are residuals. SQLiteSource.cpp:49-52 passes
    pzTail = nullptr to sqlite3_prepare_v2, so the read path compiles exactly one statement and no
    injected tail can run. For the VALUES payload, SerializationArray::serializeText forwards the
    same FormatSettings to nested serializeTextQuoted, and every serialization that can emit a
    quote honours escape_quote_with_quote, so nested strings are quote-doubled too, not just
    top-level ones.
  • Test liveness traced arm by arm from the fixture rather than taken on trust: five of the six
    arms differ between the unpatched and patched binaries, and the sixth is the control pinning the
    user_files refusal on the ordinary path. A4 and A5 are positive controls with out-of-band
    readbacks, so a fix that mangled every identifier would fail this test rather than pass it.
  • No regression from the column-name site. SQLite resolves both a single-quoted string and a
    double-quoted identifier in a column list to the column name, so ordinary names are unaffected;
    the names whose behaviour changes are the ones that previously produced invalid SQL.

Session id: cron:clickhouse-review-slot-48:20260831-221504

@clickhouse-gh clickhouse-gh Bot closed this Aug 31, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Aug 31, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [e1edc79]

Summary: ❌

job_name test_name status info comment
Install packages (arm_release) ERROR IGNORED

AI Review

Summary

This PR fixes the SQLite INSERT sink's identifier quoting so remote table names and column names are emitted with SQLite's "" escaping instead of the generic backslash-based helper. The new stateless test covers the original injection primitive, verifies the user_files boundary is no longer bypassable through that sink, and checks legitimate quoted identifiers still round-trip. I re-checked the current diff, prior discussion, and the current all-green CI run; I did not find a new contract violation in the scoped write path. The separate read-side identifier-quoting bug is already explicitly called out in the PR discussion and split into follow-up PR #121180, so I am not treating it as a new finding on this change.

Final Verdict
  • Status: ✅ Approve

LLVM Coverage Report

Measured on commit e1edc79.

Metric Baseline Current Δ
Lines 88.10% 88.10% +0.00%
Functions 91.70% 91.70% +0.00%
Branches 79.40% 79.40% +0.00%

Changed lines: Changed C/C++ lines covered: 21/21 (100.00%) · Uncovered code

Full report · Diff report

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes, 100% on demand, no randomization needed: 05055_sqlite_insert_identifier_escaping against a server (the user_files check is skipped in clickhouse-local, so a local-mode arm would prove nothing).
b Root cause explained? Yes. SQLiteSink::consume interpolates the remote table name (:187) and the column names (:194) with backslash escaping into one string that sqlite3_exec runs as a script. SQLite has no backslash escape, so the first raw double quote closes the identifier and the rest is parsed as SQL.
c Fix matches root cause? Yes. The escaping is corrected where the dialect rule lives, next to the SQLite literal helper that closed the read path. No name is rejected, no bound widened, no guard added at sqlite3_exec; the emitted SQL simply becomes correct SQLite.
d Test intent preserved / new tests added? New test added, 6 arms, 5 of which change between the two binaries. No existing test weakened or removed; all 16 existing SQLite tests still pass.
e Both directions demonstrated? Yes. [ FAIL ] on unpatched master, [ OK ] with the fix, same test and reference, each on a Build-ID-verified server. Plus a per-line control: reverting only :194 reddens the column arm alone, reverting only :187 reddens the other four.
f Fix is general across code paths? Yes. Nine carriers of "no attacker byte may terminate its own quoting construct" enumerated: both reachable sink sites fixed; the VALUES payload verified safe from break-out; the read path single-statement via sqlite3_prepare_v2; the schema path already correct since #74144.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes, measured: ', ", \, " and \ together, [/], TAB and LF in table and column names all reach SQLite intact; doubling round-trips a legitimate "; a NUL fails loudly rather than truncating.
h Backward compatible? (maintainer-approved exception only) Yes. No setting, default, or serialization format changes, so no SettingsChangesHistory.cpp entry. The only behaviour change is that identifiers previously emitted as invalid or misparsed SQL now work.
i Invariants and contracts preserved? Yes. The new helper mirrors writeQuotedStringSQLite in structure, is total over its input, adds no throw, early return, lock, or error path, and writes exactly 2 + size + count('"') bytes. The sink's contract is unchanged: one statement string, one sqlite3_exec, same error propagation.

Session id: cron:clickhouse-impl-slot-41:20260831-174503

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Aug 31, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @GrigoryPervakov @pamarcos, could you review this? The SQLite INSERT sink escaped the remote table name and the column names with backslashes, which SQLite does not honour inside a quoted identifier, so the first raw double quote in a name closed the identifier and the remainder ran as SQL inside sqlite3_exec; the fix adds the identifier counterpart of the writeQuotedStringSQLite that closed the read path in #104217, keeping the escaping-over-validation choice of #74144.

@tiandiwonder tiandiwonder self-assigned this Sep 1, 2026
Comment thread src/Common/quoteString.cpp Resolved
@clickhouse-gh

clickhouse-gh Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing e1edc798f with master 365470f5a (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

2612 translation units recompiled, 14466 s compile time in total, 2612 of them have a recent master baseline.

Job report

WriteBufferFromString resizes the string to the bytes written in its destructor,
and the buffer was still alive at the return statement, so the result was correct
only because the compiler elides the named return value. Scoping the buffer
matches backQuote, backQuoteIfNeed and backQuoteMySQL in the same file.
${USER_FILES_PATH}/.. is the server's own data directory, and no other stateless
test writes there. ${CLICKHOUSE_TMP} gives the property the test needs, a path
outside the user_files confinement, without writing to the data directory.

Both directions re-measured at the new path: the test passes with the fix and
fails on unpatched master, where the injected ATTACH DATABASE still reads the
canary and creates a marker outside user_files. A1 still reports
PATH_ACCESS_DENIED, so the control that proves the path is out of confinement is
unchanged.
@groeneai

groeneai commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - d4639db5024a4ab68ee632e337eb5b3737b0e4b6

Every failure below has an owner: a fixing PR, or a full-effort fix task whose fixing-PR link I
will post here when it opens.

Check / test Reason Owner / fixing PR
Bugfix validation (functional tests, amd64) job-level abort at ci/jobs/functional_tests.py:734, AssertionError: Could not find master builds in S3, before any server starts, so nothing was validated and no test is attributed. Trunk-wide: 111 rows over 48 unrelated PRs in the last 24h, onset 2026-08-31 19:31Z #117433 (mine, open)
Bugfix validation (functional tests, aarch64) same Could not find master builds in S3 abort as the row above #117433 (mine, open)
Finish Workflow / Post Hooks (new_tests_check.py) pure cascade of the two rows above: the hook reds when no per-arch bugfix job reports OK or XFAIL, and its own output quotes both aborts verbatim #117433 (mine, open)
Docs examples / Documentation examples, Function/toYYYYMM#0 the example in src/Functions/toYYYYMM.cpp documents SELECT toYYYYMM(now(), 'US/Eastern') as 202608, so it began returning 202609 when the month rolled over in that zone at 2026-09-01 04:00 UTC. Time triggered and trunk-wide: 44 rows over 43 unrelated PRs since that boundary, against 0 rows in the preceding 10 days #117459 (mine, open)
Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) / Container memory budget exceeded (/docker) job-level container-memory abort with no failing test assertion: the shard's nested containers breach the /docker cgroup leaf. #117202 is already an ancestor of this head (compare returns status=ahead, behind_by=0) and the shard failed anyway, so it is not the owner #117411 / #117412 (both open)

Session id: cron:our-pr-ci-monitor:20260901-083000

@nikitamikhaylov nikitamikhaylov added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Sep 4, 2026
@nikitamikhaylov

Copy link
Copy Markdown
Member

@groeneai refresh the PR.

@clickhouse-gh clickhouse-gh Bot added the comp-foreign-db Connectivity to external databases (ODBC/JDBC, MySQL, PostgreSQL, etc.). label Sep 4, 2026
@groeneai

groeneai commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author

@nikitamikhaylov Refreshed: merged master 35a0d6f in, new head 33ea2fef294d2cce2fb05024c9b8ec6d7b98fecb. Clean merge, and the change itself is untouched (still 6 files, +129/-2, identical patch-id) because master had modified none of the six files since my base.

The five failures on the previous head were each owned by another PR, and three of those owners have merged since, so this refresh picks their fixes up: #117580 (Bugfix validation master-build lookup), #117459 (the date-dependent toYYYYMM doc example) and #117412 (integration tests /docker budget). Verified present at the new head by ancestry. CI is running now and I will post the finish ledger for this head.


sqlbuf << "INSERT INTO ";
sqlbuf << doubleQuoteString(remote_table_name);
sqlbuf << doubleQuoteStringSQLite(remote_table_name);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The write-side identifier quoting is fixed here, but SQLite still serializes the same identifiers with the old PostgreSQL-style double-quote rules on reads. StorageSQLite::read() still passes IdentifierQuotingStyle::DoubleQuotes into buildQueryForExternalDatabaseSubquery / transformQueryForExternalDatabase, and that ends up in doubleQuoteString / writeDoubleQuotedString instead of the new SQLite helper.

That leaves the identifier contract inconsistent across the same engine: a remote table or column name containing " or \ now works for INSERT, but the read side still generates SQL like SELECT "c\\\"1" FROM "ta\\\"ble", which SQLite rejects (near "1": syntax error). This needs the same SQLite-specific identifier quoting wired through the read builders as well.

@groeneai

groeneai commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 33ea2fe

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task whose
fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stateless tests (amd_tsan, flaky check) / ThreadSanitizer: data race (STID: 1003-358c) a real pre-existing race inside the vendored amalgamation, unixOpen at contrib/sqlite-amalgamation/sqlite3.c:46815, reached through openSQLiteDB at src/Databases/SQLite/SQLiteUtils.cpp:64. The flaky check runs this PR's new SQLite test 50 times concurrently under TSan, which is what makes an existing race reachable here; 16 distinct pull requests carry this signature in 30 days, first on 2026-08-06, 0 on master a fix task is moved to pending (investigating at full effort - fixing-PR link to follow on this PR)
Stateless tests (amd_tsan, flaky check) / Server liveness check failed the consequence of the row above: the TSan report takes the server down, and the liveness probe then fails. Not an independent failure a fix task is moved to pending (the same one, investigating at full effort - fixing-PR link to follow on this PR)
Stress test (arm_release) / Logical error: Cannot add ZooKeeper operation because query is executed. It's a bug. (STID 4181-5776) ZooKeeperMetadataTransaction::moveOpsTo re-entering an already-executed Replicated-DDL transaction from StorageReplicatedMergeTree::truncate; a fresh trunk onset on 2026-09-02, 17 distinct pull requests in 30 days, 0 on master, and unrelated to this diff #117902 (external, open)
Sync - CH Inc sync (private, not actionable by me)

I am not treating the flaky-check line as informational. It is a genuine concurrency defect and it
has an owner working it at full effort; what the 50x run changes is only whether the existing race is
reached, not whether it is real.

Session id: cron:our-pr-ci-monitor:20260904-200000

@groeneai

groeneai commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator Author

SQLite TSan data race (STID 1003-358c): root cause, and why the fix lives in the fork

The Stateless tests (amd_tsan, flaky check) red on 33ea2fef is a real race, but it is not in this PR's diff and it cannot be fixed inside this repository. Server liveness check failed in the same job is that report taking the server down, not a second defect.

Root cause. contrib/sqlite-amalgamation/sqlite3.c caches the pid it last seeded the PRNG under, in a plain global:

static pid_t randomnessPid = 0;                          /* 40515 */
if( randomnessPid!=osGetpid(0) ){ randomnessPid = ... }  /* unixOpen, 46815 */
randomnessPid = osGetpid(0);                             /* unixRandomness, 47314 */

unixRandomness stores under SQLite's static PRNG mutex, reached from writeJournalHdr on one connection; unixOpen reads and may store on another connection while holding unrelated mutexes. The two sets are disjoint, so nothing orders them. SQLite calls this intentional at the read site: "There is a race condition here such that two or more threads all trying to open databases at the same instant might all reset the PRNG. But multiple resets are harmless."

Not from this PR, and not new. The access sites are structurally identical at amalgamation 3.38.2, 3.41.2 and 3.53.4, so the defect has been latent since the submodule was added in 2021, and the 3.53.4 bump (55c9f0985da4fc9) did not introduce it. What is new is the test: the flaky check runs it 50 times at --jobs 8, and it is the first thing in the tree driving concurrent sqlite3_open plus INSERT. The raced state is process-global, so no-parallel would only hide it.

Frequency: one occurrence in CIDB, ever.

SELECT count(), uniqExact(pull_request_number),
       countIf(head_ref='master' AND pull_request_number=0)
FROM default.checks WHERE check_start_time > now() - INTERVAL 365 DAY
  AND positionCaseInsensitive(test_context_raw,'sqlite')>0
  AND positionCaseInsensitive(test_context_raw,'data race')>0
-- 2   2   0

One of those two rows is this report; the other is a DB::LazyPipeFDs::close race that matched only because its test is named test_sqlite_kill_query. Zero on master.

The fix is one line, in ClickHouse/sqlite-amalgamation:

-static pid_t randomnessPid = 0;
+static _Atomic pid_t randomnessPid = 0;

That is the same remedy applied to this file for this class in 2023: fork commit 9f8c76db1297 by @ alexey-milovidov (merged as ClickHouse/sqlite-amalgamation#1), then 4995ce945e1927f here, "Fix TSan report in SQLite (false positive)". That _Atomic int isInit is still the only _Atomic in the amalgamation and survived both later bumps. Contribs build at CMAKE_C_STANDARD 11 with -w, and both sites are cold: one pid compare per file open, one store per PRNG call.

I do not recommend the in-repo alternative. contrib/*-cmake has no patch mechanism, so all this repository can do alone is un-instrument unixOpen and unixRandomness in tests/tsan_ignorelist.txt, which hides the report and leaves the undefined behavior in place.

One question, since the fix needs a commit in a repository I cannot merge to: shall I open that one-line PR against ClickHouse/sqlite-amalgamation, or would you rather apply it directly? Either way I will follow with the submodule bump here.

@nikitamikhaylov

Copy link
Copy Markdown
Member

@groeneai check the datarace reported in the flaky check.

@groeneai

Copy link
Copy Markdown
Collaborator Author

Merged master into the branch: new head e1edc798f00f7e126b64b3763bd39ea0f031d7c5, on top of master 365470f5aba36b92ec77ce8aea073ab13d80491b. No conflicts, and the diff is unchanged at 6 files, +129/-2.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - e1edc79

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Install packages (arm_release) infra: the deb image docker pull was killed at the caller's 120s cap (exit code 124, timeout: sending signal TERM to command), raised from install_check.py:433 through docker.py:202, so the job ended with 0 install tests run a fix task is created (investigating at full effort, fixing PR link to follow on this PR)
Mergeable Check aggregator row, mirrors the row above, no independent failure a fix task is created (the same one, fixing PR link to follow on this PR)
PR aggregator row, mirrors the row above, no independent failure a fix task is created (the same one, fixing PR link to follow on this PR)

Measured at this head, so the "infra" reason is evidence rather than a label: 0 FAIL/ERROR
test rows across all 135 checks (317,096 CIDB rows), and the only non-green row in the whole head
is that job-level error. Install packages (arm_release) ran 2915 times in the last 7 days with
exactly 1 error, this one. The retry machinery is present on this branch and did fire: the pull
signature is already in praktika's retry list, and both attempts ran to the 120s cap, so the gap
is the per-caller budget (120s x 2 here versus the library default of 300s x 3), not a missing
retry. Nothing in this PR's diff reaches an image pull.

Session id: cron:our-pr-ci-monitor:20260923-073136

@groeneai

Copy link
Copy Markdown
Collaborator Author

Fixing PR for the Install packages (arm_release) docker image pull failure in my CI finish ledger for e1edc798f00f7e126b64b3763bd39ea0f031d7c5: #121726. It restores the default pull retry count (2 rungs to 3) in the job script; the failing pull had every layer in the local content store when the second rung hit its cap.

@nikitamikhaylov
nikitamikhaylov added this pull request to the merge queue Sep 23, 2026
Merged via the queue into ClickHouse:master with commit 9ee430d Sep 23, 2026
175 of 177 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 23, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Sep 23, 2026
robot-clickhouse-ci-1 added a commit that referenced this pull request Sep 24, 2026
Cherry pick #117421 to 26.3: Fix SQL injection through identifiers when inserting into a SQLite table
robot-clickhouse added a commit that referenced this pull request Sep 24, 2026
robot-clickhouse-ci-1 added a commit that referenced this pull request Sep 24, 2026
Cherry pick #117421 to 26.7: Fix SQL injection through identifiers when inserting into a SQLite table
robot-clickhouse added a commit that referenced this pull request Sep 24, 2026
robot-clickhouse-ci-1 added a commit that referenced this pull request Sep 24, 2026
Cherry pick #117421 to 26.8: Fix SQL injection through identifiers when inserting into a SQLite table
robot-clickhouse added a commit that referenced this pull request Sep 24, 2026
robot-clickhouse-ci-1 added a commit that referenced this pull request Sep 24, 2026
Cherry pick #117421 to 26.9: Fix SQL injection through identifiers when inserting into a SQLite table
robot-clickhouse added a commit that referenced this pull request Sep 24, 2026
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Sep 24, 2026
clickhouse-gh Bot added a commit that referenced this pull request Sep 24, 2026
Backport #117421 to 26.9: Fix SQL injection through identifiers when inserting into a SQLite table
PedroTadim added a commit that referenced this pull request Sep 25, 2026
Backport #117421 to 26.3: Fix SQL injection through identifiers when inserting into a SQLite table
PedroTadim added a commit that referenced this pull request Sep 25, 2026
Backport #117421 to 26.7: Fix SQL injection through identifiers when inserting into a SQLite table
PedroTadim added a commit that referenced this pull request Sep 25, 2026
Backport #117421 to 26.8: Fix SQL injection through identifiers when inserting into a SQLite table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-foreign-db Connectivity to external databases (ODBC/JDBC, MySQL, PostgreSQL, etc.). groeneai-origin-oranjeai PR origin: delegated from the OranjeAI sibling fleet pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants