Skip to content

v0.49.0

Latest

Choose a tag to compare

@rustyconover rustyconover released this 19 Nov 17:38
· 2 commits to main since this release

Storage security and performance release. Breaking: aggregate state codec.

Security

  • Breaking: aggregate state no longer defaults to Java serialization. AggregateFunction.serializeState / deserializeState used ObjectOutputStream / ObjectInputStream on 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 and Worker.registerAggregate* refuses an aggregate that does not override both. Use the new typed, bounds-checked farm.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.signingKey as 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 of shard_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 same attempt_id. Tunable via CfdoStorage.Options or VGI_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.