Skip to content

fix: reject unauthenticated vss encryption - #20

Open
ben-kaufman wants to merge 4 commits into
masterfrom
fix/require-vss-encryption-key
Open

fix: reject unauthenticated vss encryption#20
ben-kaufman wants to merge 4 commits into
masterfrom
fix/require-vss-encryption-key

Conversation

@ben-kaufman

@ben-kaufman ben-kaufman commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

This PR rejects unauthenticated VSS clients so backup data cannot be encrypted with a public all-zero key.

Description

vss_new_client previously encrypted application data with [0u8; 32]. That constructor now returns AuthError. Clients must use LNURL-auth so the encryption key is seed-derived.

The UniFFI signature is unchanged, so existing app fallbacks fail closed once they bump this library.

Related: synonymdev/audit#55 (BITKIT-SEC-003).

QA Notes

Manual Tests

  • 1. Consumer app → initialize VSS with LNURL-auth: setup still succeeds.
  • 2. regression: call unauthenticated vss_new_client: returns AuthError.

Automated Checks

  • Unit tests updated: unauthenticated constructors and FFI lifecycle tests now expect AuthError.
  • cargo test --lib: 19 passed.

Release

Co-authored-by: Cursor <cursoragent@cursor.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 157efd1584

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/implementation.rs
Comment thread bindings/python/README.md
ben-kaufman and others added 3 commits August 12, 2026 14:29
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant