Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix key encodings again #1089

Merged
merged 1 commit into from
Jul 8, 2023
Merged

fix key encodings again #1089

merged 1 commit into from
Jul 8, 2023

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
9 checks passed
@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.

None yet

2 participants