Ecosystem sweep: fix oversized-row server DoS, enforce readonly role, sync all docs/marketing to v0.4.5#81
Merged
Merged
Conversation
…fix NULL wire format and unordered window frames
- storage: reject rows over MAX_ROW_DATA_SIZE (4070B) with a graceful
RowTooLarge error instead of panicking; with panic=abort one oversized
insert previously killed the whole server. Size check runs before WAL
append so a rejected update can't poison replay.
- server: enforce roles at dispatch — readonly principals get
'permission denied' on DML/DDL/transaction control; unknown roles fail
closed; shared-password/open/embedded modes unaffected.
- server: serialize NULL as bareword 'null' on the wire (was '{}'),
matching the TS client's documented sentinel; remote REPL renders NULL.
- query: window aggregates with no 'order' clause now use the whole
partition as the frame instead of a running frame.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- site: v0.2.0 banners -> v0.4.5, MSRV 1.80 -> 1.93, all 14 benchmark workloads shown, transactions + multi-user auth + 'when not to use' sections added, repo links -> ZVN-DEV/powdb - Cargo.toml: homepage was a 404 (zvndev -> zvn-dev.github.io) - README: bench gate honestly described as local/on-demand (not a CI merge gate), auth+backup crates in tree, full env-var table - AGENTS.md: 8 crates, multi-user auth, shipped features list fixed, small-model-tested gotchas added (aggregate-keyword aliases 9/10 -> 10/10 haiku success; line-oriented REPL) - SECURITY/RELEASES/CONTRIBUTING: two auth modes + readonly caveat, six-crate publish order + ghcr image, real required CI checks - deploy examples: fly.toml POWDB_BIND=0.0.0.0 (was unreachable), docker-compose pointer fixed, railway backup bullet - clients/ts: multi-user-server incompatibility documented, demo fixes - archives: SMOKE-AUDIT -> docs/audits/, TS sprint plan -> plans/, historical banners on pre-implementation design docs - new: docs/gtm-strategy.md, docs/benchmarks/2026-06-09 local snapshot Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Week 1: merge sweep PR, TS client username auth (0.4.0), v0.4.6 release with mandatory pre-publish smoke (incl. both attack repros), ghcr flip, hygiene backlog. Sprint: truthful EXPLAIN, non-unique B+tree range scans, unique constraints (incl. upsert-requires-unique breaking change), $N parameter binding at token level, multi-line REPL, 10-table agent-DX falsification eval. Also: SECURITY.md readonly note reworded — enforcement is implemented on this branch, not 'landing later'. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Full 8-lane ecosystem sweep (stale docs, live engine testing, marketing accuracy, agent DX, TS adapter, benchmarks, deployment hygiene, GTM). Audit agents found and live-verified two serious server defects plus ~50 doc/marketing accuracy issues; this PR fixes all of them.
Engine fixes (live-verified before AND after)
heap.rsand (withpanic=abort) killed the entire server. Now a gracefulrow too largeerror; size-checked before WAL append so replay can't be poisoned. New tests incl.crates/query/tests/oversized_rows.rs.readonlyusers could insert/update/delete/drop tables. Roles now enforced at server dispatch via the parsed AST; unknown roles fail closed; shared-password/open/embedded modes unaffected.{}(broke TS typed decoding + remote REPL); now barewordnull, renderedNULL.orderreturned running values; now whole-partition per standard semantics.Docs/marketing (highlights of ~50 fixes)
Cargo.tomlhomepage 404'd (zvndev → zvn-dev) — propagated to all 6 crates.io pagesfly.tomlexample deployed an unreachable server (missingPOWDB_BIND=0.0.0.0)useroption)docs/gtm-strategy.md,docs/benchmarks/2026-06-09-local-apple-silicon.md(fresh local run: PowDB wins all 15 workloads, 1.3–11.7x; CI baseline untouched)Test plan
cargo test --workspace— 41 suites greencargo clippy --workspace --all-targets -- -D warningsclean,cargo fmt --checkclean🤖 Generated with Claude Code