Skip to content

fix key encodings again#1089

Merged
ellie merged 1 commit intomainfrom
fix-keys-again
Jul 8, 2023
Merged

fix key encodings again#1089
ellie merged 1 commit intomainfrom
fix-keys-again

Conversation

@conradludgate
Copy link
Collaborator

I should have spotted this when I got rid of rmp-serde, but I missed it. The original rmp_serde::to_vec(key.as_slice()) code didn't convert to write_bin, but rather write_array_len and multiple write_uint calls.

Thankfully this hasn't made it into a release yet, and in my testing, the incorrect code just wouldn't parse the key, rather than encrypting anything bogus. No harm done.

I never want to use a hidden encoding scheme ever again.

@vercel
Copy link

vercel bot commented Jul 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
atuin ✅ Ready (Inspect) Visit Preview Jul 6, 2023 9:18pm

Copy link
Member

@ellie ellie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never want to use a hidden encoding scheme ever again.

Agreed 😭

@ellie ellie merged commit 8c94d79 into main Jul 8, 2023
@ellie ellie deleted the fix-keys-again branch July 8, 2023 20:11
ealap pushed a commit to ealap/atuin that referenced this pull request Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants