Skip to content

Windows start crash, crypto dependencies, Marketplace docs - #55

Merged
bl0rb merged 4 commits into
mainfrom
t3/crypto-deps
Nov 24, 2026
Merged

bl0rb merged 4 commits into
mainfrom
t3/crypto-deps

Conversation

@bl0rb

@bl0rb bl0rb commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

1. Windows: white window that closes right away (1.5.x / 1.6.0)

Tauri creates every window of tauri.conf.json before setup() runs, and setup() is where the Model is managed. On Windows, building the second WebView2 window (the tray popover usage, new since 1.5) pumps messages, so the main page's first commands reached app.state::<Shared>() before manage() and panicked. 1.4.0 had only the main window. macOS was not affected.

The popover is now "create": false and built from its config in setup() after manage(). If that fails, KeyZapper logs it and starts anyway (a tray click then opens the main window).

2. aes-gcm 0.11, pbkdf2 0.13, sha2 0.11 (replaces #45 and #49)

Neither Dependabot PR compiled on its own:

  • pbkdf2 0.13 needs digest 0.11, so sha2 moves to 0.11 with it.
  • aes-gcm 0.11 / aead 0.6 dropped OsRng and AeadCore::generate_nonce. Salt, nonce, PKCE verifier and OIDC state now come from the Generate trait (system CSPRNG via getrandom, panics on RNG failure like OsRng before). Keys and nonces use From/TryFrom instead of the deprecated from_slice.

The .kzbackup format is unchanged.

3. Docs

  • Intune samples (.plist, .reg) set a Marketplace for the SSO profile.
  • README (en/de): the Marketplace URL needs the same scheme, host and port as Endpoint; allowed name characters; a foreign entry of the same name is reported as a conflict.

Checks (local, macOS)

  • cargo test -p keyzapper-core: 144 passed, incl. opens_backups_made_by_the_macos_app, backup_round_trip_and_rejections, pkce_challenge_matches_rfc7636_example
  • cargo test -p keyzapper: 8 passed
  • cargo check --workspace --all-targets: no errors, no warnings
  • plutil -lint on the plist sample, JSON of the .reg sample parses
  • Not tested: the Windows start itself. Please install the MSI from this PR's build on a Windows machine or VM: the window opens, a left click on the tray icon shows the popover.

🤖 Generated with Claude Code

Mathias and others added 3 commits November 24, 2026 22:25
Replaces the Dependabot updates #45 and #49, which did not compile on
their own: pbkdf2 0.13 needs digest 0.11 and so sha2 0.11, and aead 0.6
no longer has OsRng or generate_nonce. Salt, nonce, PKCE verifier and
state now come from the Generate trait (system CSPRNG via getrandom);
keys and nonces are built without the deprecated from_slice.

The backup format is unchanged: backups of the macOS app and older
versions still open (opens_backups_made_by_the_macos_app).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tauri creates every window of tauri.conf.json before setup() runs, and
setup() is where the Model is managed. On Windows, building the second
WebView2 window (the tray popover, new since 1.5) pumps messages, so the
main page's first commands reached app.state::<Shared>() before manage()
and panicked: a white window that closed right away. The popover is now
"create": false and built from its config in setup() after manage().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plist and .reg samples set a Marketplace for the SSO profile. The
README describes the current rule: the URL needs the same scheme, host
and port as Endpoint, the name only letters, digits, - _ ., and an entry
of the same name that KeyZapper did not write is reported as a conflict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bl0rb bl0rb changed the title Core: aes-gcm 0.11, pbkdf2 0.13 and sha2 0.11 Windows start crash, crypto dependencies, Marketplace docs Nov 24, 2026
cargo-audit fails on main since these advisories were published:
url 2.5.8 overflows the stack in Url::origin() on nested blob: URLs
(KeyZapper calls it for the Marketplace same-origin check), cookie
0.18.2 can repeat private cookie nonces after fork.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bl0rb
bl0rb merged commit ce85f0b into main Nov 24, 2026
3 checks passed
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