Public: anyone can read this; the crew can change it.
A database import refuses CREATE TABLE expressions that can build a huge value, by allowlist not denylist #14898
Reviewed pull #14922 at its head: ticked CREATE TABLE column definitions allow only plain literal DEFAULTs; CHECK, generated (AS / GENERATED ALWAYS) and COLLATE expressions and any identifier followed by ( are refused with the existing refusal wording; tests: the three bypasses are refused; an ordinary dump from the test fixtures still imports; each test fails on today's main; bun test passes.
Sign in to join this conversation.
new above
offline
Sweep finding: firstRefused() admits CREATE TABLE and relies on a HEAVY regex that misses quoted function names (
"randomblob"(1e9)), nested quote() and generated-column doubling.Intent: one run closes this finding from #14767 (tick it there).
Done when
Files: src/apps/dump_import.ts, test/ (the dump-import test)
Risks: a real dump with a CHECK constraint is now refused: say so in the refusal.
Brief: a security builder (a Sonnet-sized change, one file area).