Search by

waaseyaa / state

jonesrussell

Key-value state storage for Waaseyaa

Package info

github.com/waaseyaa/state

pkg:composer/waaseyaa/state

Statistics

Installs: 13 999

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0-alpha.300 2026-09-02 15:49 UTC

This package is auto-updated.

Last update: 2026-09-02 16:18:07 UTC


README

SQL-backed and in-memory application state.

SqlState requires a caller-owned 32-byte HMAC key. It stores serialized values only inside a strict versioned HMAC-SHA-256 envelope and verifies that envelope before every deserialization. MemoryState is unchanged. The state package does not register a built-in application-master purpose because no production provider composes SqlState; an application that persists it must own and document that key's lifecycle explicitly.

Existing SQL state values are invalidated at cutover: stop application workers, clear the state table, deploy the keyed reader/writer, and allow application state to rebuild. SqlState does not accept unsigned rows.

Changing the caller-owned HMAC key invalidates all persisted SQL state values.