[vault] Signing: the Android grant keeps to values older cores read (v0.19.1) #26

Manually merged
mnovak merged 1 commits from fix/android-grant-compat into main 2026-11-21 09:07:06 +01:00
Owner

Found while bumping the app to 0.19.0, before anything pinned it: 0.19.0 records a key the Android grant makes as a new security action, android-key-made. Every core before 0.19.0 refuses that value (the security actions are a closed list). The phone app and the web vault open the same vault with their own pinned core, so once the grant made a key, Mark's vault would stop opening on the phone and in the browser.

Fix: the key's creation is written as standing-granted, with Android grant made <id> for <repo> pipeline release. Every core since 0.16.0 reads that value. The grant itself (signing.android) is a member that older cores ignore and drop. FORMAT.md and SIGNING.md say so.

Tests: tests/android_grant.rs now asserts the two standing-granted notes (the grant, then the key). Workspace: 284 passed, 0 failed.

Self-review: android-key-made is gone from the code. v0.19.0 stays where it is (nothing pins it); the app will pin v0.19.1. Remaining downgrade gap: an older core that saves the vault drops the grant. That is fail-safe (Android releases ask again) and is documented.

Found while bumping the app to 0.19.0, before anything pinned it: 0.19.0 records a key the Android grant makes as a new security action, `android-key-made`. Every core before 0.19.0 refuses that value (the security actions are a closed list). The phone app and the web vault open the same vault with their own pinned core, so once the grant made a key, Mark's vault would stop opening on the phone and in the browser. **Fix:** the key's creation is written as `standing-granted`, with `Android grant made <id> for <repo> pipeline release`. Every core since 0.16.0 reads that value. The grant itself (`signing.android`) is a member that older cores ignore and drop. FORMAT.md and SIGNING.md say so. **Tests:** `tests/android_grant.rs` now asserts the two `standing-granted` notes (the grant, then the key). Workspace: 284 passed, 0 failed. **Self-review:** `android-key-made` is gone from the code. `v0.19.0` stays where it is (nothing pins it); the app will pin `v0.19.1`. Remaining downgrade gap: an older core that saves the vault drops the grant. That is fail-safe (Android releases ask again) and is documented.
mnovak added 1 commit 2026-11-21 09:06:48 +01:00
0.19.0 wrote a new security action, android-key-made, which every older core refuses. The phone app and the
web vault open the same vault with their own pinned core, so a vault in which the grant made a key would stop
opening there. The key's creation is now standing-granted with 'Android grant made <id> for <repo> pipeline
release'; the grant itself is a member older cores ignore.
mnovak manually merged commit a3b3a32745 into main 2026-11-21 09:07:06 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/CustosPublic#26