fix: consume vss-client 0.5.23 - #1164
Open
ovitrif wants to merge 1 commit into
Open
Conversation
This was referenced Aug 18, 2026
Greptile SummaryThis PR makes VSS initialization fail closed when LNURL authentication is unavailable and upgrades the Android VSS client to the release that rejects unauthenticated encryption.
Confidence Score: 5/5The PR appears safe to merge, with authenticated VSS enforced consistently across backup and Lightning persistence setup. The changed setup paths reject blank LNURL-auth configuration before constructing a VSS client, while existing callers capture and propagate the resulting typed failure through their normal lifecycle handling.
|
| Filename | Overview |
|---|---|
| app/src/main/java/to/bitkit/data/backup/VssBackupClient.kt | Removes the unauthenticated backup fallback and requires a non-blank LNURL-auth endpoint before client initialization. |
| app/src/main/java/to/bitkit/data/backup/VssBackupClientLdk.kt | Applies the same fail-closed authentication requirement to LDK remote persistence. |
| app/src/main/java/to/bitkit/services/LightningService.kt | Prevents node construction through the fixed-header VSS fallback when LNURL authentication is unavailable. |
| app/src/main/java/to/bitkit/utils/Errors.kt | Adds the typed VssAuthRequired service precondition error. |
| gradle/libs.versions.toml | Upgrades the VSS Android client from 0.5.21 to 0.5.23. |
| changelog.d/next/consume-vss.security.md | Documents removal of unauthenticated VSS encryption fallback. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
Setup["Backup or Lightning setup"] --> Check{"LNURL-auth URL blank?"}
Check -- Yes --> Error["Throw VssAuthRequired"]
Check -- No --> Auth["Initialize authenticated VSS client"]
Auth --> VSS["Encrypted VSS persistence"]
Reviews (1): Last reviewed commit: "fix: consume vss-client 0.5.23" | Re-trigger Greptile
ovitrif
force-pushed
the
fix/consume-vss-0.5.23
branch
from
August 18, 2026 11:12
2b0823c to
e069307
Compare
ovitrif
changed the base branch from
master
to
fix/fail-closed-unauthenticated-vss
August 18, 2026 11:12
ovitrif
force-pushed
the
fix/consume-vss-0.5.23
branch
from
August 18, 2026 13:03
e069307 to
372dbfb
Compare
ovitrif
force-pushed
the
fix/consume-vss-0.5.23
branch
from
August 18, 2026 13:47
372dbfb to
e649bc9
Compare
ben-kaufman
approved these changes
Aug 18, 2026
Bump vss-client-android to 0.5.23 so unauthenticated VSS encryption is rejected in the library. Related: synonymdev/audit#55, synonymdev/vss-rust-client-ffi#20
ovitrif
force-pushed
the
fix/consume-vss-0.5.23
branch
from
August 18, 2026 18:31
e649bc9 to
108c6c8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR bumps the VSS Android client from 0.5.21 to 0.5.23.
Description
0.5.23 includes synonymdev/vss-rust-client-ffi#20. Unauthenticated client setup now returns AuthError instead of encrypting with a public all-zero key.
Related: synonymdev/audit#55 (BITKIT-SEC-003).
Companion iOS PR: synonymdev/bitkit-ios#673
Preview
N/A
QA Notes
Manual Tests
regression:Fresh wallet → backup/Lightning start with current Env LNURL-auth URL: setup still succeeds.Automated Checks
compileDevDebugKotlin,VssBackupClientTest, and detekt passed against 0.5.23.