Skip to content

Releases: cipherstash/cipherstash-dynamodb

v0.8.2

11 Oct 08:24
v0.8.2
b231c5d
Compare
Choose a tag to compare

What's Changed

  • Updated to cipherstash-client 0.12.4, bumped version to 0.8.2 by @coderdan in #85

Full Changelog: v0.8.1...v0.8.2

v0.8.1

10 Oct 02:09
v0.8.1
ee2085e
Compare
Choose a tag to compare

What's Changed

  • Refactoring to make clear that div-by-zero can never happen by @coderdan in #82
  • Pass in cts_config to ZeroKMSConfigBuilder in EncryptedTable::init_headless by @CDThomas in #83
  • Bumped version to 0.8.1 by @coderdan in #84

New Contributors

Full Changelog: v0.8.0...v0.8.1

v0.8.0

08 Oct 05:58
v0.8.0
fd4a248
Compare
Choose a tag to compare

What's Changed

Derive macros

Adds support for custom field functions so that arbitrary types can be added to Unsealed and encrypted.

For example, to handle a field with a BTreeMap:

#[derive(Debug, Clone, PartialEq, Searchable, Encryptable, Decryptable, Identifiable)]
struct Test {
    #[partition_key]
    pub pk: String,
    #[sort_key]
    pub sk: String,
    pub name: String,
    pub age: i16,
    #[cipherstash(plaintext)]
    pub tag: String,
    #[cipherstash(encryptable_with = put_attrs, decryptable_with = get_attrs)]
    pub attrs: BTreeMap<String, String>,
}

fn put_attrs(unsealed: &mut Unsealed, attrs: BTreeMap<String, String>) {
    attrs.into_iter().for_each(|(k, v)| {
        unsealed.add_protected_map_field("attrs", k, Plaintext::from(v));
    })
}

fn get_attrs<T>(unsealed: &mut Unsealed) -> Result<T, SealError>
where
    T: FromIterator<(String, String)>,
{
    unsealed
        .take_protected_map("attrs")
        .ok_or(TypeParseError("attrs".to_string()))?
        .into_iter()
        .map(|(k, v)| {
            TryFromPlaintext::try_from_plaintext(v)
                .map(|v| (k, v))
                .map_err(SealError::from)
        })
        .collect()
}

Full Changelog: v0.7.4...v0.8.0

cipherstash-dynamodb-derive-v0.8.0

08 Oct 05:55
cipherstash-dynamodb-derive-v0.8.0
0b45f45
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.4...cipherstash-dynamodb-derive-v0.8.0

v0.7.4

07 Oct 22:31
v0.7.4
2dc39e9
Compare
Choose a tag to compare

What's Changed

  • Add cargo release config files by @coderdan in #74
  • Add getter functions on PreparedRecord and PreparedDelete by @nicklaswj in #76
  • Bump cipherstash-dynamodb to 0.7.4 by @coderdan in #78

Full Changelog: v0.7.3...v0.7.4

v0.7.3

27 Sep 08:34
ec9f033
Compare
Choose a tag to compare

What's Changed

  • Fix bug in unseal_all where it will panic if there is no protected_at… by @nicklaswj in #67
  • Bumped cipherstash-dynamodb to 0.7.3 by @coderdan in #73

Full Changelog: v0.7.2...v0.7.3

v0.7.2

25 Sep 09:36
23df0c1
Compare
Choose a tag to compare

What's Changed

  • Update README, include in src/lib.rs, bump version by @coderdan in #72

Full Changelog: v0.7.1...v0.7.2

v0.7.1

25 Sep 07:11
f126e6b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.1...v0.7.1

cipherstash-dynamodb-derive-v0.7.1

25 Sep 06:45
c9273ce
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/cipherstash/cipherstash-dynamodb/commits/cipherstash-dynamodb-derive-v0.7.1

v0.2.1

20 Dec 03:54
411ab7d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.2.1