You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stack-encrypt: turn on vitaminc's uuid feature so Rust can encrypt a UUID #1833
Stack Encrypt (the Rust crate stack-encrypt) seals a value of any type that vitaminc, CipherStash's cryptography library, can encode. vitaminc's vitaminc-aead crate has a UUID type, vitaminc_aead::Uuid, behind its uuid feature, with its own sealed form, a sealed null and an equality term. stack-encrypt turns on vitaminc's jiff and rust_decimal features by default, for dates, timestamps and decimals, but not uuid.
Problem
A Rust user cannot encrypt a UUID as a UUID. They have to encrypt its text, which stores a different value, decrypts as a string, and will not match a UUID encrypted by any SDK once the SDKs support one (#1821). A UUID is a common column type, such as a user ID or an external reference.
Proposal
Add a uuid feature to stack-encrypt that turns on vitaminc-aead/uuid, on by default like jiff and rust_decimal.
Do not turn on vitaminc-ore/uuid. An order index takes no UUID.
Re-export the type beside Date, Timestamp and Decimal in stack_encrypt::value.
Pin the sealed bytes of a UUID and its sealed null with the stage 0 tests.
The dynamic path, which the Go and TypeScript SDKs use, still refuses a UUID until #1821.
Activity
feat(stack-encrypt): encrypt a UUID as a UUID with value::Uuid
feat(stack-encrypt): encrypt a UUID as a UUID with value::Uuid
feat(stack-encrypt): encrypt a UUID as a UUID with value::Uuid