Repository navigation
Storage security and performance release. Breaking: aggregate state codec.
Security
- Breaking: aggregate state no longer defaults to Java serialization.
AggregateFunction.serializeState/deserializeStateusedObjectOutputStream/ObjectInputStreamon bytes read back from shared storage (SQLite file or Cloudflare Durable Object), so anyone able to write that storage could run code in the worker. The defaults now throw andWorker.registerAggregate*refuses an aggregate that does not override both. Use the new typed, bounds-checkedfarm.query.vgi.aggregate.StateCodec(see CHANGELOG for the migration snippet). State stored by an earlier release is not readable; finish or cancel running queries before upgrading. - Framework payloads in storage are sealed with the cross-SDK sealed framework payload v1 (HKDF-SHA256 of
VGI_SIGNING_KEY/Worker.signingKeyas configured, else the host-local key file; AES-256-GCM, AAD binding shard/execution/namespace/key). The buffered init (resolved secrets) and aggregate constant arguments were stored in plaintext. - The buffered init no longer stores the attach; process/combine use the request's authenticated attach. Process/combine for an unknown execution now fails instead of running with empty arguments.
Fixed
- Aggregates work on
cloudflare-do(sharded per attach instead ofshard_key: ""). - Durable Object client: connect (10 s) / request (30 s) timeouts, retries on transport errors, 5xx and 429 with backoff, jitter and
Retry-After, reusing the sameattempt_id. Tunable viaCfdoStorage.OptionsorVGI_CF_DO_*env vars.
Performance
- Buffered init and aggregate constant arguments cached per
(shard, execution)in a bounded LRU: buffered process 2 → 1 call per batch, aggregate update 3 → 2. - Example worker drains its buffering log 16 entries per storage call.
See CHANGELOG.md.