Repository navigation
fix: combined sweep of open issues (#192 #198 #212–#218 #220 #221) - #230
Merged
Merged
Conversation
- Add a typecheck script (tsc --noEmit) and a cli-typecheck job - Currently red: 37 pre-existing type errors, fixed in the next commit
- Type the cache/templates spinners as optional
- Console.error takes one string; interpolate the details
- Add @types/lodash.kebabcase, the yaml base-url key, role on Gemini contents
- Build GeminiAuthConfig whole instead of from {}, drop unused google import
- Fix enquirer prompt option types and a few unknown/Buffer casts
…, populate lock, DECIMAL (red) - hyphenated ducklake alias / cache schema must boot, refresh and serve (#198) - debug log must not print a connection password (#198) - session TimeZone defaults to UTC regardless of host TZ (#212) - SQLite write during a slow populate must wait for it (#216) - DECIMAL wider than a double is serialised exactly (#217)
- Real-binary tests: %37 into an int validator, %20, %2F stays one segment, + stays a plus, bad escapes and %00 are 400, decoded once
- Path values cannot be overridden by query or body - A body field is not satisfied by the query string, nor a query field by the body
…nce triple-brace binds) (#217) - Guards the triple-brace forms inside AT(...) and the bare date/int binds that already work
…e never shadows (red) (#221) - Plaintext vs PBKDF2 hash of one password, OIDC preset vs spelled-out issuer, and an open literal under an allowed open middle route must start (refused today) - Guards: different password/issuer/user, uncovered literal, unprovable re-salted hashes stay refused - Pin that flapi_create_endpoint ignores allow-shadowing in any spelling
- Route still matches the raw path, so %2F stays inside one segment - Each captured value is decoded once before validation; + stays a plus - Malformed escapes, %00 and invalid UTF-8 are 400
- A declared field is read only from its source (path, query, body, header) - Route parameters are path-only and cannot be overridden by query or body - Undeclared names keep the any-source behaviour so unknown-param checks still work
…er (#192) - '{{{x}}}' and {{{x}}} become ?, '%{{{x}}}%' becomes ('%' || ? || '%') - Stays raw inside sections, comments, enum identifiers, typed literals (DATE '...'), names after FROM/JOIN/BY, and identifier-glued tags - An absent quoted value still binds '' as it used to render - Tags in SQL comments are no longer turned into placeholders
…late attaches (red) (#218)
…a populate attaches (#218) - A populate template's ATTACH runs on refresh only; an uncached endpoint reading that alias never sees it, or a rename-published update of it - The hook also passes the server's stale-alias validation warning on
- DuckLake resolves AT before parameters are bound, so a triple-brace value there (also inside quotes and CAST) is rendered, never turned into a ?
- POST /mcp/jsonrpc initialize, tools/list, tools/call and a malformed body must all answer with X-Request-Id; today none do
- Text and JSON formats, and exactly one Request: line per request
- A task queued behind a busy worker must show its queue wait in an mcp_task series
…ams (red, #215) - two bad templates are both listed, params.nope fails validation - a template using path/header/body fields, sections, conn/env/cache/context is not flagged
…one, lock source for populate, exact wide DECIMAL (#198 #212 #216 #217) - sql::QuoteIdentifier/EscapeSqlLiteral live in sql_utils; the DuckLake ATTACH/DETACH, CREATE SCHEMA, audit table/insert and the audit REST query quote alias and schema, so my-lake / my-schema boot and serve (#198) - Debug logging no longer dumps the template context (conn.* secrets) and scrubs connection credentials from the rendered SQL line (#198) - DuckDB TimeZone is set GLOBAL to UTC (or the user's duckdb.TimeZone, any key case) after the engine opens and logged; per-connection SET fallback if ICU is not loadable (#212) - A cache populate takes the source connection's serialize-access lock after the catalog write lock (fixed order) via ICacheDatabaseAdapter::lockSourceAccess (#216) - DECIMAL with more than 15 significant digits is an exact JSON string instead of a rounded double; documented as a type change (#217) - Docs: CONFIG_REFERENCE, caching, query-execution, CHANGELOG; Catch2 cases for quoting
- Delete data_manager_ducklake_test.cpp (near-duplicate, never compiled) - Register database_manager_ducklake_test.cpp in test/cpp/CMakeLists.txt - Use hyphenated metadata-path/data-path keys, drop the unread server-name key - information_schema does not exist on a DuckLake catalog; assert via duckdb_databases()/duckdb_schemas() counts - RAII teardown (shutdown + reset + remove temp dir) that runs on failed REQUIRE
…reports a stale alias (red) (#218) - Slow populate plus two concurrent refreshes: the second answers 200 already_running today - Two cached tables on one catalog: GC for the first reports nothing_to_expire / 0 bytes, no pinned_by - Populate validation after an atomic rename of the attached file: bind error, no stale warning
- A plaintext password and the hash of it are one user (verified); salted hashes of one password cannot be proven equal and stay refused - OIDC is compared with the provider preset applied; email-claim, jwks-cache-hours, enable-client-credentials and enable-refresh-tokens are not identity - An overlap is judged against the endpoint that actually answers: a literal covered by an equivalent-auth, allow-shadowing middle route needs no flag - flapi_create_endpoint never opts into shadowing (pinned and documented) - EndpointRepository takes a shared_mutex; the false locking comment is fixed Refs #198
…nned files, stale alias in validation (#218) - A refresh skipped because one of the same table is running answers 409 + Retry-After instead of 200 already_running - GC names the other cached tables whose retained snapshots pin this table's old files and reports pinned_bytes, instead of nothing_to_expire / 0 bytes (pin holder text shared with drop-table) - Populate validation against an alias the server attached before an atomic rename of its file reports a stale warning (Linux: the open file is unlinked from its path) instead of a bind error against the old file
…published sources (#218) - CLI: cache refresh reports the 409 already_running answer and exits non-zero - Caching guide: small cached stats endpoint whose populate re-attaches - API reference, plugin API reference and spec updated
- patch changed keys into the existing text instead of re-emitting the file - verified by re-parsing; falls back to the re-emit for layouts it cannot patch
# Conflicts: # CHANGELOG.md
# Conflicts: # test/cpp/route_precedence_test.cpp
# Conflicts: # cli/src/commands/cache/index.ts
…ows nine) - The wrap regex had 17 groups; CMake 3.21 (Linux CI image) fails to compile it - Output is byte-identical to before
This was referenced Nov 21, 2026
Closed
Closed
Validation and checks against a DuckDB source published by rename (found in the #211 exit gate)
#218
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Combines the seven batch PRs (#223–#229) into one branch, merged and tested together. Conflicts were limited to
CHANGELOG.md,test/cpp/route_precedence_test.cppandcli/src/commands/cache/index.ts(kept both sides).cache_warmingfor a never-built table; readiness initialised once (Rate limiting bypasses and remaining server reliability items (split from #193) #198, Smaller product gaps #217)field-inhonoured per source and triple-brace values bound (SQL injection: the keyword heuristic is bypassed with whitespace/newlines; triple-brace values are still interpolated; number/boolean validators unimplemented #192);AT (…)params stay literals (Smaller product gaps #217)TimeZone=UTC(DuckDBnow()::TIMESTAMPswitches from UTC to local time once ICU loads #212); populate takes the source lock (Cache populate and the source connection lock (#116 follow-up) #216); wide DECIMAL as exact string (Smaller product gaps #217)tsc --noEmitclean + CI job (CLI type-check errors (npx tsc --noEmitin cli/) #214); DuckLake C++ test registered (Test hygiene: dead and order-dependent C++ tests #213, VFS half stays open)EndpointRepositorylockedpinned_by; stale-alias validation warning (Validation and checks against a DuckDB source published by rename (found in the #211 exit gate) #218)X-Request-Idon MCP,request_idon theRequest:log line, async task latency,--validate-configvariable names + all errors (Observability gaps #215); offline Swagger UI, comment-preserving PUT (Smaller product gaps #217)Not in this PR: #208 (deferred), MCP
listChanged, and batch F (#219 remotetemplate.path, #213 VFS segfault, #198 remote--config).Test plan
make releasebuildsctestserial: 999/999 (AWS Secrets Manager test skipped)make integration-test-ci: 1397 passed, 18 skippedcd cli && npx tsc --noEmitclean; CLI unit tests 76/76Supersedes #223 #224 #225 #226 #227 #228 #229. Refs #192 #198 #212 #213 #214 #215 #216 #217 #218 #220 #221
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.