Skip to content

fix: Correct column name in standalone transparent key query#395

Merged
str4d merged 1 commit into
mainfrom
fix/keystore-column-name
Mar 17, 2026
Merged

fix: Correct column name in standalone transparent key query#395
str4d merged 1 commit into
mainfrom
fix/keystore-column-name

Conversation

@schell
Copy link
Copy Markdown
Contributor

@schell schell commented Mar 17, 2026

I think at some point there was a column rename for ext_zallet_keystore_standalone_transparent_keys (or a similar misunderstanding), which is causing an SQL error when running this SQL select statement.

The bug is verified by reading the schema definition and seeing the column is encrypted_transparent_privkey, while the SELECT query references encrypted_key_bytes. Note that other uses of encrypted_key_bytes (like the INSERT statements in other locations in this same file) happens to work because they use positional binding, which is likely why the bug wasn't caught. The writes succeeded, but the reads failed.

@schell schell requested review from daira, nullcopy, nuttycom and str4d March 17, 2026 01:36
Copy link
Copy Markdown
Collaborator

@str4d str4d left a comment

Choose a reason for hiding this comment

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

utACK 8210894. Good catch! This was a bug in #152 that wasn't caught in review (the column rename likely happened in response to my review feedback but the change wasn't fully applied and I missed this in my re-review).

@str4d str4d added the C-bug Category: This is a bug label Mar 17, 2026
@str4d str4d added this to the Zallet alpha phase milestone Mar 17, 2026
@str4d str4d enabled auto-merge March 17, 2026 01:45
@str4d str4d merged commit 90e22a7 into main Mar 17, 2026
21 of 22 checks passed
@schell schell deleted the fix/keystore-column-name branch March 17, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bug Category: This is a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants